# Nano Banana API

> Nano Banana is Google's Gemini image generation and editing family: Pro for quality, 2.1 and 2 for fast generation, and 2 Lite for low latency.

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

## 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
- [Google Nano Banana Pro Text to Image](https://www.sandbase.ai/models/google/nano-banana-pro.md): `google/nano-banana-pro`; From $0.11 per run (15% off list price); Nano Banana Pro is Google's new state-of-the-art image generation and editing model
- [Google Nano Banana Pro Edit](https://www.sandbase.ai/models/google/nano-banana-pro/edit.md): `google/nano-banana-pro/edit`; From $0.11 per run (15% off list price); Nano Banana Pro 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 Pro Edit | Image edit | Nano Banana Pro is Google's new state-of-the-art image generation and editing model |
| Nano Banana 2 Edit | Image edit | Nano Banana 2 is Google's new state-of-the-art image generation and editing model |
| Nano Banana Pro Text to Image | Text → image | Nano Banana Pro 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

### Google's image generation and editing family

Nano Banana models generate images from text and edit them with natural-language instructions. Every tier has a matching Edit endpoint.

- **Nano Banana Pro:** Google's state-of-the-art tier and one of the most used image models on SandBase.
- [Nano Banana 2.1](https://www.sandbase.ai/models/nano-banana-2): better prompt adherence, cleaner text, extreme aspect ratios, 1K–4K output, and edits that fuse up to 14 reference images.
- **Nano Banana 2 and 2 Lite:** fast and low-latency options for volume.

For Google video, see [Veo](https://www.sandbase.ai/models/veo). Compare with other families on [Best AI Image Models](https://www.sandbase.ai/models/best-image-models).

## Start using Nano Banana 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-pro/edit. 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-pro/edit", "prompt": "Create a professional e-commerce fashion photo. Take the blue floral dress from the first image and let the woman from the second image wear it. Generate a realistic, full-body shot of the woman wearing the dress, with the lighting and shadows adjusted to match the outdoor environment.", "images": ["https://static.sandbase.ai/examples/a24d699f-ac6b-4c57-b162-f6073c15d031/input/80b3b8e7-87db-4487-ab30-a844b4f22b96.png", "https://static.sandbase.ai/examples/a24d699f-ac6b-4c57-b162-f6073c15d031/input/7c80d815-ad38-457a-9664-bf7371a876b5.png"]}'
```

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

### Pro or 2.1?

Use Pro for the highest quality. Use 2.1 for fast generation with strong text rendering and multi-reference edits.

### How many reference images can I use?

Nano Banana 2.1 Edit accepts up to 14 reference images. Pass them as an images array.

### What resolutions are available?

Nano Banana 2.1 supports 1K to 4K output and extreme aspect ratios.

### What is Nano Banana 2 Lite?

A low-latency, cost-efficient tier for generation and editing.

## 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
