Google DeepMind
Nano Banana 2.1
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.
nano-banana-2.1- Endpoint
POST /api/v2/run- Input
- Text prompt · Reference images
- Output
- Image (PNG / WebP)
- Rate
- ~$0.0845 / 1K (1024px)
Sample 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 w…”
Best for
- Live text-to-image generation and multipart image editing on POST /api/v2/run under one API key
- Free pre-run cost quotes via POST /api/v2/quote before committing credits
- Partner flagship image quality through one API key with spend caps enforced at submission
- API model ID
nano-banana-2.1- Model developer
- Google DeepMind
- Modality
- Image Generation & Editing
- Input
- Text prompt · Reference images
- Output
- Image (PNG / WebP)
- Endpoints
POST /api/v2/quotePOST /api/v2/runGET /api/v2/jobs/{request_id}GET /api/v2/jobs/{request_id}/outputMCP runstage_generate_media- Infrastructure
- Partner cloud capacity
Request parameters
modelstring · requiredExact Runstage model slug (nano-banana-2.1).
promptstring · requiredVisual description of subject, composition, lighting, and medium.
width / heightinteger · optionalOutput pixel dimensions (e.g. 1024×1024 or 1536×1024).
Additional parameters
qualityseedenhance_prompt
Quickstart
Copy a working request using model ID nano-banana-2.1. Check a free pre-run quote first (final cost settles on completion), then run with your Runstage API key.
# 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>'Pricing
| Billable unit and options | Rate (USD) |
|---|---|
| 1K · 1024×1024Standard square or portrait output (estimated) | ~$0.0845 |
| 2K · 2048×2048High-resolution editorial artwork (estimated) | ~$0.1372 |
| 4K · 4096×4096Ultra-high-resolution print master (estimated) | ~$0.2229 |
Billing notes
- Partner external model (Premium plan required). Quote via /api/v2/quote returns an estimate (is_estimated: true); settled on completion.
- Free pre-run cost estimates are available via POST /api/v2/quote before committing prepaid credits.
- Upfront reservations automatically reconcile against settled execution cost on completion or failure, refunding any unused reserved credits.
- Served via partner external capacity; final settled cost reconciles against reported execution metrics.
Live catalog rates on Runstage. Prepaid USD credits with per-key spend caps.
Compare in full catalog