Generate Image (Pro)
NanoBanana API
Generate Image (Pro)
Submit NanoBanana Pro image generation task using the nano-banana-pro model.
POST
Generate Image (Pro)
Important Notes
- Task ID returned in response is used to query task status via the Get Task Details endpoint
- Callback URL notifications are sent immediately upon task completion
Authorizations
All APIs require authentication via Bearer Token.
Get API Key:
- Visit API Key Management Page to get your API Key
Usage: Add to request header: Authorization: Bearer YOUR_API_KEY
Note:
- Keep your API Key secure and do not share it with others
- If you suspect your API Key has been compromised, reset it immediately in the management page
Body
application/json
A text description of the image you want to generate
Example:
"A cute cat is eating."
Input images to transform or use as reference (supports up to 8 images)
Maximum array length:
8Example:
["https://example-image.png"]Resolution of the generated image
Available options:
1K, 2K, 4K Example:
"2K"
Callback URL to receive task completion notifications (required)
Example:
"https://example-callback.com"
Aspect ratio of the generated image
Available options:
1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, auto Example:
"16:9"