Skip to content
youbot
Nano Banana 2.1 cover

Nano Banana 2.1 API

Also known as Gemini Nano Banana 2.1 · gemini-nano-banana-2.1

nano-banana-2-1
GoogleCommercial use API verifiedImage generationAspect ratios

Google's Nano Banana 2.1 — the October 2026 update to Nano Banana 2, for text-to-image and image editing with up to six reference images, at 1K, 2K and 4K.

by Google

Get Your API Key
View as Markdown

Pricing: 1K: 2 credits (≈ $0.02), 2K: 2.7 credits (≈ $0.027), 4K: 4.05 credits (≈ $0.0405).

Save up to 67%with the $1,250 top-up pack (+10% bonus) — 64% lower than direct rates even without itTop up

24H Status Monitor

Operational
24h agonow
Loading…

Affordable Nano Banana 2.1 API on you.bot

Access Google's Nano Banana 2.1 through one unified API — same model, better rates, one integration.

Nano Banana 2.1 API pricing & guide (2026)

Google's Nano Banana 2.1 — the October 2026 update to Nano Banana 2, for text-to-image and image editing with up to six reference images, at 1K, 2K and 4K. Through you.bot you call the Nano Banana 2.1 API by Google on the same unified endpoint as every other model — one key, one integration.

On you.bot, the Nano Banana 2.1 API costs about $0.020 per image — roughly 40% cheaper than the official Google price of $0.0336. You only pay for successful generations; failed tasks are never charged.

Billing is pay-as-you-go in credits (1 credit = $0.01 USD) — no subscription, no monthly minimum, and credits never expire. So Nano Banana 2.1 API pricing in 2026 is easy to predict: you pay per successful call and nothing for failures.

Core capabilities of the Nano Banana 2.1 API

High-fidelity generation

Create photoreal or stylized images with precise, prompt-driven control.

Editing & reference images

Edit existing images or guide the output with one or more reference images.

Flexible sizes & formats

Pick aspect ratios, resolutions and output formats that fit your product.

How to access and deploy the Nano Banana 2.1 API on you.bot

Step 1

Get your API key

Create a key in the dashboard — one key works across every model on the platform.

Step 2

Call the Nano Banana 2.1 endpoint

POST your prompt and parameters to /api/v1/generate with your key in the Authorization header.

Step 3

Poll for your result

Use the returned taskId to poll the task endpoint, or register a webhook to receive the result URLs.

curl -X POST https://you.bot/api/v1/generate \
  -H "Authorization: Bearer sk-live-..." \
  -H "Content-Type: application/json" \
  -d '{
    "modelId": "nano-banana-2-1",
    "input": { "prompt": "..." }
  }'

Nano Banana 2.1 API on you.bot vs going direct

Featureyou.botGoing direct
Price per image$0.020$0.0336
Failed-task billingFree (auto-refund)Charged
IntegrationOne unified APIPer-vendor SDKs
Credit expiryNeverVaries

4.9

Based on 1,200+ developer reviews

Why choose you.bot for the Nano Banana 2.1 API

40% cheaper

Lower rates than going direct to Google — and you only pay for successful runs.

Production-grade reliability

Monitored availability with automatic credit refunds on failed jobs.

One API for everything

Swap models freely without touching your integration or juggling vendors.

FAQs about the Nano Banana 2.1 API

Nano Banana 2.1 is billed per image at about $0.020 on you.bot — and you only pay for successful generations.

Google

Nano Banana 2.1 API code example

POST/api/v1/generate

Google's Nano Banana 2.1 — the October 2026 update to Nano Banana 2, for text-to-image and image editing with up to six reference images, at 1K, 2K and 4K.

Overview

Nano Banana 2.1 runs in two steps: POST /api/v1/generate to start a task, then poll GET /api/v1/task/{taskId} until the result is ready.

Key features

  • Flexible aspect ratios: 1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, 5:4, 4:5, 21:9, 1:4, 4:1, 1:8, 8:1

Authentication

All requests require a Bearer Token in the header:

Authorization: Bearer YOUR_API_KEY

Request parameters

ParameterTypeRequiredDescription
modelIdstringYesModel id: `nano-banana-2-1`
inputobjectYesInput parameters object (see below)
callbackUrlstringNohttps URL we POST the finished task to. Signed with `X-Webhook-Signature` once you create a webhook signing key in Dashboard → Settings

input object parameters

ParameterTypeRequiredDescription
promptstringYesText value
image_inputstring[]NoImage URL
aspect_ratiostringYesOptions: 1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, 5:4, 4:5, 21:9, 1:4, 4:1, 1:8, 8:1 · default: 1:1
resolutionstringNoOptions: 1K, 2K, 4K · default: 1K

Query task status

GET/api/v1/task/{taskId}?model=nano-banana-2-1

When state is success, the output is in resultUrls:

{ "state": "success", "resultUrls": ["https://…/api/file?t=…"] }

Error codes

CodeDescription
200Request successful
400Invalid request parameters
401Authentication failed — check API Key
402Insufficient account balance
403IP not allowed for this key, or the key is restricted to other models
404Task not found, or it has expired
409Duplicate request — an identical submit arrived moments ago. Nothing was charged; retry is safe
413Payload too large — see the character and file-size limits for this model
429Rate limit exceeded — retry after the Retry-After header
500Internal server error
504Upstream timed out — nothing was delivered; retry is safe
Request
curl --location 'https://you.bot/api/v1/generate' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "modelId": "nano-banana-2-1",
    "input": {
        "prompt": "A photorealistic portrait of a red fox in a snowy forest, soft morning light, shallow depth of field, 85mm.",
        "image_input": [
            "https://you.bot/examples/grok-imagine-text-to-image.jpg"
        ],
        "aspect_ratio": "1:1",
        "resolution": "1K"
    },
    "callbackUrl": "https://your-domain.com/api/callback"
}'
Response
{
  "taskId": "281e5b0…f39b9",
  "creditsCharged": 2
}