Skip to main content
POST
Gemini GenerateContent

Authorizations

Authorization
string
header
required

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

Path Parameters

model
string
required

Google Gemini model with native video and fileData support.

Body

application/json
contents
object[]
required
Minimum array length: 1

Response

Gemini-native generation response.

createTime
string<date-time>
candidates
object[]
modelVersion
string
Example:

"gemini-3.1-flash-lite"

responseId
string
usageMetadata
object