Documentation Index
Fetch the complete documentation index at: https://docs.toapis.com/llms.txt Use this file to discover all available pages before exploring further.
Gemini-3-Pro 图像生成
使用 Google Gemini 3 Pro 模型生成图像,更强大的图像生成能力
- Google Gemini 3 Pro 强大图像生成模型 (Nano banana2)
- 通过 model 参数选择
gemini-3-pro-image-preview模型 - 支持文本到图像生成
- 异步任务管理,通过任务 ID 查询结果
Authorizations
Body
图像生成模型名称可用模型别名:
nano-banana-pro示例:"gemini-3-pro-image-preview"图像生成的文本描述上游模型输入上限为 65,536 tokens。ToAPIs 不额外设置 1000 字符限制。
图像生成的尺寸比例支持的格式:
- 比例:
1:1,2:3,3:2,3:4,4:3,4:5,5:4,9:16,16:9,21:9
生成图像的数量固定为 1⚠️ 注意: 必须是纯数字(如
1),不要加引号,否则会报错元数据参数,用于传递额外的配置选项
参考图像 URL 列表,用于图生图或图像编辑限制: 最多 14 张图片
Response
任务唯一标识符,用于查询任务状态
对象类型,固定为
generation.task使用的模型名称
任务状态
queued- 排队等待处理in_progress- 处理中completed- 成功完成failed- 失败
任务进度百分比(0-100)
任务创建时间戳(Unix 时间戳)
任务元数据