Text to image
Elo · text-to-image arena
Custom pricing for production workloads
Nano Banana 2.1 is an update to Nano Banana 2 (Gemini 3.1 Flash Image) for fast image generation and conversational editing, with improved visual quality and text rendering.
Nano Banana 2.1 is an update to Nano Banana 2 (Gemini 3.1 Flash Image) for fast image generation and conversational editing, with improved visual quality, text rendering, multi-turn consistency and Google Search grounding at 1K, 2K and 4K.
google/gemini-nano-banana-2.1POST https://api.aimlapi.com/v1/images/generationsNano Banana 2.1 is an update to Nano Banana 2 (Gemini 3.1 Flash Image) for fast image generation and conversational editing, with improved visual quality, text rendering, multi-turn consistency and Google Search grounding at 1K, 2K and 4K.
| Developer | |
|---|---|
| Model ID | google/gemini-nano-banana-2.1 |
| Modalities | Text → Image |
| Resolutions | 1K, 2K, 4K |
| Released | 6 October 2026 |
| Endpoint | POST /v1/images/generations |
Conversational editing
An image can be adjusted across turns rather than regenerated from scratch each time.
Text rendering
Improved over Nano Banana 2, which is the usual failure point in generated design work.
Search grounding
Google Search grounding for subjects that have to match something real.
Resolution you choose
1K, 2K and 4K output, billed at the standard rate, 1.5x and 2x respectively.
Design with text in it
Posters, covers and ads where legible typography decides whether the asset is usable.
Iterative work
Multi-turn consistency keeps a look stable while a detail is refined over several passes.
Sources: https://ai.google.dev/gemini-api/docs/models · https://fal.ai/models/google/nano-banana-2.1
Human-preference results for Nano Banana 2.1 in text to image, next to models available on AI/ML API. Data retrieved Nov 4, 2026.
Elo · text-to-image arena
Arena results for models you can call with the same API key.
Blind pairwise human votes on images generated from text prompts. Nano Banana 2.1 ranks #4 of 98.
| Usage | Price | Unit |
|---|---|---|
| Input | $1.5 | 1M tokens |
| Output | $30 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $1.5 | $30 | |
| $5 | $30 | |
| $5 | $30 | |
| $5 | $30 | |
| $5 | $32 |
Give your agent the model details, code and documentation.
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"curl 'https://api.aimlapi.com/v1/images/generations' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "google/gemini-nano-banana-2.1",
"prompt": "A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lettering on the glass reads OPEN LATE. Warm lamp light inside, raindrops and blurred neon reflections outside, 35mm film photo."
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "google/gemini-nano-banana-2.1",
"prompt": "A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lettering on the glass reads OPEN LATE. Warm lamp light inside, raindrops and blurred neon reflections outside, 35mm film photo."
}
response = requests.post("https://api.aimlapi.com/v1/images/generations", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/images/generations", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "google/gemini-nano-banana-2.1",
"prompt": "A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lettering on the glass reads OPEN LATE. Warm lamp light inside, raindrops and blurred neon reflections outside, 35mm film photo."
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Nano Banana 2.1 is Google's image model. It generates images from text prompts, and Google describes it as a high-efficiency image generation and editing model with improved visual quality, typography and multi-turn consistency.
0.5K (512px), 2K and 4K, set through the resolution parameter. Aspect ratio is adjustable.
Nano Banana 2.1 costs $1.5 input and $30 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Yes, web search grounding is an optional parameter, as is high thinking. Both are off by default.
Nano Banana 2.1 generates an image from a text prompt alone. Nano Banana 2.1 Edit takes reference images and transforms them from text instructions. They are separate endpoints at the same price.
Use google/gemini-nano-banana-2.1 as the model parameter. Requests go to https://api.aimlapi.com/v1/images/generations with your AI/ML API key.