Nano banana Pro
Nano banana Pro Image Generation
- Asynchronous processing mode, returns task ID for subsequent queries
- High-quality image generation, professional-grade image creation
- Generated image links are valid for 24 hours, please save them promptly
POST
Model name compatibility note: This endpoint also accepts the alias
nano-banana-pro-ext, which is equivalent to gemini-3-pro-image-preview. The two are interchangeable and produce identical results.Authorizations
All APIs require authentication using Bearer TokenGet API Key:Visit API Key Management Page to obtain your API KeyAdd to request header:
Body
Image generation model nameSupported models:
gemini-3-pro-image-preview- Standard version (compatible aliasnano-banana-pro-ext)gemini-3-pro-image-preview-official- Official version (compatible aliasnano-banana-pro)
"gemini-3-pro-image-preview" or "gemini-3-pro-image-preview-official"For backward compatibility, the aliases
nano-banana-pro-ext (for gemini-3-pro-image-preview) and nano-banana-pro (for gemini-3-pro-image-preview-official) remain usable.Text description for image generation
Image generation sizeSupported formats:
- Ratios:
auto,1:1,2:3,3:2,3:4,4:3,4:5,5:4,9:16,16:9,21:9
Number of images to generateRange: 1Default: 1⚠️ Note: Must be a pure number (e.g.
1), do not add quotes, otherwise it will errorOutput image resolutionSupported values:
1K- 1K resolution (default)2K- 2K resolution4K- 4K resolution
Whether 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