Skip to main content
POST
Gemini API(/v1 )

Authorizations

Authorization
string
header
required

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

Path Parameters

model
string
required

Model Model name

Body

application/json
contents
object[]
generationConfig
object
safetySettings
object[]
tools
object[]
systemInstruction
object

Response

Success

candidates
object[]
usageMetadata
object