Nano Banana 2.1 API

High-speed Google image generation and 14-reference editing across 14 aspect ratios (including ultra-wide 4:1, 8:1, 1:4, and 1:8 banners) and 1K/2K/4K resolutions with deterministic per-image pricing.

GoogleAvailablenano-banana-2.1POST /v1/images/generations
From$0.0220/ img(2.200 Credits / img)$0.0336-35%
Model Highlights1K–4K · 14 Ratios (4:1–8:1) · 14 Refs
Best ForHigh-volume 1K–4K catalog & content automation · Ultra-wide 4:1 & 8:1 web ribbons and display ads · Zero-surcharge 14-image style & scene fusion
InputUTF-8 prompt · Optional 1–14 HTTPS ref images
Output & DeliveryJPEG / PNG · 30-day signed HTTPS URL

Nano Banana 2.1 Web Studio & API Playground

Preview live credit estimates and export cURL without signing in, or sign in to upload local reference images and generate real samples.

Configure Image Task

nano-banana-2.1 · POST /v1/images/generations
Live quote
139 chars
Presets:
Reference Images (Optional)0/14

Upload local files or paste HTTPS URLs; up to 14 reference images included at +0 Credits.

Click to upload or drag images hereJPG, PNG, WebP · ≤ 30MB each · max 14 files
Estimated cost~$0.02202.200 Credits
16:9 · 1K
Ready
Nano Banana 2.1 sample output
Adjust settings on the left or switch to the JSON tab to inspect the payload

Nano Banana 2.1 API Pricing & Budget Guide

Fixed per-image pricing: 2.2 Credits (1K), 2.6 Credits (2K), or 3.4 Credits (4K) per image, with 0–14 reference images included at 0 extra Credits.

First Test Cost

Save 35%
$0.0220/ img
2.200 Credits / imgvs $0.0336 official
  • $10 top-up yields ~454 images (1K) ($1 = 100 Credits, no subscription)
  • $0 charged on failed or timed-out tasks—100% of held credits return automatically

Testing Budget Guide

$1 = 100 Credits
  • $10 (1,000 Credits)454 images (1K) · 294 images (4K)
  • $50 (5,000 Credits)2,272 images (1K) · 1,923 images (2K)
  • $100 (10,000 Credits)4,545 images (1K) · 2,941 images (4K)
SpecificationRef creditsUSD equivOfficial referencePer $10
1K output (default) · 0–14 ref images included2.200000 Credits$0.0220$0.0336~454 images
2K output · 0–14 ref images included2.600000 Credits$0.0260$0.0504~384 images
4K ultra-HD output · 0–14 ref images included3.400000 Credits$0.0340$0.1134~294 images

Interactive Volume Cost Calculator

Choose output settings and expected call volume to estimate your spend in Credits and USD.

Interactive Specification Cost Calculator
nano-banana-2.1
Output resolution (resolution)Same price across all ratios
Reference images (0–14)Included (+0 Credits)
0 / 14
Price per Call
2.20Credits / image
≈ $0.0220 USD ($1 = 100 Credits)Save 35% vs. official estimate
Output resolution tier
1K · 2.200 Credits
Reference images (0–14)
Text-to-image (+0 Credits)
$10 (1,000 Credits) output
~454 images
1,000 runs: $22.002,200 Credits
Official estimate: $33.60You save $11.60
Fixed per-image rate across all aspect ratios; 0–14 reference images included at +0 Credits; failed calls charge 0 Credits.

About Nano Banana 2.1, Integration & Model Comparison

Fast 1K–4K image & 14-ref editing · 14 ratios

011K–4K · 14 Ratios (4:1–8:1) · 14 Refs

Core Capabilities

Nano Banana 2.1 API is Google’s high-speed 1K/2K/4K image generation and 14-reference editing model. It supports 14 aspect ratios—including standard 1:1, 16:9, 9:16, 21:9 plus panoramic 4:1, 8:1, 1:4, and 1:8 formats—making it ideal for web banners, UI headers, e-commerce catalogs, and multi-image composition.

02POST /v1/images/generations

Input Specs & 30-Day Delivery

Input
UTF-8 prompt · Optional 1–14 HTTPS ref images
Output
JPEG / PNG · 30-day signed HTTPS URL
03$0.0220 / img · -35%

Pricing Advantage & $0 Failure Protection

With flat per-image pricing of 2.2 Credits ($0.0220) at 1K (-35% vs. official), 2.6 Credits ($0.0260) at 2K, and 3.4 Credits ($0.0340) at 4K (-70% vs. official), Nano Banana 2.1 includes up to 14 reference images at no extra cost.

Three Ways to Use Nano Banana 2.1

Use in Claude & ChatGPT (Zero-Code MCP)

