概要
- Supports prompt-based text-to-image workflows for marketing and creative assets.
- Supports reference-guided generation for stronger style consistency.
- Stabilize parameters in this guide first, then move into production API.
主要パラメータ
- model | string | 必須 | gemini-3.5-thinking | - | Exact model identifier from ToAPIs.
- prompt | string | 必須 | - | - | Primary image instruction prompt.
- size | string | 任意 | 1:1 | - | Output aspect ratio, model-dependent.
- n | integer | 任意 | 1 | - | Number of generated images per request.
- reference_images | file[] | 任意 | - | - | Reference images for style consistency.
よくあるエラー
- 400 invalid_request_error: 発生条件=Missing or invalid payload fields.; 対処=Validate model/prompt/size payload fields.; 再試行=Retry only after payload fix.
- 401 authentication_error: 発生条件=Missing or invalid API key.; 対処=Verify Authorization header and key scope.; 再試行=Retry after authentication fix.








