Gemini-2.5-Flash-Image-preview Image Generation
Image Series
Gemini-2.5-Flash-Image-preview Image Generation
Fast asynchronous generation (gemini-2.5-flash-image-preview). Fixed n=1 in docs.
POST
Gemini-2.5-Flash-Image-preview Image Generation
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Image generation model name
Text description for image generation
Aspect ratio (e.g., 1:1, 16:9)
Output resolution (1K/2K/4K)
Number of images to generate
Required range:
1 <= x <= 15Reference image URLs (for image-to-image / editing)
Mask image URL (PNG) for editing
Whether to add a watermark
Controls sequential generation (auto/disabled)
Response
Task submitted