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.