Gemini
Генерація зображень Gemini
Генеруйте зображення за допомогою моделей Gemini через CometAPI — підтримуються 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.