Skip to main content
POST
Native Gemini Format

Authorizations

Authorization
string
header
required

Use Bearer Token authentication Format: Authorization: Bearer sk-xxxxxx

Path Parameters

model
string
required

Model name

Body

application/json
contents
object[]
required
generationConfig
object
required

Response

200 - application/json

Success

candidates
object[]
usageMetadata
object