# Nano Banana 2 API

> Nano Banana 2 is Google’s fast image generation and editing line: 2.1 for better text and 1K–4K output, 2 for speed, and 2 Lite for low latency.

Source: https://www.sandbase.ai/models/nano-banana-2

## Models

- [Google Nano Banana 2.1 Text to Image](https://www.sandbase.ai/models/google/nano-banana-2.1.md): `google/nano-banana-2.1`; From $0.03 per run (15% off list price); Nano Banana 2.1 is Google's latest fast image generation model, with better prompt adherence, cleaner text rendering, extreme aspect ratios and 1K to 4K output.
- [Google Nano Banana 2.1 Edit](https://www.sandbase.ai/models/google/nano-banana-2.1/edit.md): `google/nano-banana-2.1/edit`; From $0.04 per run (15% off list price); Nano Banana 2.1 Edit is Google's latest fast image editing model, fusing up to 14 reference images with stronger subject consistency and 1K to 4K output.
- [Google Nano Banana 2 Lite Text to Image](https://www.sandbase.ai/models/google/nano-banana-2-lite.md): `google/nano-banana-2-lite`; $0.03 per run; Nano Banana 2 Lite by Google - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.
- [Google Nano Banana 2 Lite Edit](https://www.sandbase.ai/models/google/nano-banana-2-lite/edit.md): `google/nano-banana-2-lite/edit`; $0.03 per run; Nano Banana 2 Lite Edit is Google's low-latency, cost-efficient image editing model (Gemini 3.1 Flash Lite Image). Edit and combine supplied images with a text prompt; output is a 1K image.
- [Google Nano Banana 2 Text to Image](https://www.sandbase.ai/models/google/nano-banana-2.md): `google/nano-banana-2`; From $0.06 per run (15% off list price); Nano Banana 2 is Google's new state-of-the-art fast image generation and editing model
- [Google Nano Banana 2 Edit](https://www.sandbase.ai/models/google/nano-banana-2/edit.md): `google/nano-banana-2/edit`; From $0.06 per run (15% off list price); Nano Banana 2 is Google's new state-of-the-art image generation and editing model

## Model lineup

The most used endpoints first.

| Model | Task | What it does |
| --- | --- | --- |
| Nano Banana 2 Edit | Image edit | Nano Banana 2 is Google's new state-of-the-art image generation and editing model |
| Nano Banana 2 Text to Image | Text → image | Nano Banana 2 is Google's new state-of-the-art fast image generation and editing model |
| Nano Banana 2 Lite Text to Image | Text → image | Nano Banana 2 Lite by Google - generate stunning images from text prompts with state-of-the-art AI |
| Nano Banana 2.1 Text to Image | Text → image | Nano Banana 2.1 is Google's latest fast image generation model, with better prompt adherence, cleaner text rendering, extreme aspect ratios and 1K… |
| Nano Banana 2.1 Edit | Image edit | Nano Banana 2.1 Edit is Google's latest fast image editing model, fusing up to 14 reference images with stronger subject consistency and 1K to 4K… |
| Nano Banana 2 Lite Edit | Image edit | Nano Banana 2 Lite Edit is Google's low-latency, cost-efficient image editing model (Gemini 3.1 Flash Lite Image) |

## Overview

### Nano Banana 2 on SandBase

The Nano Banana 2 line has three tiers, each with a text-to-image and an Edit endpoint.

- **Nano Banana 2.1:** Google's latest fast image model, with better prompt adherence, cleaner text rendering, extreme aspect ratios and 1K–4K output. Edit fuses up to 14 reference images.
- **Nano Banana 2:** fast generation and editing. Nano Banana 2 Edit is one of the most used edit endpoints on SandBase.
- **Nano Banana 2 Lite:** low-latency, cost-efficient generation and editing (Gemini 3.1 Flash Lite Image).

For the top-quality tier, see Nano Banana Pro on [Nano Banana API](https://www.sandbase.ai/models/nano-banana).

## Start using Nano Banana 2 API on SandBase

One API key and one request shape for every model on this page.

1. **Create an API key** Sign in to the SandBase Console and create a key on the API Keys page. Keep it in an environment variable and never commit it to source control.

```
export SANDBASE_API_KEY="YOUR_SANDBASE_API_KEY"
```

2. **Submit a run** Send a request to the Unified Run API with model google/nano-banana-2.1. Only the model field changes between models on this page.

```
curl https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "google/nano-banana-2.1", "prompt": "A nano banana dish plated in a fancy restaurant, Gemini-themed decor"}'
```

3. **Fetch the result** The response includes a run id. Poll it every few seconds until the status is completed, then download the output URL.

```
curl https://api.sandbase.ai/v1/run/$RUN_ID \
  -H "Authorization: Bearer $SANDBASE_API_KEY"
```

## FAQ

### Nano Banana 2.1 or 2?

Use 2.1 for better text, extreme aspect ratios and 4K. Use 2 if your prompts are already tuned for it.

### How many images can Nano Banana 2.1 Edit combine?

Up to 14 reference images.

### What is Nano Banana 2 Lite for?

High-volume, latency-sensitive generation and editing at lower cost.

### Is Nano Banana 2 the same as Gemini image?

Nano Banana is the name of Google’s Gemini image models; 2 Lite is Gemini 3.1 Flash Lite Image.

## Use it through SandBase

- Base URL: `https://api.sandbase.ai/v1`, with `Authorization: Bearer $SANDBASE_API_KEY`.
- Language models use the OpenAI-compatible `POST /v1/chat/completions`; media models use `POST /v1/run`; data APIs use `POST /v1/api/{vendor}/{endpoint}`.
- AI agents can connect through the SandBase MCP server or CLI: https://www.sandbase.ai/skill.md
- Every model and API page has a Markdown twin at the same URL plus `.md`. Full index: https://www.sandbase.ai/llms.txt