Connect Callmodels Remote MCP to Claude, ChatGPT, or Google Gemini via zero-key browser sign-in. Run Nano Banana 2.1 in plain English inside chat with upfront price quotes before any spend.

Connect Chat Assistant

Direct HTTPS REST API

Send standard JSON requests to POST /v1/images/generations on https://api.callmodels.dev with account-scoped Idempotency-Key deduplication and 30-day signed result URLs—zero vendor SDK lock-in.

Jump to API Reference

Integrate with AI Coding Agents (Cursor / Claude Code)

Copy a self-contained engineering prompt with exact endpoint, schema constraints, polling loop, and error handling—paste straight into Cursor, Claude Code, or Codex.

Production Use Cases

1K ($0.0220) · 4K ($0.0340)

High-volume 1K–4K catalog & content automation

Generate 454 images per $10 at 1K or 294 native 4K images per $10 with zero token-count variance.

size: "4:1" | "8:1" | "1:4" | "1:8"

Ultra-wide 4:1 & 8:1 web ribbons and display ads

Render native panoramic ribbons and vertical scroll strips directly without awkward post-cropping.

image_urls (1..14) · 1K / 2K / 4K

Zero-surcharge 14-image style & scene fusion

Pass up to 14 reference images for virtual try-on, interior restyling, or storyboard continuity without increasing per-call cost.

Sibling & Family Model Comparison

ModelBilling ModeMax SpecStarting PriceOutput per $10Best For
Nano Banana ProFixed per image4K · 14 refs included · 10 ratios$0.0390 / img256 imgs (2K)2K–4K flagship studio photography, typography & 14-ref fusion
Nano Banana 2.1Fixed per image4K · 14 refs · 14 ratios (4:1–8:1)$0.0220 / img454 imgs (1K)Fast low-cost 1K–4K generation, 4:1/8:1 banners & 14-ref edits
Grok Imagine Image 2.0Fixed per image2K · n=1..10 batch · 1–3 refs$0.0375 / img266 imgs (1K low)Cinematic aesthetics, mobile 19.5:9/20:9 & n=1..10 batch variants
GPT Image 2.6 FlareActual tokens4K · 16 refs · Mask & GIF$0.0139 / img~721 imgs (16:9 low)Fast production, 16-ref/mask editing & animated GIFs
GPT Image 2.6 SunburstActual tokens4K · Studio precision · 16 refs$0.0139 / img~721 imgs (16:9 low)Hero product renders, macro materials, mask edits & GIFs
Seedream 5.5Fixed per image2K · One output per request · PNG/JPEG$0.0200 / img500 imgs (1K / 1.5K)Fixed per-image rates and transparent cutouts

Itemized Call Billing & 30-Day Result Delivery

Atomic Hold & Settlement · Nano Banana 2.1

$0 on Failure
Rate lock
Locked at HTTP 202 acceptance
Idempotency
24h Idempotency-Key
Starting rate
$0.0220 / img (2.200 Credits / img)
Failed or timed out
0 Credits (100% hold returned)

How billing and 30-day file delivery work

  1. 1
    Submitting a request locks the published rate and temporarily holds the maximum credits for your chosen specification.
  2. 2
    Once generation finishes, Callmodels verifies output file integrity and metadata before marking the task completed.
  3. 3
    Exact usage is settled against the locked rate, any unused hold returns immediately to your balance, and a 30-day HTTPS link is signed.
  4. 4
    Your backend or browser reads https://files.callmodels.dev/... directly for 30 days without passing an API key.

Nano Banana 2.1 API FAQ

How much does Nano Banana 2.1 cost at 1K, 2K, and 4K?

Nano Banana 2.1 charges a flat 2.2 Credits ($0.0220) at 1K, 2.6 Credits ($0.0260) at 2K, and 3.4 Credits ($0.0340) at 4K across all 14 aspect ratios.

Which aspect ratios are unique to Nano Banana 2.1?

In addition to the 10 standard ratios (1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 4:5, 5:4, 21:9), Nano Banana 2.1 supports extreme panoramic and vertical ratios: "4:1", "8:1", "1:4", and "1:8".

Are reference images charged separately on Nano Banana 2.1?

No. Passing 1 to 14 HTTPS URLs in image_urls adds 0 extra Credits—you pay only the output resolution rate.

Can I pass Nano Banana 2.1 outputs directly to Grok or Seedance video APIs?

Yes. Every completed image returns a 30-day signed HTTPS link on files.callmodels.dev that works directly inside image_urls on POST /v1/videos/generations.

What happens if a request fails validation or times out?

Invalid parameters return HTTP 400 with 0 Credits held, and any failed or timed-out task releases 100% of held credits automatically.

Nano Banana 2.1 API Reference & Code Examples

Submit to POST /v1/images/generations with your Bearer key and a stable Idempotency-Key. Query the returned task ID for its result links and settled credits.

