# Nano Banana 2.1

`nano-banana-2.1` · Google DeepMind · Image Generation & Editing

Generate an image from a text prompt. Describe the subject, the layout, the lighting, the style and any text that should appear, then pick a size. The model returns the nearest of its fourteen aspect ratios at 1K, 2K or 4K.

[Model page](https://runstage.dev/models/nano-banana-21) · [JSON](https://runstage.dev/models/nano-banana-21.json) · [Catalog](https://runstage.dev/pricing) · [Playground](https://runstage.dev/playground?model=nano-banana-2.1)

## Technical summary

- **Exact API model slug**: `nano-banana-2.1`
- **Developer**: Google DeepMind
- **Inference types**: `txt2img`, `img2img`
- **Infrastructure**: Partner Cloud (Premium plan)
- **Headline rate**: Live estimate via /api/v2/quote (Partner rate (estimated before run))
- **Free quote endpoint**: `POST https://runstage.dev/api/v2/quote`

## Runstage routes

- **Text to Image** (`txt2img`): `POST /api/v2/quote` · `POST /api/v2/run` · `GET /api/v2/jobs/{request_id}` · `GET /api/v2/jobs/{request_id}/output` · `MCP runstage_generate_media`
- **Image Edit** (`img2img`): `POST /api/v2/quote` · `POST /api/v2/run` · `GET /api/v2/jobs/{request_id}` · `GET /api/v2/jobs/{request_id}/output`

## Best for

- Run Nano Banana 2.1 via unified v2 jobs with free pre-run /price quotes
- Partner-hosted flagship model accessible on Premium accounts

## Billing notes

Partner external model (Premium plan required). Quote via /api/v2/quote returns an estimate (is_estimated: true); settled on completion.

## Quickstart (cURL)

```bash
# 1. Free pre-run retail quote
curl -X POST 'https://runstage.dev/api/v2/quote' \
  -H "Content-Type: application/json" \
  -d '{"model":"nano-banana-2.1","width":1024,"height":1024}'

# 2. Submit metered job
curl -X POST 'https://runstage.dev/api/v2/run' \
  -H "Authorization: Bearer $RUNSTAGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{   "model": "nano-banana-2.1",   "prompt": "A high-speed wildlife photograph of a common kingfisher bursting out of a still river with a small silver fish in its beak, frozen at 1/8000 s. Wings swept back, every electric-blue and orange feather sharp, a crown of water droplets and a rising column of splash caught in mid-air, each droplet reflecting the sky. Low side light from the early morning sun, dark green out-of-focus reeds in the background, the bird'\''s reflection broken up in the rippled water below. Telephoto compression, shallow depth of field, natural colours.",   "width": 1024,   "height": 1024,   "seed": 42 }'

# Optional: switch to image editing (img2img) by uploading multipart -F "image=@input.png"
# curl -X POST 'https://runstage.dev/api/v2/run' -H "Authorization: Bearer $RUNSTAGE_API_KEY" --form-string 'model=nano-banana-2.1' --form-string 'prompt=A high-speed wildlife photograph of a common kingfisher bursting out of a still river with a small silver fish in its beak, frozen at 1/8000 s. Wings swept back, every electric-blue and orange feather sharp, a crown of water droplets and a rising column of splash caught in mid-air, each droplet reflecting the sky. Low side light from the early morning sun, dark green out-of-focus reeds in the background, the bird'\''s reflection broken up in the rippled water below. Telephoto compression, shallow depth of field, natural colours.' -F "image=@input.png"

# 3. Poll owner-scoped job result until status is "done" or "failed"
curl -H "Authorization: Bearer $RUNSTAGE_API_KEY" \
  'https://runstage.dev/api/v2/jobs/<request_id>'
```
