Request
POSThttps://kiosapi.com/v1beta/models/{model}:{action}
Path Parameters
string
required
The Gemini model to call (e.g.
gemini-2.5-flash).string
required
The action to perform. Use
generateContent for a standard request, or streamGenerateContent?alt=sse for a streaming response.Headers
You can authenticate with either the
x-goog-api-key header or Authorization: Bearer. Both are accepted — use whichever your client already supports.Request Body
array
required
Array of content objects representing the conversation turns.
Examples
- cURL (Non-Streaming)
- cURL (Streaming)
- Python
Response
For the full parameter reference — including
generationConfig, safetySettings, systemInstruction, and toolConfig — see the Gemini official documentation.