Skip to main content
POST

Authorizations

Authorization
string
header
required

All endpoints require Bearer Token authentication

Add the following to your request header:

Authorization: Bearer YOUR_API_KEY

Path Parameters

model
string
required

Model name, e.g. gemini-2.5-flash

Example:

"gemini-2.5-flash"

Body

application/json
contents
object[]
required

List of conversation contents

systemInstruction
object

System instruction

generationConfig
object

Generation configuration

tools
object[]

List of available tools

safetySettings
object[]

Safety settings

Response

Content generation response

candidates
object[]

List of candidate results

usageMetadata
object

Usage statistics