Skip to main content
POST
Gemini协议 - 图片生成

授权

Authorization
string
header
必填

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

路径参数

model
string
必填

请求体

application/json
contents
object[]
必填

必填。纯文本为文生图;文本加 inlineData 为图像编辑。

Minimum array length: 1
generationConfig
object

Nano Banana 图像输出配置。

响应

200 - application/json
candidates
object[]
必填
usageMetadata
object