Skip to main content
POST
Gemini 风格生成

Authorizations

Authorization
string
header
required

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

Path Parameters

model
string
required

模型名称,如 gemini-2.5-pro

Body

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

Response

200 - application/json

成功响应

candidates
object[]
usageMetadata
object