Overview
nanobanana is a fast, efficient image generation model for general use cases.- Type: Image Generation
- Processing: Asynchronous
- Aspect ratio: 16:9 or 9:16
- Price: $0.01 per image
Parameters
nanobananaDescription of the image to generate (max 2000 characters)
What to avoid in the image (max 1000 characters)
Aspect ratio:
16:9, 9:16 (default: 16:9)Number of images to generate (1-4, default: 1)
Image URLs for image-to-image editing (supports up to 9 images)
Webhook callback URL for task completion or failure notifications
Example
Response
Image generation is asynchronous. Use the Tasks API to poll for results.
Failure Response
Image Editing Mode
nanobanana also supports image editing, allowing you to modify existing images using natural language prompts. Simply provide theimage_urls parameter in your request.
- Endpoint:
POST /v1/generate(same as image generation) - Content Type:
application/json - Max Images: 9 images per request
- Processing: Asynchronous
Image Editing Parameters
nanobananaDescription of how to edit the image (max 2000 characters)
URLs of images to edit (supports up to 9 URLs)
Webhook callback URL for task completion or failure notifications
Image Editing Example
Image Editing Response
Image editing is asynchronous. Use the Tasks API to poll for results.