Nano Banana 2 — fast image generation and editing up to 4K
Nano Banana 2 is Google's Gemini 3.1 Flash Image model: text-to-image and editing from 512px to 4K, with up to 14 references. One 1K image costs $0.03 on Standard.
- Text to image
- Image editing
- 512px to 4K
- 14 aspect ratios
- Up to 14 references
- Video and PDF input
Try Nano Banana 2 before you write any code
Run Nano Banana 2 with the exact request your code will send. Every parameter the API takes is here.
gemini-3.1-flash-image-official$45.00 / 1M image output tokens
Describe an image, add references if you have them, and submit once. The result appears when the task completes.
What to create or change. Subject, setting, lighting and style.
Images, videos or PDFs the model should read. Files are uploaded and sent as URLs.
Up to 14, sent as fileData URLs.
Default matches your first reference, otherwise 1:1.
Output resolution. 1K is the default.
Image only, or image with a short text reply.
Standing rules for the model, such as a house style.
Blocking threshold for this category.
Greyed-out options relax content filtering. They are available through the API only, not in the playground.
Blocking threshold for this category.
Greyed-out options relax content filtering. They are available through the API only, not in the playground.
Blocking threshold for this category.
Greyed-out options relax content filtering. They are available through the API only, not in the playground.
Blocking threshold for this category.
Greyed-out options relax content filtering. They are available through the API only, not in the playground.
0–2. Leave empty for the model default.
0–1. Leave empty for the model default.
Whole number, 1 or more.
Whole number. Reuse it to reproduce a result more closely.
Caps text and thinking output.
One per line, up to 5.
Only 1: one request returns one image.
How many tokens each reference uses. Lower is cheaper.
Return the model's thought summary with the image.
IMAGE_JPEG is the one documented value.
Applies only when aspect ratio above is Default; when both are set, aspect ratio wins.
Applies only when image size above is Default; when both are set, image size wins.
Estimated at current rates from the image tokens of the selected size plus a measured sample of text and thinking tokens. Reference inputs add a little on Official.

Try one of these prompts



