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.