Google: Nano Banana 2
nano-banana-2- Price
- From $0.0335
- Released
- Feb 26, 2026
- Modalities
- Image
About Nano Banana 2
Nano Banana 2 is Google's name for Gemini 3.1 Flash Image, released in February 2026. It produces images from text and changes existing ones from reference pictures, at 1K, 2K, or 4K, across fourteen aspect ratios that include unusually wide and tall formats. Google positions it for high-efficiency, production-scale visual creation, below Nano Banana Pro in fidelity.
Where it works well
- Reference-based changes keep a subject or idea consistent across different layouts.
- Fourteen aspect ratios, including 1:8 and 8:1 strips.
- Three output sizes up to 4K from one model.
- Flash-tier efficiency for production-scale batches.
When to choose another model
- Nano Banana Pro is the better pick for text-heavy, highly detailed final art.
- It outputs a single still; it does not make layered files or video.
Getting started
Create API key
Create a key in Console, then use it with every model on the platform.
Send your first request
Copy the example for your language and run it against the endpoint.
Image editingImage to imageText to imageTokenLab endpointPOST/v1/images/generationscurl -X POST "https://api.tokenlab.sh/v1/images/generations" \ -H "Authorization: Bearer sk-xxx" \ -H "Content-Type: application/json" \ -d '{ "aspect_ratio": "1:1", "operation": "text-to-image", "resolution": "1k", "model": "nano-banana-2", "prompt": "A minimalist product photo of matte black headphones on a soft blue background." }'
Parameters
Image editing
| Parameter | Values and limits | Default | Notes |
|---|---|---|---|
aspect_ratio | 1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9 | Not provided | Not provided |
async | Not provided | Not provided | Not provided |
image | Not provided | Not provided | This operation accepts image inputs. The maximum total source-image count is not yet verified for this public operation. |
image_url | Not provided | Not provided | Not provided |
image_urls | Not provided | Not provided | Not provided |
operation | Not provided | Not provided | Not provided |
prompt | Not provided | Not provided | Not provided |
reference_image_urls | Not provided | Not provided | Not provided |
resolution | 1k, 2k, 4k | Not provided | Not provided |
response_format | Not provided | Not provided | The public image response selector accepts url or b64_json. A URL-only supply rejects b64_json before upstream execution. Omit this field to keep the selected supply response representation; no uniform omitted-field default is declared here. |
size | Not provided | Not provided | Use the declared resolution and aspect_ratio to select the corresponding output size. size follows the model-specific resolution table; arbitrary pixel dimensions are not declared as a public control. |
Image to image
| Parameter | Values and limits | Default | Notes |
|---|---|---|---|
aspect_ratio | 1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9 | Not provided | Not provided |
async | Not provided | Not provided | Not provided |
image | Not provided | Not provided | This operation accepts image inputs. The maximum total source-image count is not yet verified for this public operation. |
image_url | Not provided | Not provided | Not provided |
image_urls | Not provided | Not provided | Not provided |
operation | Not provided | Not provided | Not provided |
prompt | Not provided | Not provided | Not provided |
reference_image_urls | Not provided | Not provided | Not provided |
resolution | 1k, 2k, 4k | Not provided | Not provided |
response_format | Not provided | Not provided | The public image response selector accepts url or b64_json. A URL-only supply rejects b64_json before upstream execution. Omit this field to keep the selected supply response representation; no uniform omitted-field default is declared here. |
size | Not provided | Not provided | Use the declared resolution and aspect_ratio to select the corresponding output size. size follows the model-specific resolution table; arbitrary pixel dimensions are not declared as a public control. |
Text to image
| Parameter | Values and limits | Default | Notes |
|---|---|---|---|
aspect_ratio | 1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9 | Not provided | Not provided |
async | Not provided | Not provided | Not provided |
operation | Not provided | Not provided | Not provided |
prompt | Not provided | Not provided | Not provided |
resolution | 1k, 2k, 4k | Not provided | Not provided |
response_format | Not provided | Not provided | The public image response selector accepts url or b64_json. A URL-only supply rejects b64_json before upstream execution. Omit this field to keep the selected supply response representation; no uniform omitted-field default is declared here. |
size | Not provided | Not provided | Use the declared resolution and aspect_ratio to select the corresponding output size. size follows the model-specific resolution table; arbitrary pixel dimensions are not declared as a public control. |
Use this model for text-to-image generation.
Pricing
The Verified price applies to Verified, which costs less on most models. The Official price is the model maker's published price and applies to the more reliable Official route. Auto bills the route that completes the request.
Text
per image- Official price
- $0.50/image
- Verified price
- $0.25/image
- Discount
- -50%
Text to image / Image to image / Image editing · 512
per image- Official price
- $0.045
- Verified price
- $0.0225
- Discount
- -50%
Text to image / Image to image / Image editing · 1k
per image- Official price
- $0.067
- Verified price
- $0.0335
- Discount
- -50%
Text to image / Image to image / Image editing · 2k
per image- Official price
- $0.101
- Verified price
- $0.0505
- Discount
- -50%
Text to image / Image to image / Image editing · 4k
per image- Official price
- $0.151
- Verified price
- $0.0755
- Discount
- -50%
| Official priceper image | Verified priceper image | Discount | |
|---|---|---|---|
| Text | $0.50/image | $0.25/image | -50% |
| Text to image / Image to image / Image editing · 512 | $0.045 | $0.0225 | -50% |
| Text to image / Image to image / Image editing · 1k | $0.067 | $0.0335 | -50% |
| Text to image / Image to image / Image editing · 2k | $0.101 | $0.0505 | -50% |
| Text to image / Image to image / Image editing · 4k | $0.151 | $0.0755 | -50% |
Usage & activity
Success rate is the share of requests that completed. Latency is how long a full response takes; P95 means 95% of requests finished within that time.
Usage & availability
Last 24 hours- Requests
- Success rate
- P95 latency
- Total tokens
- 30-day success rate
- 98.4%
- 30-day requests
- 1K+
- Last active
- 2 days ago
Data is based on aggregate user requests, excluding status checks.
Open in Console
Open Nano Banana 2 in Console with a prompt ready to edit or send.
Help me create an image with nano-banana-2 using text-to-image at /v1/images/generations. Show the result, cost, and any limits I should know.
Use cases
Best for- Text to Image
Multi-format campaigns
Carry one subject into square, story, and ultra-wide layouts, repeating the reference so the subject stays recognizable in each.
Reference edits
Restyle or revise a supplied picture with a short written instruction, such as changing the season or the furniture style.
Visual exploration
Generate several directions for a concept in one session and pick the strongest one to take further with a heavier model.
Large asset production
Create 4K images for web headers or print drafts when the fidelity of Nano Banana Pro is not required.
Prompt examples
Use the attached character sketch to draw her in a rainy street at night, 16:9, painterly look.
Redo this room photo with a Scandinavian style: light wood, white walls, same layout.
A 1:4 tall banner with a hot-air balloon rising above clouds at sunrise.
FAQ
What is Nano Banana 2?
It is Google's branded name for gemini-3.1-flash-image, a Flash-tier image generator and editor that handles both text prompts and reference images in the same model.
Does Nano Banana 2 take reference images?
Yes. It supports text-to-image and image-to-image, so you can send a picture together with a written instruction and get an edited version back in one request.
What sizes are available?
It offers 1K, 2K, and 4K output, with fourteen aspect ratios from 1:8 to 8:1, covering square, portrait, landscape, and extreme banner shapes for most placements.
Nano Banana 2 or Pro?
Use Nano Banana 2 for speed, volume, and unusual banner shapes. Use Pro when a single image must reach top polish and handle intricate text and layout.
How much does Nano Banana 2 cost?
On TokenLab, Nano Banana 2 costs $0.0225-$0.0755 per image. The pricing table above shows the full breakdown. Rates depend on the billing unit, specification, and usage. Compare matching conditions in the model's detailed pricing; a single rate does not determine the total cost.
Which endpoint should Nano Banana 2 use?
Use https://api.tokenlab.sh/v1/images/generations for Nano Banana 2. The request example below shows the matching code shape.
Which operations does Nano Banana 2 support?
Nano Banana 2 supports Image editing, Image to image, Text to image. Select an operation above to see its endpoint and request example.
Compare Nano Banana 2
Guides that use Nano Banana 2
Sources
Reviewed Oct 2, 2026