Skip to main content
POST
Gemini API()

Authorizations

Authorization
string
header
required

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

Path Parameters

path
string
required

Model 资源路径(如 models/gemini-2.0-flash:generateContent)

Body

application/json
contents
object[]
required
generationConfig
object
required

Response

Success

candidates
object[]
usageMetadata
object