Skip to main content
POST
Generate an image with gemini-3-pro-image
代表性 4K 响应:
如果代理无法安全保持长连接,把同一请求体提交到 :asyncGenerateContent。实测 1K 任务 返回 HTTP 202,经过六次查询完成。查询次数只是一次观测,不应写成固定等待时间。 解码后应尽快把图片转存到自有对象存储,不要长期保留任务响应中的 Base64。

在线测试

本页交互面板固定调用 gemini-3-pro-image:generateContent。建议先保留预填的 1K 请求,输入开发凭证后直接点击 试一试;成品需要更高分辨率时再改为 4K。
Pro 请求会真实计费。Mintlify 会在生成的 cURL 中显示已输入的 Key,请勿分享带凭证的截图。

授权

Authorization
string
header
必填

YingTu API key.

请求体

application/json
contents
Message · object[]
必填

Prompt and optional source image.

Minimum array length: 1
generationConfig
Output settings · object

响应

Complete Gemini response

candidates
object[]
必填
usageMetadata
object
modelVersion
string

The model version that produced the response.

示例:

"gemini-3-pro-image"

responseId
string

Provider response identifier.

示例:

"response_example"

createTime
string<date-time>

Creation time when supplied by the selected model channel.