Skip to main content
POST
Generate Gemini content
Use a model that supports the Gemini native protocol. Unsupported model IDs return a Gemini-formatted error response. 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