Nano Banana API

Call Google's Nano Banana 2.1 with one API key: text to image, or edits with up to 10 reference images, at 1K, 2K or 4K. Reference images cost nothing extra, and you pay only for the images that succeed.

Pay as you go from $5 · No subscription · No free trial · Failed calls are not charged

Models in this series

  • Nano Banana 2.1

    Code sample below
    • Text
    • Up to 10 reference images (no extra cost)
    from 4 credits / image1K · ≈ $0.024 / image

Prices

Prices in API credits (1 credit = $0.006), checked December 5, 2026. GET /models is always current.

Nano Banana 2.1

Optioncredits / image≈ USD
1K4$0.024
2K6$0.036
4K9$0.054

Reference images cost nothing extra.

Code

import time

import httpx  # pip install httpx

BASE = "https://api.voicica.ai/platform/v1"
HEADERS = {"Authorization": "Bearer vca_your_key_here"}  # better: os.environ["VOICICA_API_KEY"]

# One 2K image = 6 credits; reference images cost nothing extra
task = httpx.post(f"{BASE}/images/generations", headers=HEADERS, timeout=60, json={
    "model": "google/nano-banana-2.1",
    "prompt": "Put this bottle on a wet stone table at a night market, neon reflections",
    "image_urls": ["https://example.com/bottle.png"],  # up to 10
    "aspect_ratio": "4:5",
    "resolution": "2K",
})
task.raise_for_status()  # 202 Accepted
task = task.json()        # {"id": "imggen_...", "status": "pending", "credits": "6.0000", ...}

while task["status"] in ("pending", "running"):
    time.sleep(5)
    task = httpx.get(f"{BASE}/images/generations/{task['id']}", headers=HEADERS, timeout=60).json()

for image in task["data"]:
    print(image["status"], image["url"])  # download within 30 days
print(task["credits"])  # succeeded images only

More examples (callbacks, polling, errors) are in the docs.

Parameters

ParameterNano Banana 2.1
aspect_ratio9:16, 1:1, 16:9, 3:4, 4:3, 2:3, 3:2, 4:5, 21:9 (default 9:16)
resolution / qualityresolution: 1K, 2K, 4K (default 1K)
image_urlsUp to 10
n1 to 4
promptUp to 20,000 characters

Sending an option a model does not have returns 400 unsupported_parameter; GET /models lists each model's params.

How it works

  1. POST /images/generations returns 202 with a task id and the credits it will take.

  2. Poll GET /images/generations/{id} every 5 s, or pass callback_url for a signed callback.

  3. Download the result within 30 days. Failed or timed-out tasks are refunded in full.

FAQ

Which Nano Banana version is on the API?

Nano Banana 2.1 (google/nano-banana-2.1). Nano Banana 2 and Nano Banana Pro are not offered.

How much does a Nano Banana image cost?

4 credits at 1K (about $0.024), 6 at 2K (about $0.036) and 9 at 4K (about $0.054), per image. Reference images cost nothing extra.

Can I edit my own images?

Yes. Pass up to 10 reference images in image_urls: public https URLs to PNG, JPEG or WebP files, up to 10 MB each.

How many images per request?

Up to 4 (n). You are charged only for the images that succeed.

How long are the images kept?

30 days from when the task finishes; download them before expires_at. They never appear in the Voicica studio or its galleries.

Is there a free trial?

No. There is no free trial or free credit. The smallest top-up is $5, about 833 API credits — about 138 images at 2K.

Get your API key

Top up from $5, create a key and call Nano Banana in a few minutes.

Model names are trademarks of their owners (Google). Voicica provides access to these models through APIs and is not affiliated with or endorsed by them.