Gemini
Gemini 图像生成
通过 CometAPI 使用 Gemini 模型生成图像——支持 4K、多轮编辑、最多 14 张参考图像,以及 Thinking。
POST
Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
gemini-2.5-flash-image 计划于 2026-10-02 由提供商停止服务。对于新项目,请使用 gemini-3.1-flash-image-preview 或 gemini-3-pro-image-preview。详情请参阅 Google 的弃用计划。授权
Use your CometAPI API key.
路径参数
The Gemini image model to use. See the Models page for current options.
请求体
application/json
Conversation turns. Each item has a role ("user" or "model") and parts array containing text and/or image data.
Controls generation behavior — output modalities, image resolution, thinking, etc.
Optional tools. Pass [{"google_search": {}}] to enable Google Search grounding for real-time information in generated images.