---
last_updated: 2026-11-30
source_url: https://opper.ai/google/gemini-nano-banana-2-1
title: "Nano Banana 2.1 by Google"
description: "Nano Banana 2.1 by Google, the update to Nano Banana 2 for image generation and editing at 1K, 2K and 4K, at about half its price per image."
---

# Nano Banana 2.1

By [Google](https://opper.ai/google).

Released 6 Oct 2026, 6 days after [Gemini 4 Argon](https://opper.ai/google/gemini-4-argon) · [Announcement](https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/gemini/nano-banana-2-1) · [All Google releases](https://opper.ai/model-releases/google)

Nano Banana 2.1 is Google's update to Nano Banana 2 (Gemini 3.1 Flash Image), generally available on Vertex AI since October 6, 2026. It generates and edits images from text, images, video and PDF input within a 131,072 token context, and returns images with optional text.

It renders at 1K, 2K and 4K across a wide set of aspect ratios, including the panoramic 1:4, 4:1, 1:8 and 8:1, where Google fixed the tiling artifacts of the previous version. It improves text rendering and infographic layout, and fuses up to 14 reference images while keeping characters consistent. Thinking is supported; structured output is not.

An image costs about half what it does on Nano Banana 2, which makes it the default choice for high-volume product, marketing and localization work.

## Available routes

Nano Banana 2.1 runs on 2 different routes through the Opper gateway. Prices are per 1M tokens. Its routes and prices, live from the catalogue, are public JSON with no API key needed at https://api.opper.ai/v3/models?q=gemini-nano-banana-2.1.

| Provider | Model id | Region | Zero data retention | Training | Input | Output | Cache read |
| --- | --- | --- | --- | --- | --- | --- | --- |
| [Google Cloud](https://opper.ai/provider/google) | `gemini/gemini-nano-banana-2.1` | US (United States) | Abuse monitoring | No | $1.50 | $7.50 | Input price |
| [Google Cloud](https://opper.ai/provider/google) | `vertexai/gemini-nano-banana-2.1` | Multi-region | Abuse monitoring | No | $1.50 | $7.50 | $0.15 |

## Key info

- Model id: `gemini-nano-banana-2.1` (routes across Google Cloud)
- Input: Text, Image, Video, Files
- Output: Text, Image
- Features: none listed
- Context window: 131K
- Max output: 33K
- Text input price: $1.50 per 1M tokens
- Text output price: $7.50 per 1M tokens
- Image output price: $30.00 per 1M tokens
- Released: 6 Oct 2026
- US residency available on Google Cloud
- Zero data retention with abuse monitoring
- No training by default

## Data handling per route

Each route hosting Nano Banana 2.1 has its own privacy posture, residency, and GDPR terms. Postures are maintained by Opper with a last-verification timestamp.

### Google Cloud — United States

Zero data retention with abuse monitoring: prompts and outputs are kept for abuse monitoring only, for a window the provider does not state, and are not used for training. No training on customer data. US; SCCs.

- Zero data retention: With abuse monitoring, window not stated.
- Training: No training on customer data.
- Logging: Abuse monitoring
- Abuse monitoring: On by default, holds flagged content, 55 days, a person can view samples
- Transfer mechanism: SCCs

Verified by Opper on 2026-09-17.

### Google Cloud — Multi-region

Zero data retention with abuse monitoring: nothing is logged or used for training; content flagged by abuse monitoring is held for review. No training on customer data. GLOBAL; SCCs.

- Zero data retention: With abuse monitoring, flagged content held.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: On by default, holds flagged content, 90 days, a person can view samples
- Transfer mechanism: SCCs

Verified by Opper on 2026-10-26.

## Get started

Call Nano Banana 2.1 through the Opper gateway with one API key. Nano Banana 2.1 draws on Opper's images endpoint, POST /v3/images, and also answers in chat on the OpenAI-compatible endpoint.

See the [Opper images guide](https://docs.opper.ai/build/multimodal/images) and the [Opper multimodal skill](https://skills.opper.ai/opper-multimodal/SKILL.md).

Nano Banana 2.1 is a premium model on Opper. Sign up needs no credit card: you get an API key straight away and the free models work in the playground and the API. Add a card to use premium models, pay-as-you-go with no minimum.

### Set it up with your agent

Paste this into a coding agent like Claude Code, Cursor or Codex and it will wire up Opper for you:

```text
Use curl to download, read and follow: https://skills.opper.ai/opper-multimodal/SKILL.md Generate an image with Nano Banana 2.1
```

### Or call it directly

cURL:

```bash
curl -s https://api.opper.ai/v3/images \
  -H "Authorization: Bearer $OPPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini/gemini-nano-banana-2.1",
    "prompt": "A watercolor lighthouse on a cliff at sunrise",
    "aspect_ratio": "1:1",
    "quality": "medium"
  }' \
  | jq -r '.data[0].b64_json' | base64 --decode > image.png

# To edit an image, add "image": "https://..." (or a file_<id>) to the body
```

JavaScript:

```javascript
import { writeFile } from "node:fs/promises";

const res = await fetch("https://api.opper.ai/v3/images", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.OPPER_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "gemini/gemini-nano-banana-2.1",
    "prompt": "A watercolor lighthouse on a cliff at sunrise",
    "aspect_ratio": "1:1",
    "quality": "medium"
  }),
});
const { data } = await res.json();
// Each image comes back as base64 (b64_json) unless you ask for a url
await writeFile("image.png", Buffer.from(data[0].b64_json, "base64"));
```

OpenAI (chat):

```javascript
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.OPPER_API_KEY,
  baseURL: "https://api.opper.ai/v3/compat",
});

// In chat the model answers with text and images in one message
const completion = await client.chat.completions.create({
  model: "gemini-nano-banana-2.1",
  messages: [{ role: "user", content: "Draw a watercolor lighthouse on a cliff at sunrise" }],
});
console.log(completion.choices[0].message);
```

## Use Nano Banana 2.1 in your apps

Pick your tool to see how to run it on Nano Banana 2.1 through Opper.

- [Claude Code](https://opper.ai/apps/claude-code/gemini-nano-banana-2-1)
- [Claude Cowork](https://opper.ai/apps/claude-cowork/gemini-nano-banana-2-1)
- [Codex](https://opper.ai/apps/codex/gemini-nano-banana-2-1)
- [DeepSeek Harness](https://opper.ai/apps/deepseek-harness/gemini-nano-banana-2-1)
- [GitHub Copilot CLI](https://opper.ai/apps/github-copilot-cli/gemini-nano-banana-2-1)
- [Aider](https://opper.ai/apps/aider/gemini-nano-banana-2-1)
- [Goose](https://opper.ai/apps/goose/gemini-nano-banana-2-1)
- [Droid](https://opper.ai/apps/droid/gemini-nano-banana-2-1)
- [OpenCode](https://opper.ai/apps/opencode/gemini-nano-banana-2-1)
- [Pi](https://opper.ai/apps/pi/gemini-nano-banana-2-1)
- [OpenClaw](https://opper.ai/apps/openclaw/gemini-nano-banana-2-1)
- [Hermes](https://opper.ai/apps/hermes/gemini-nano-banana-2-1)
- [Copilot for Obsidian](https://opper.ai/apps/obsidian-copilot/gemini-nano-banana-2-1)
- [OmniRoute](https://opper.ai/apps/omniroute/gemini-nano-banana-2-1)
- [Cursor](https://opper.ai/apps/cursor/gemini-nano-banana-2-1)
- [Cline](https://opper.ai/apps/cline/gemini-nano-banana-2-1)
- [Continue](https://opper.ai/apps/continue/gemini-nano-banana-2-1)
- [Kilo Code](https://opper.ai/apps/kilo-code/gemini-nano-banana-2-1)
- [GitHub Copilot](https://opper.ai/apps/github-copilot/gemini-nano-banana-2-1)
- [Zed](https://opper.ai/apps/zed/gemini-nano-banana-2-1)
- [JetBrains AI Assistant](https://opper.ai/apps/jetbrains-ai-assistant/gemini-nano-banana-2-1)
- [Voidleap Code](https://opper.ai/apps/voidleap-code/gemini-nano-banana-2-1)
- [n8n](https://opper.ai/apps/n8n/gemini-nano-banana-2-1)
- [LibreChat](https://opper.ai/apps/librechat/gemini-nano-banana-2-1)
- [Open WebUI](https://opper.ai/apps/open-webui/gemini-nano-banana-2-1)
- [See all apps](https://opper.ai/apps)

## Other models from Google

- [Gemini 4 Argon](https://opper.ai/google/gemini-4-argon)
- [Gemini 3.8 Flash](https://opper.ai/google/gemini-3-8-flash)
- [Gemini 3.5 Flash-Lite](https://opper.ai/google/gemini-3-5-flash-lite)
- [Gemini 3.7 Flash](https://opper.ai/google/gemini-3-7-flash)
- [Gemini 3.6 Flash](https://opper.ai/google/gemini-3-6-flash)
- [Gemini 3.5 Flash](https://opper.ai/google/gemini-3-5-flash)
