Nano Banana 2 Image API
Nano Banana 2 is a multi-resolution generation and editing route covering 1K, 2K and 4K at a fixed local task cost.
About the Nano Banana 2 API
Nano Banana 2 is a multi-resolution generation and editing route covering 1K, 2K and 4K at a fixed local task cost.
- Available image sizes: 1K, 2K, and 4K
- Operations: generation and edit
- Fixed local cost: 40 credits per task
- Result delivery: asynchronous task polling
Best uses for Nano Banana 2
Model summary
- Fixed credit cost
- 40
- Output type
- image
- Operations
- generation, edit
- Image sizes
- 1K, 2K, 4K
Generation request
json
{ "model": "nano-banana-2", "prompt": "A cinematic product photograph with soft studio lighting", "aspect_ratio": "1:1", "image_size": "1K", "response_format": "url"}Image field contract
| Field | Use | Values |
|---|---|---|
model | Required model ID | nano-banana-2 |
prompt | Required generation or editing instruction | 1–20,000 characters |
aspect_ratio | Output ratio | auto, 1:1, 16:9, 9:16, 4:3, 3:4 |
image_size | Resolution tier | 1K, 2K, 4K |
image_urls | Required only for edits | 1–16 public HTTPS URLs |
response_format | Optional | url |
Review the complete image API guide.
Nano Banana 2 API FAQ
What can Nano Banana 2 do?
Nano Banana 2 supports asynchronous generation and edit. Nano Banana 2 is a multi-resolution generation and editing route covering 1K, 2K and 4K at a fixed local task cost.
Which output sizes does Nano Banana 2 support?
Nano Banana 2 supports 1K, 2K, and 4K. Use the exact model ID and size fields documented on this page so the request can be validated locally.
How many credits does Nano Banana 2 use?
The current local price is 40 credits per generation or editing task. The task stores its quoted cost when it is created.