Nano Banana 2.1 API

google/gemini-nano-banana-2.1
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.
Output
$30 / 1M
Released
Oct 6, 2026

Overview

What Is Nano Banana 2.1 API?

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.

Technical Reference

DeveloperGoogle
Model IDgoogle/gemini-nano-banana-2.1
ModalitiesText → Image
Resolutions1K, 2K, 4K
Released6 October 2026
EndpointPOST /v1/images/generations

What Nano Banana 2.1 Brings to the Table

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.

API Pricing

  • Per generation: $0.104 / gen

Where Nano Banana 2.1 Makes the Most Sense

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

Uptime and performance

  • Uptime (24h): 100%
  • Uptime (7d): 98.0%
  • Availability (24h): 99.0%
  • Error rate (24h): 1.0%
  • End-to-end latency (24h median): 19.3s

Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.

Use cases

  • Marketing visuals: campaign imagery generated to a brief, at up to 4K.
  • Typography-led design: posters and covers, where Google cites improved text rendering.
  • Series and variations: multi-turn consistency keeps a look stable across a set.
  • Grounded imagery: optional web search for subjects that need to match something real.

How to use Nano Banana 2.1 API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to google/gemini-nano-banana-2.1.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/images/generations",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "google/gemini-nano-banana-2.1",
      "prompt": "A weathered brass compass resting on a nautical chart",
      "resolution": "2K"
    },
)
print(r.json())
const r = 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 weathered brass compass resting on a nautical chart",
    "resolution": "2K"
  }),
});
console.log(await r.json());
curl -X POST 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 weathered brass compass resting on a nautical chart","resolution":"2K"}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Nano Banana 2.1 API Pricing

TypePrice
Input
$1.5 / 1M tokens
Output
$30 / 1M

Billed per generation. 2K output is charged at 1.5x the standard rate, 4K at 2x, and 0.5K at 0.75x.

Nano Banana 2.1 Benchmarks

BenchmarkScoreWhat it measuresSourceRetrieved
Text-to-Image Arena
1160
Human preference Elo from blind pairwise comparisons of generated images, measured independently by Artificial AnalysisSourceOctober 7, 2026

Nano Banana 2.1 vs other models

ModelInputOutputContextBest for
$1.5 / 1M tokens
$30 / 1M
Image generation
$5 / 1M tokens
$30 / 1M tokens
Precise image editing
$5 / 1M tokens
$30 / 1M tokens
Image generation at scale
$5 / 1M tokens
$32 / 1M tokens
Image generation at scale

Frequently asked questions

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.

$0.104 per generation at the standard rate. 2K output is charged at 1.5x that rate, 4K at 2x, and 0.5K at 0.75x.

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.

Start building with Nano Banana 2.1

Get API Key
1000+ models, one API.