---
title: "Chat With Gemini"
method: POST
path: "/gemini/chat"
tags: ["gemini-chat"]
---

# Chat With Gemini

`POST /gemini/chat`

## Request

- Base URL: `https://api.alpha-grid.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.alpha-grid.ai/gemini/chat`
- Auth: HTTP bearer

Send a chat message with patient context to Gemini

## Request body

- GeminiChatRequest
  - `messages` GeminiMessage[], required
    - `role` string, required
    - `content` string, required
  - `patient_context` string, nullable
  - `temperature` number
  - `max_tokens` integer

## Response `200`

Successful Response

- GeminiChatResponse
  - `content` string, required
  - `status` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/alpha-grid/apis/alphagrid-backend-dev.md) - [All operations](https://skmtc.dev/alpha-grid/apis/alphagrid-backend-dev/llms.txt) - [OpenAPI document](https://skmtc.dev/alpha-grid/apis/alphagrid-backend-dev/revisions/13bab0bdd466?raw)