Sample images generated with Nano Banana 2 through this API
Nano Banana 2 pricing
Two ways to pay for Nano Banana 2. Standard is one flat price per image at any size. Official bills the tokens each render reports, so small images cost less and 4K costs more.
- Official
- $0.05132/image
- Standard
- $0.03/image
- Official
- 389images
- Standard
- 666images
Both prices come from the rates that bill your account. Failed requests are not charged.
Official estimates use the image tokens Google publishes for each size, plus a measured sample of 405 text and thinking tokens and 27 prompt tokens.
Nano Banana 2 cost by image size
Google publishes a fixed image-token count per size. Official prices below add a typical text and thinking allowance.
| Image size | Image tokens | Price · Official | Price · Standard |
|---|---|---|---|
| 512 | 747 | $0.03454 | $0.03 |
| 1K | 1,120 | $0.05132 | $0.03 |
| 2K | 1,680 | $0.07652 | $0.03 |
| 4K | 2,520 | $0.11432 | $0.03 |
Standard is one flat price per image at every size. Official follows the image tokens, so larger sizes cost more.
Price your own Nano Banana 2 request
Pick a size and watch the figure. It is computed from the live rate and the image tokens Google publishes for each size, so it moves when the price does.
A pre-submit estimate. Standard bills each delivered image; Official bills image output, text and thinking output, and input at their own rates.
| Item | How it is measured | Rate | Billing |
|---|---|---|---|
| Official · Image output | Image tokens reported for the render | $45.00 / 1M$60.00 / 1M | Charged from real usage |
| Official · Text and thinking output | Text and thinking tokens reported for the render | $2.25 / 1M$3.00 / 1M | Charged from real usage |
| Official · Input | Prompt and reference tokens | $0.375 / 1M$0.50 / 1M | Charged from real usage |
| Standard · Per image | Each delivered image, any size | $0.03 /image$0.04 /image | Charged when the image is delivered |
| Failed requests | Any task that ends failed | Free | Nothing is charged |
What is Nano Banana 2?
Nano Banana 2 is the nickname of Gemini 3.1 Flash Image, Google's general-purpose image model. It generates new images from a prompt and edits images you give it, from quick 512px drafts up to 4K finals.
On SeedRouter you call Nano Banana 2 with Google's own generateContent request body. Submit once, get a task ID, and collect a hosted image URL when the task completes.
Google model name: Gemini 3.1 Flash Image · Stable model ID: gemini-3.1-flash-image · Input limit: 131,072 tokens.
Two ways to use Nano Banana 2
Call the API from your backend, or hand the job to a coding agent.
Call the API
Send the Nano Banana 2 request from your server, keep the task ID, and read the finished image from the task.
- 1Create an API key
- 2POST the request body
- 3Poll the task until it completes
Let an agent do it
Copy a ready prompt into Claude Code, Codex or Cursor. It asks before spending and downloads the result.
- 1Copy the prompt
- 2Fill in what you want
- 3Approve the request
What Nano Banana 2 is good at
A fast default for most image work, with enough range for final assets.
Drafts in seconds
Start Nano Banana 2 at 512px or 1K to explore ideas cheaply, then re-run the winner at 2K or 4K.
Edit what you already have
Add a photo and describe the change. Nano Banana 2 keeps the parts you did not mention.
Up to 14 references
Mix products, people and settings in one prompt, with up to 10 object references.
Any format
Nano Banana 2 renders square posts, 9:16 stories, 21:9 banners, and extreme 1:8 or 8:1 strips without cropping.
Reads video and PDFs
Point Nano Banana 2 at a clip or a document and ask for a still that sums it up.
Consistent characters
Keep up to four people recognisable across a series of Nano Banana 2 images.
What teams use Nano Banana 2 for
Product shots
Turn one packshot into lifestyle scenes, seasonal variants and clean catalogue images with Nano Banana 2.
Social content
Nano Banana 2 generates every aspect ratio a campaign needs from one brief.
Ad variants
Test backgrounds, props and copy placement in Nano Banana 2 before a shoot.
Thumbnails
Draft YouTube and blog covers in Nano Banana 2 at 512px, then finish the chosen one at 2K.
Mockups
Place a logo or screen on packaging, signs and devices with a Nano Banana 2 edit.
Visual summaries
Feed Nano Banana 2 a PDF and get an illustration for the slide or article.
Start with Nano Banana 2 in four steps
- 01
Create a key
Sign in, top up any amount, and create an API key. Credits never expire.
- 02
Send one request
POST the Nano Banana 2 body to /v1/images/generations with your prompt and any reference URLs.
- 03
Poll the task
Keep the task ID and check it every few seconds until the status is completed.
- 04
Download the image
Save the hosted image URL from the task output to your own storage.
Nano Banana 2 at a glance
The facts that decide whether Nano Banana 2 fits the job.
| Feature | Nano Banana 2 |
|---|---|
| Output sizes | 512px, 1K, 2K, 4K |
| Aspect ratios | 14 (1:8 to 8:1) |
| References | Up to 14 |
| Input types | Text, image, video, PDF |
| Thinking | On by default; optional thought summaries |
| Billing | Per image (Standard) or per token (Official) |
Need higher fidelity for complex scenes or dense text? See Nano Banana Pro. Need the lowest cost at 1K? See Nano Banana 2 Lite.
What to know before you start
One image per request
Nano Banana 2 returns one image per call. Send several requests for a batch.
No Google Search grounding yet
Nano Banana 2 requests with tools are refused for now. Everything else in the request body works.
References are URLs
Send Nano Banana 2 references as public HTTP(S) links, not base64. The Playground uploads for you.
Results arrive by task
A Nano Banana 2 request returns a task ID first. Poll it until the image is ready.
Why run Nano Banana 2 on SeedRouter
Two ways to pay
Pick Standard for one flat price per Nano Banana 2 image, or Official to pay for the tokens each render reports. Same key, same request body.
Failed requests are free
If a task ends failed, nothing is charged. You only pay for images that are delivered.
Credits never expire
Top up once and use the balance whenever you need it. No subscription.
Hosted results
Finished images come back as URLs on our CDN. Keep a copy of anything you need long term.
One key for every model
The same key and balance work for the other image models in the catalogue.
Other image models on SeedRouter
Same key, same balance, same task API.
Create and edit images with GPT Image 2 on SeedRouter. Use text prompts, reference images and transparent backgrounds, with a live playground and usage-based pricing.
View pricingGenerate and edit images with GPT Image 2.5 Flare or Sunburst on SeedRouter. Six quality steps up to max, transparent backgrounds, a live playground and pay-as-you-go pricing.
View pricingCreate and edit images with Nano Banana Pro (Gemini 3 Pro Image): 1K to 4K output, built-in thinking, up to 14 references. Pay per image or per token.
View pricingCreate and edit images with Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image), Google's fastest and cheapest image model: 1K output, 14 aspect ratios.
View pricingNano Banana 2 guides
Practical guides to choosing, pricing and integrating the model.
Is Nano Banana free? What the Gemini app and the Gemini API include for Nano Banana 2 and Nano Banana Pro without paying, and when you start paying.
Use the Nano Banana 2 API step by step: create a key, send a generateContent request, poll the task, add reference images, and let a coding agent run it.
Compare Nano Banana 2, Nano Banana Pro and Nano Banana 2 Lite on image size, aspect ratios, references, thinking and billing, and pick one per job.
Current Nano Banana API pricing for Nano Banana 2, Pro and 2 Lite: flat per-image and token billing, cost by resolution, and when each billing fits.
Nano Banana 2 FAQ
What is Nano Banana 2?+
Nano Banana 2 is Google's name for Gemini 3.1 Flash Image, a model that generates and edits images from text and references. It outputs 512px to 4K images in 14 aspect ratios and can use up to 14 reference images.
Is Nano Banana 2 free?+
Google offers Nano Banana 2 in its own apps and AI Studio. The API is paid. On SeedRouter there is no subscription: you top up once, pay per image, and failed requests are free.
How much does Nano Banana 2 cost?+
A 1K image costs $0.03 on Standard, whatever the prompt. On Official you pay for the tokens each render reports; a typical 1K render comes to about $0.05132. The pricing section above shows every size at the live rate.
Nano Banana 2 vs Nano Banana Pro: which is better?+
Nano Banana 2 is faster and cheaper and covers most work, including 512px drafts and extreme aspect ratios. Nano Banana Pro thinks longer and is the better pick for complex compositions, dense text and 4K finals.
What is the difference between Nano Banana 2 and Nano Banana 2 Lite?+
Nano Banana 2 Lite is the low-cost, low-latency version. It renders at 1K only, while Nano Banana 2 goes from 512px to 4K and reads up to four consistent characters.
How do I get an API key for Nano Banana 2?+
Create a SeedRouter account, add credit, and create a key in the dashboard. The same key works for Nano Banana 2 and every other model here.
Can I run Nano Banana 2 locally?+
No. Nano Banana 2 is a closed Google model with no downloadable weights, so Nano Banana 2 runs through an API only.
Does Nano Banana 2 have a daily limit?+
There is no daily image quota on your SeedRouter balance. You can generate as long as you have credit; each request makes one image.
Generate your first Nano Banana 2 image
Try it in the Playground, then move the same request into your code.
