# Gemini Nano Banana 2.1

ID: google/gemini-nano-banana-2.1
Type: image generation
Vendor: Google
Released: 2026-10-06 (2.1)
Description: Gemini Nano Banana 2.1 is Google’s Flash-tier image model for text-to-image and multi-image editing, with stronger layout, text, and subject consistency than Nano Banana 2.

## Modes and inputs
- Text → Image (`txt->img`)
  - Prompt only, no input images
- Image → Image (`img->img`)
  - any image: up to 14

## Output
- Aspect ratios: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, 4:1, 1:4, 8:1, 1:8. Other ratios snap to the closest one. Without `size` (or with `"auto"`), Mynth picks a ratio for the prompt.
- 4K: yes, send a ratio with `_4k`, e.g. `16:9_4k`
- Negative prompt: not supported (dropped, no error)

## Pricing (USD)
- Per image: $0.080
- Per image (4K): $0.15
- Per input image: $0.0030, charged once for each image it goes into
- Only successful results are charged.

## Usage
Set the request's `model` field to `google/gemini-nano-banana-2.1`. Always pass it explicitly.

TypeScript SDK, Text → Image:

```ts
import Mynth from "@mynthio/sdk";

const mynth = new Mynth();

const task = await mynth.image.generate({
  model: "google/gemini-nano-banana-2.1",
  prompt: "A lighthouse at dusk, 35mm film",
  size: "16:9",
});

console.log(task.urls[0]);
```

REST (cURL), Text → Image:

```bash
curl https://api.mynth.io/image/generate \
  -H "Authorization: Bearer $MYNTH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-nano-banana-2.1",
    "prompt": "A lighthouse at dusk, 35mm film",
    "size": "16:9"
  }'
```

CLI, Text → Image:

```bash
npx @mynthio/cli image generate \
  -m google/gemini-nano-banana-2.1 \
  -p "A lighthouse at dusk, 35mm film" \
  -s 16:9
```

TypeScript SDK, Image → Image:

```ts
import Mynth from "@mynthio/sdk";

const mynth = new Mynth();

const task = await mynth.image.generate({
  model: "google/gemini-nano-banana-2.1",
  prompt: "The same lighthouse, now in heavy fog",
  inputs: ["https://cdn.example.com/lighthouse.png"],
});

console.log(task.urls[0]);
```

REST (cURL), Image → Image:

```bash
curl https://api.mynth.io/image/generate \
  -H "Authorization: Bearer $MYNTH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-nano-banana-2.1",
    "prompt": "The same lighthouse, now in heavy fog",
    "inputs": ["https://cdn.example.com/lighthouse.png"]
  }'
```

CLI, Image → Image:

```bash
npx @mynthio/cli image generate \
  -m google/gemini-nano-banana-2.1 \
  -p "The same lighthouse, now in heavy fog" \
  -i https://cdn.example.com/lighthouse.png
```

## Links
- Model page: https://mynth.io/models/google%2Fgemini-nano-banana-2.1
- Playground: https://mynth.io/playground?_m=google%2Fgemini-nano-banana-2.1
- Vendor page: https://ai.google.dev/gemini-api/docs/models/gemini-nano-banana-2.1
- API docs (image generation request): https://mynth.io/docs/api-reference/endpoints/image/generate.md
- Quickstart: https://mynth.io/docs/getting-started.md
- SDK (JS/TS): https://mynth.io/docs/sdks/typescript.md
- This page as JSON: https://mynth.io/models/google%2Fgemini-nano-banana-2.1.json

## More from Google
- Gemini 3 Pro Image Preview [google/gemini-3-pro-image-preview]: https://mynth.io/models/google%2Fgemini-3-pro-image-preview.md
- Gemini 3.1 Flash Image [google/gemini-3.1-flash-image]: https://mynth.io/models/google%2Fgemini-3.1-flash-image.md
- Gemini 3.1 Flash-Lite Image [google/gemini-3.1-flash-lite-image]: https://mynth.io/models/google%2Fgemini-3.1-flash-lite-image.md
- Gemini Omni Flash 1.1 [google/gemini-omni-flash-1.1]: https://mynth.io/models/google%2Fgemini-omni-flash-1.1.md

## Similar models
- Wan 2.7 Image Pro [wan/wan2.7-image-pro]: https://mynth.io/models/wan%2Fwan2.7-image-pro.md
- FLUX.3 [black-forest-labs/flux-3]: https://mynth.io/models/black-forest-labs%2Fflux-3.md
- Riverflow 2.0 Pro [sourceful/riverflow-2.0-pro]: https://mynth.io/models/sourceful%2Friverflow-2.0-pro.md
- Kling IMAGE O3 [klingai/kling-image-o3]: https://mynth.io/models/klingai%2Fkling-image-o3.md
- Qwen Image 2.1 Pro [alibaba/qwen-image-2.1-pro]: https://mynth.io/models/alibaba%2Fqwen-image-2.1-pro.md
