Skip to main content
POST
Generate Gemini-compatible content

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
contents
object[]
required
generationConfig
object

Generation config. Also note: call :streamGenerateContent (instead of :generateContent) to receive a Gemini SSE stream.

tools
object[]

Tools with functionDeclarations the model may call.

systemInstruction
object

System instruction as a Gemini Content object ({ parts: [{ text }] }).

Response

Gemini-compatible response.

candidates
object[]
required
usageMetadata
object