Skip to main content
POST
Generate Gemini content
The native Gemini routes are implemented for compatible models. The current GPT 5.6, Kimi K3, and Claude 5 model set does not support this protocol; using one of those model IDs returns a Gemini-formatted unsupported-model error. For streaming, call POST /v1beta/models/{model}:streamGenerateContent and consume the SSE response.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

model
string
required

Body

application/json

The body is of type object.

Response

Gemini response