Краткий вывод
- Supports prompt-based image generation with multiple aspect ratios.
- Supports reference_images for stronger style consistency.
- Official variants expose richer generation controls for production tuning.
Ключевые параметры
- model | string | обяз. | gemini-3-pro-image-preview-4k | - | Exact image model identifier from ToAPIs.
- prompt | string | обяз. | - | - | Primary image instruction prompt.
- size | string | опц. | 1:1 | 1:1 | 16:9 | 9:16 | 4:3 | 3:4 | 21:9 | Output aspect ratio.
- resolution | string | опц. | 4K | 4K | Output resolution, varies by model variant.
- reference_images | file[] | опц. | - | max 14 | Reference image array for style/composition control.
Частые ошибки
- 400 invalid_request_error: триггер=Missing or invalid request payload fields.; исправление=Validate model/prompt/size/resolution fields.; повтор=Retry only after fixing payload.
- 401 authentication_error: триггер=Missing or invalid API key.; исправление=Verify Authorization header and API key scope.; повтор=Retry after auth fix.
- 429 rate_limit_exceeded: триггер=Request rate, concurrency, or current quota hits upstream rate limiting.; исправление=Apply exponential backoff first, then review request rate, concurrency, and quota usage.; повтор=Use 1s/2s/4s backoff with jitter; if it persists, reduce submission pressure.


