Nano Banana is Google’s family of Gemini image generation models. On Brioi, nano-banana-2, nano-banana-2.1 and nano-banana-pro are all billed per request, starting at ¥0.22 CNY per 1K image (¥22.00 CNY for 100 images, ¥220.00 CNY for 1,000 images; fetched 2026-12-04). Pricing scales across the image_size tiers (1K, 2K and 4K), and omitting image_size on the async API bills at 1K. Live rates for 2K and 4K are on the pricing page under nano-banana.
How much does the Nano Banana API cost per image?
Start with Google’s own prices, the baseline for any comparison. The table shows standard prices for image output only, in USD:
| Model | Resolution | 1 image | 100 images | 1,000 images |
|---|---|---|---|---|
| Nano Banana 2.1 | 1K | 0.0336 | 3.36 | 33.6 |
| Nano Banana 2.1 | 2K | 0.0504 | 5.04 | 50.4 |
| Nano Banana 2.1 | 4K | 0.113 | 11.3 | 113 |
| Nano Banana 2 | 1K | 0.067 | 6.7 | 67 |
| Nano Banana 2 | 2K | 0.101 | 10.1 | 101 |
| Nano Banana 2 | 4K | 0.151 | 15.1 | 151 |
| Nano Banana Pro | 1K, 2K | 0.134 | 13.4 | 134 |
| Nano Banana Pro | 4K | 0.24 | 24 | 240 |
Source: Gemini API pricing page, checked 2026-11-30. The free tier for all three models is listed as “Not available”, and input tokens for the prompt and reference images are charged on top. Google doesn’t offer the Gemini API in every country or region, and paying Google is inconvenient in others. Brioi works in those places: you top up with USDT or an international card and call the models with a Brioi API key.
How do I estimate the cost of a batch?
Multiply images × average takes per image × the price of the tier you chose. Take 1,000 product images at 2K with 2 takes each on average: 2,000 requests. At Google’s standard prices that is $100.80 on Nano Banana 2.1, $202 on Nano Banana 2 and $268 on Nano Banana Pro. For the same batch, Pro costs more than 2.6 times as much as 2.1, so test with the cheaper model first and then decide.
The math on Brioi is the same; swap in the rate for that tier from the pricing page. Two things change the bill directly:
- On the async API, a request without
image_sizeis billed at 1K. For 2K or 4K you must send it explicitly, and you are charged for the tier you send. - Each task returns 1 image, and
ncan only be 1. For 4 options, submit 4 tasks and pay 4 times.
Which API does each of the five model names use?
| Brioi model name | Positioning in the docs | Async image API | Native Gemini sync API | Reference image limit (async) |
|---|---|---|---|---|
nano-banana-2 |
General text-to-image, fast output | Supported | Not listed in the docs | 5 |
gemini-3.1-flash-image |
Balance of speed and quality | Supported, same fields as nano-banana-2 |
Supported | 5 |
nano-banana-2.1 |
Balance of speed and quality | Not supported | Supported | Not applicable |
nano-banana-pro |
High-resolution images, product shots, demanding text and detail | Supported | Not listed in the docs | 14 |
gemini-3.0-pro-image |
Quality first | Supported, same fields as nano-banana-pro |
Supported | 14 |
gemini-3.1-flash-image and gemini-3.0-pro-image cost the same on both APIs. None of the five models supports /v1/chat/completions, so selecting them in a chat client makes the request fail.
How do I call the async API?
Create a Brioi API key and set it as the BRIOI_API_KEY environment variable. The POST below creates a billable task: one 1K image, charged at the 1K rate for nano-banana-2.
curl -X POST "https://vip.brioi.com/v1/images/async/generations" \
-H "Authorization: Bearer $BRIOI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"nano-banana-2","prompt":"An iced coffee on a wooden table, early morning sunlight, lifestyle photography","aspect_ratio":"1:1","image_size":"1K"}'
Save the returned task_id, put it in place of TASK_ID below, and poll every 3 to 5 seconds. When the status is SUCCESS, download from images[].url; when it is FAILURE, read fail_reason. Result links may expire, so save the file right away.
curl "https://vip.brioi.com/v1/images/async/generations/TASK_ID" \
-H "Authorization: Bearer $BRIOI_API_KEY"
To use reference images, add an image_urls array of public HTTPS image links. With no reference image, leave the field out; don’t send an empty array.
How do I call Nano Banana 2.1?
nano-banana-2.1 only works on the native Gemini sync API: the request waits until the image is ready, with no task ID and no polling. Authenticate with your Brioi key in any one of three ways: Authorization: Bearer, the x-goog-api-key header or the ?key= parameter. The script below is billed once, generates one 1K image and saves it as banana.png (the real format is the MIME type in the response).
pip install requests
import base64
import os
import re
import requests
URL = "https://vip.brioi.com/v1beta/models/nano-banana-2.1:generateContent"
body = {
"contents": [{"role": "user", "parts": [{"text": "An iced coffee on a wooden table, early morning sunlight, no text and no watermark"}]}],
"generationConfig": {"responseModalities": ["IMAGE"], "imageConfig": {"imageSize": "1K"}},
}
r = requests.post(URL, json=body, timeout=300,
headers={"Authorization": f"Bearer {os.environ['BRIOI_API_KEY']}"})
if r.status_code != 200:
raise SystemExit(f"HTTP {r.status_code}, request id {r.headers.get('X-Oneapi-Request-Id')}: {r.text}")
parts = [p for c in r.json().get("candidates", []) for p in c.get("content", {}).get("parts", [])]
inline = [p["inlineData"]["data"] for p in parts if "inlineData" in p]
if inline:
data = base64.b64decode(inline[0])
else:
urls = [p["fileData"]["fileUri"] for p in parts if "fileData" in p]
for p in parts:
urls += re.findall(r"!\[[^\]]*\]\((https://[^)\s]+)\)", p.get("text", ""))
urls = list(dict.fromkeys(urls)) # the same image can appear twice; dedupe
if not urls:
raise SystemExit("No image in the response")
data = requests.get(urls[0], timeout=120).content
with open("banana.png", "wb") as f:
f.write(data)
The script reads the image in the order the Brioi docs give: decode inlineData.data first, then read fileData.fileUri, then extract a Markdown image URL from text. Standard Gemini SDKs usually handle only inlineData, so you have to handle the other two yourself. If a sync request times out, don’t resend it straight away. Note the X-Oneapi-Request-Id response header and check what happened first, so you don’t pay twice for the same image.
Which resolutions and aspect ratios are supported?
- Resolution:
1K,2K,4K, with an uppercase K. On the native API,imageSizeis required forgemini-3.1-flash-imageandgemini-3.0-pro-image; fornano-banana-2.1it is optional and defaults to 1K. aspect_ratioon the async API:nano-banana-2supports1:1,16:9,9:16,4:3,3:4andauto;nano-banana-proalso supports2:3,3:2,4:5,5:4and21:9. Leaving it out or sendingautoboth produce a vertical9:16image.aspectRatioon the native API doesn’t accept exactly the same values. For example,gemini-3.0-pro-imagehas no4:5or5:4there. Go by the table in the native API docs (in Chinese).- The ratio is a composition preference, and the output isn’t guaranteed to match it exactly. Where a fixed ratio is required, check and crop after generation.
How do I troubleshoot errors?
| Symptom | Common cause |
|---|---|
| 400 | A wrong parameter, such as a ratio that isn’t in that model’s list. Also check against the docs: image_size needs an uppercase K; leave out image_urls when there’s no reference image instead of sending an empty array; don’t send chat parameters such as messages to the image API |
| 401 | Missing or invalid key |
| 403 | Balance too low, or the key has no access to the model. Check that GET /v1/models lists it |
| 404 | The task you queried doesn’t exist |
| 429 | Too many requests; lower your concurrency |
| 500, 502, 503 | Temporary service error; try again later |
Every parameter is in the Nano Banana image generation docs and the native Gemini sync image generation docs (both in Chinese). To choose between Nano Banana Pro and GPT Image 2 for e-commerce images, see the AI image API comparison for e-commerce. For another model with a flat price per request, see the GPT Image 2 API. Other models and ways to connect to Brioi are on the developers page.

