Overview
Nano Banana 2.1 is an image generation model Google released on October 6, 2026. Its model ID isgemini-nano-banana-2.1, and it launched as generally available (GA). It is an upgrade to Nano Banana 2 (gemini-3.1-flash-image): it keeps Flash-level speed while improving image quality, in-image text rendering and multi-turn editing consistency, and it fixes the tiling artifacts of the previous version. Google recommends 2.1 for all new projects.
Text-to-Image API
Image Editing API
Let an AI Agent Integrate It for You
.md to any docs URL) and then writes code for your stack. The most common pitfalls — timeouts, defensive parts parsing, upload compression and resolution parameters — are already spelled out as requirements.Have a coding agent integrate or debug Nano Banana 2.1 text-to-image and image editing. Copy and paste it into Codex, Claude Code, Cursor, etc.
What this prompt protects you from
What this prompt protects you from
Key Features
Better image quality
More accurate text
Steadier multi-turn edits
Three thinking levels
Up to 4K output
14 aspect ratios
Multi-reference fusion
Google Search grounding
googleSearch tool for images that need live information, such as weather cards or market chartsHow It Differs from Nano Banana 2
Pricing
- Pay-as-you-go or Pay-as-you-go Priority → token-based billing
- Pay-per-request or Pay-per-request Priority → per-request billing
- ⚠️ Do not choose Hybrid billing
Per-request billing
Token-based billing
Token-based billing: real charges from production
Nano Banana 2.1 thinks before generating by default (default level: medium). Besides the image tokens, each image produces roughly 400–1300 thinking and other output tokens, billed together with the image at $13.2 / 1M. So the cost per image with token-based billing is not fixed — it varies. The table below is taken from real token-billed requests on 2026-10-07; amounts are the actual charges in the console (resolution inferred from output tokens):thoughtsTokenCount in usageMetadata is not included in candidatesTokenCount, but it is counted as output tokens in your APIYI logs and billed. Estimating from 1120 / 1680 / 3780 tokens underestimates the cost by 20%–40%. Reconcile against the charges in your console logs.Parameters That Affect Your Bill
thinkingLevel: default is medium, and high costs only a little more
high costs 54% more), 2.1 already thinks by default, and high just thinks a bit longer. Turn it on freely when in-image text layout or chart proportions must be exact.
Google Search grounding: billed per search query
For images that need live information (weather cards, market charts, posters for recent events), attach thegoogleSearch tool:
Groups
Nano Banana 2.1 is available in two groups on APIYI; switch between them in your token settings:Pay-as-you-go Priority — it works with token-based billing for Nano Banana 2 / 2.1 and per-request billing for Nano Banana Pro, so one token covers the whole family. Put Default as the primary group and NB-Enterprise as the fallback; if the primary group returns 429, requests automatically fall back and keep generating.
Resolutions and Aspect Ratios
Output resolution
Supported aspect ratios (14)
1:1, 1:4, 4:1, 1:8, 8:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
If you omit aspectRatio, the model picks a ratio based on the content: in our tests, scene prompts mostly came out 16:9 and poster prompts 2:3 or 3:4. Pass it explicitly if you need a fixed ratio.
Measured output sizes (pixels)
FAQ
Are Nano Banana 2.1 and Nano Banana 2 the same model?
Are Nano Banana 2.1 and Nano Banana 2 the same model?
gemini-nano-banana-2.1, with better quality, text rendering and multi-turn consistency, and a different pricing structure (more expensive input, cheaper image output, more tokens per 4K image). Both models are available on APIYI and don’t affect each other.What do I change to switch from Nano Banana 2?
What do I change to switch from Nano Banana 2?
- Change the model name from
gemini-3.1-flash-image(or-preview) togemini-nano-banana-2.1 - If you use
"imageSize": "512", change it to1K - If you estimate cost from tokens, re-check it against the “what one image actually costs” table above
Will Nano Banana 2 be shut down?
Will Nano Banana 2 be shut down?
gemini-3.1-flash-image; it only lists 2.1 as the recommended replacement. Nano Banana 2 on APIYI remains available at the same price. We will notify you in advance if that changes.Why is my bill higher than the image tokens suggest?
Why is my bill higher than the image tokens suggest?
thoughtsTokenCount. If you mostly generate 4K, per-request billing ($0.05) is the better deal.Is there a concurrency limit?
Is there a concurrency limit?
timeout: 4K or peak-time requests can take a while (most 4K requests in our tests took 30–50 seconds, a few over 2 minutes), so set the client timeout to 360 seconds. If you hit occasional 429s, add NB-Enterprise as your token’s fallback group.Do output images have a watermark?
Do output images have a watermark?
Related Docs
- Nano Banana 2 Image Gen/Editing - previous version, supports 512px
- Nano Banana Pro Image Gen/Editing - highest quality
- Nano Banana Dev Guide - size control, input image requirements, image URLs
- Nano Banana Pricing
- Gemini Image Error Handling