Gemini-2.5-Flash-Image-preview (Nano banana)
Gemini-2.5-Flash-Image-preview (Nano banana) Image Generation
- Asynchronous processing mode, returns task ID for subsequent queries
- Fast generation speed, optimized for quick image creation
- Generated image links are valid for 24 hours, please save them promptly
POST
Documentation Index
Fetch the complete documentation index at: https://gccai.heqingsong.uk/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
All API endpoints require Bearer Token authenticationGet your API Key:Visit the API Key Management Page to get your API KeyAdd it to the request header:
Body
Image generation model nameSupported models:
gemini-2.5-flash-image-preview- Standard versiongemini-2.5-flash-image-preview-official- Official version
"gemini-2.5-flash-image-preview" or "gemini-2.5-flash-image-preview-official"Text description for image generationMaximum 1000 characters
Image generation sizeSupported formats:
- Ratio:
auto,1:1,2:3,3:2,3:4,4:3,4:5,5:4,9:16,16:9,21:9
Output image resolutionSupported values:
1K- 1K resolution (default)
Number of images to generateRange: 1-4 (minimum 1, maximum 4)Default: 1⚠️ Note: Must enter a plain number (e.g.,
1), do not use quotes or it will cause an errorWhether to use the official channel fallback
false: Do not use (default)true: Use official channel
List of reference image URLs for image-to-image or image editing💡 Quick Fill (Try it area):
- Click ”+ Add an item” to add an image URL
- Enter the complete image URL address or base64 data
Response
Response status code
Response data array