Claude Opus 5.5 is live on SeedRouter
GoogleImage generationAlso known as Gemini 3.1 Flash Image

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.

Availableabout $0.05132 /image$0.06843 /image-25%
  • Text to image
  • Image editing
  • 512px to 4K
  • 14 aspect ratios
  • Up to 14 references
  • Video and PDF input
Model
Gemini 3.1 Flash Image
Input
Text, images, video, PDF
Output
One image, 512px to 4K
Model IDs
gemini-3.1-flash-image · -official

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.

Create image task

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.

57 / 524288

What to create or change. Subject, setting, lighting and style.

References

Images, videos or PDFs the model should read. Files are uploaded and sent as URLs.

0/14 files

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.

0

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.

Reference estimate~$0.05132

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.

…
Ready
Generated with Nano Banana 2 through this API

Try one of these prompts

Generated with Nano Banana 2: a woman arranging wildflowers in a ceramic vase at a sunlit kitchen table
Generated with Nano Banana 2: an unlabelled amber dropper bottle on a travertine block
Generated with Nano Banana 2: pastel macarons, an espresso cup and dried flowers on coral paper

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.

One 1K image1K · 1:1 · short prompt
Official
$0.05132/image
Standard
$0.03/image
Standard is the flat price; Official is the token cost of a typical render.
What $20.00 buys1K images
Official
389images
Standard
666images
About 19–33 images per dollar, depending on the channel.

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 sizeImage tokensPrice · OfficialPrice · Standard
512747$0.03454$0.03
1K1,120$0.05132$0.03
2K1,680$0.07652$0.03
4K2,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.

Price est.gemini-3.1-flash-image-official
× 1 · real-time

A pre-submit estimate. Standard bills each delivered image; Official bills image output, text and thinking output, and input at their own rates.

Your estimate
~$0.05131
Per $20.00
≈ 389images
1K · 1:1 · × 1
List price· saves 25%
~$0.06842
Tokens for this request
Image output tokens1,120
Text input tokens1
Channel
Image size
Aspect ratio
Count
1
Prompt
0 chars · ~1 tokens
ItemHow it is measuredRateBilling
Official · Image outputImage tokens reported for the render$45.00 / 1M$60.00 / 1MCharged from real usage
Official · Text and thinking outputText and thinking tokens reported for the render$2.25 / 1M$3.00 / 1MCharged from real usage
Official · InputPrompt and reference tokens$0.375 / 1M$0.50 / 1MCharged from real usage
Standard · Per imageEach delivered image, any size$0.03 /image$0.04 /imageCharged when the image is delivered
Failed requestsAny task that ends failedFreeNothing 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.

Sizes
512, 1K, 2K, 4K
Aspect ratios
14, from 1:8 to 8:1
References
Up to 14 (10 objects, 4 characters)
Inputs
Text, image, video, PDF
Delivery
Task ID, then a hosted URL

Two ways to use Nano Banana 2

Call the API from your backend, or hand the job to a coding agent.

Backend

Call the API

Best for apps, pipelines and batch work

Send the Nano Banana 2 request from your server, keep the task ID, and read the finished image from the task.

  1. 1Create an API key
  2. 2POST the request body
  3. 3Poll the task until it completes
Agent

Let an agent do it

Best for one-off assets and prototypes

Copy a ready prompt into Claude Code, Codex or Cursor. It asks before spending and downloads the result.

  1. 1Copy the prompt
  2. 2Fill in what you want
  3. 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

  1. 01

    Create a key

    Sign in, top up any amount, and create an API key. Credits never expire.

  2. 02

    Send one request

    POST the Nano Banana 2 body to /v1/images/generations with your prompt and any reference URLs.

  3. 03

    Poll the task

    Keep the task ID and check it every few seconds until the status is completed.

  4. 04

    Download the image

    Save the hosted image URL from the task output to your own storage.

Create your API key

Nano Banana 2 at a glance

The facts that decide whether Nano Banana 2 fits the job.

FeatureNano Banana 2
Output sizes512px, 1K, 2K, 4K
Aspect ratios14 (1:8 to 8:1)
ReferencesUp to 14
Input typesText, image, video, PDF
ThinkingOn by default; optional thought summaries
BillingPer 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.

GPT Image 2
gpt-image-2-official · gpt-image-2

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 pricing
GPT Image 2.5
gpt-image-2.5-flare · gpt-image-2.5-sunburst · gpt-image-2.5-flare-official · gpt-image-2.5-sunburst-official

Generate 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 pricing
Nano Banana Pro
gemini-3-pro-image-official · gemini-3-pro-image

Create 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 pricing
Nano Banana 2 Lite
gemini-3.1-flash-lite-image-official

Create 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 pricing

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.