Building with Cursor, Claude Code, or Codex? Copy the AI Integration Prompt

Includes exact endpoint, parameter constraints, async polling loop, and error handling—paste straight into your coding agent.

Standalone Docs Page
Endpointhttps://api.callmodels.dev/v1/images/generationsGET /v1/tasks/{task_id}
Public model IDs
nano-banana-2.1Fast 1K / 2K / 4K Image Generation & 1–14 Reference Edit
ParameterTypeAllowed values & notes
Authorizationheader · Required
string
Bearer sk-... server-side API key from your account.
Idempotency-Keyheader · Optional (recommended)
string
1 to 255 ASCII chars. Prevents duplicate submissions and charges for 24h.
modelbody · Required
"nano-banana-2.1"
Stable public model ID for Google Nano Banana 2.1.
promptbody · Required
string
1 to 10,000 UTF-8 characters describing the image or multi-reference edit.
resolutionbody · Optional ("1K")
"1K" | "2K" | "4K"
Output resolution tier ("1K" = 2.2, "2K" = 2.6, "4K" = 3.4 Credits).
sizebody · Optional ("auto")
"auto" | 14 aspect ratios ("1:1".."8:1")
Supports "auto", "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "4:5", "5:4", "21:9", "1:4", "4:1", "1:8", and "8:1".
image_urlsbody · Optional (omitted)
string[] (1..14)
Optional 1–14 downloadable HTTPS reference images, included at 0 extra Credits.
nbody · Optional (1)
1
Outputs 1 image per task; submit concurrent async tasks for batch throughput.
# Set CALLMODELS_OPERATION_ID once per job and keep it for retries.
: "${CALLMODELS_OPERATION_ID:?Set a stable job ID}"
curl --silent --show-error --fail-with-body --max-time 15 "https://api.callmodels.dev/v1/images/generations" \
  -H "Authorization: Bearer $CALLMODELS_API_KEY" \
  -H "Idempotency-Key: $CALLMODELS_OPERATION_ID" \
  -H "Content-Type: application/json" \
  --data-binary '{
  "model": "nano-banana-2.1",
  "prompt": "Sunlit cedar and glass architectural pavilion beside a still alpine mirror pool",
  "size": "16:9",
  "resolution": "1K"
}'

# Set TASK_ID to the id from the response, then poll until terminal.
if [ -n "${TASK_ID:-}" ]; then
  curl --silent --show-error --fail-with-body --max-time 15 "https://api.callmodels.dev/v1/tasks/$TASK_ID" \
    -H "Authorization: Bearer $CALLMODELS_API_KEY"
fi
HTTP/1.1 200 OK
X-Request-Id: req_example
Cache-Control: no-store

{
  "id": "task_01e561ba-859e-47fe-be79-60bc6f1d6499",
  "model": "nano-banana-2.1",
  "object": "image.generation.task",
  "created_at": "2026-11-21T00:00:00.000Z",
  "status": "completed",
  "results": [
    {
      "type": "image",
      "url": "https://files.callmodels.dev/task_01e561ba-859e-47fe-be79-60bc6f1d6499/0.jpg?expires=1797811200&sig=example",
      "expires_at": "2026-12-21T00:00:00.000Z"
    }
  ],
  "usage": {
    "cost_credits": "2.2"
  }
}
HTTP / Task Error CodeCause & Recommended HandlingBilling Impact
400 invalid_parameter
400 model_not_found
Use the model ID and parameters documented for the endpoint. Correct the JSON before sending again.0 Credits for this rejection
401 invalid_api_key
Check the server-side Bearer key, expiration and revocation status.0 Credits for this rejection
402 insufficient_balance
402 key_quota_exceeded
Check available account credits and the key’s total and daily limits with GET /v1/credits.0 Credits for this rejection
403 model_access_denied
403 account_disabled
Check the model allowlist and account status.0 Credits for this rejection
404 not_found
Check the task ID or original Idempotency-Key and the account that submitted it.0 Credits for this rejection
409 idempotency_key_conflict
Use the original JSON for this job. Assign a fresh key only to a new job.0 Credits for this rejection
413 body_too_large
415 unsupported_media_type
Send application/json with a request body no larger than 128 KiB.0 Credits for this rejection
500 internal_error
503 service_unavailable
503 model_unavailable
On a timeout or transient error, look up the original job and retry only with its original key and body.Check the task record
Task: delivery_failed
Task: submission_unknown
Task: submission_rejected
Task: upstream_failed
Task: timeout
The task ended. Its hold was released. Review error.code before creating a separate generation job.0 Credits charged

Ready to Ship with Nano Banana 2.1 API?

Sign in with Google to create scoped sk- API keys, top up from $10 with no monthly commitment, and pay $0 on failed calls.