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-2.5-Flash Official 图像生成
使用 Google Gemini 2.5 Flash 官方直连模型生成图像,快速高效
- 直连 Google Vertex AI,使用 Gemini 2.5 Flash Image 原生 API
- 通过 model 参数选择
gemini-2.5-flash-image-official模型 - 支持文生图、图生图
- 支持 temperature、topP、maxOutputTokens 等原生生成参数
- 支持 personGeneration、imageOutputOptions 图像配置
- 支持 safetySettings 安全设置
- 异步任务管理,通过任务 ID 查询结果
Authorizations
Body
图像生成模型名称示例:
"gemini-2.5-flash-image-official"图像生成的文本描述
图像宽高比支持的格式:
1:1- 正方形3:2/2:33:4/4:34:5/5:49:16/16:921:9
生成图像的数量固定为 1
参考图像 URL 数组,用于图生图或图像编辑⚠️ 仅支持 URL 格式(不再支持 base64)
- 公开可访问的图片 URL(http:// 或 https://)
- 可使用 上传图片接口 上传本地图片获取 URL
- 最多 3 张图片
- 单张图片不得超过 10MB
- 支持格式:.jpeg, .jpg, .png, .webp
Vertex AI 原生扩展参数
Response
任务唯一标识符,用于查询任务状态
对象类型,固定为
generation.task使用的模型名称
任务状态
queued- 排队等待处理in_progress- 处理中completed- 成功完成failed- 失败
任务进度百分比(0-100)
任务创建时间戳(Unix 时间戳)
任务元数据