# Nano Banana Pro API

[HTML canonical](https://bettertoken.ai/en/nano-banana-pro-api/)

GEMINI · IMAGE GENERATION

Generate 1K–4K images from $0.05 each.

Billed per image — thinking tokens aren't charged separately. No Google Cloud setup.

[Get your API key](https://bettertoken.ai/register) [See code examples ↓](https://bettertoken.ai/en/nano-banana-pro-api/#code) [API docs ↗](https://docs.bettertoken.ai/en/api-reference/nano-banana)

[First top-up $5, pay only $3](https://bettertoken.ai/workspace)

Pay with USDT

BETTERTOKEN · IMAGE API

## Nano Banana Pro

1K $0.05 −63%

2K $0.07 −48%

4K $0.08 −67%

per image

Up to 67% cheaper than Google official pricing

$5 ≈ 100 images (1K) 71 (2K) · 62 (4K)

Google real-time API: $0.13 / $0.13 / $0.24 · 2026-11-03

[Google Gemini API pricing ↗](https://ai.google.dev/gemini-api/docs/pricing)

Pricing

## Nano Banana Pro API pricing: cost per image at 1K, 2K and 4K

Per-image prices for 1K, 2K and 4K, compared with Google’s real-time API.

| per image | 1K | 2K | 4K |
| --- | --- | --- | --- |
| BetterToken | $0.05 −63% | $0.07 −48% | $0.08 −67% |
| Google real-time API Image output only | $0.13 | $0.13 | $0.24 |

### The full cost of one 1K image at Google

1,120 tokens × $120 / 1M = ≈ $0.13

700–900 thinking tokens × $12 / 1M = ≈ $0.01–0.01

100–500 prompt tokens × $2 / 1M ≈ $0–0

≈ $0.14–0.15

Budget example, not a measured bill. One image, no reference image, no retries.

2026-11-03 · [Google Gemini API pricing ↗](https://ai.google.dev/gemini-api/docs/pricing) · [Pricing](https://bettertoken.ai/en/pricing/)

### Estimate your monthly cost

Resolution

BetterToken $50 per month

Google real-time API $134.40–146.20 per month

You save≈ $84.40–96.20 per month

[Get your API key](https://bettertoken.ai/register)

### Top-up tiers

| Credit amount | You pay | 1K · images | 2K · images | 4K · images | Top up |
| --- | --- | --- | --- | --- | --- |
| $5→ You pay $3 First top-up | $3 | 1K 100 | 2K 71 | 4K 62 | [Top up](https://bettertoken.ai/workspace) |
| $50→ You pay $48 | $48 | 1K 1,000 | 2K 714 | 4K 625 | [Top up](https://bettertoken.ai/workspace) |
| $100→ You pay $95 | $95 | 1K 2,000 | 2K 1,428 | 4K 1,250 | [Top up](https://bettertoken.ai/workspace) |
| $200→ You pay $185 | $185 | 1K 4,000 | 2K 2,857 | 4K 2,500 | [Top up](https://bettertoken.ai/workspace) |
| $500→ You pay $450 | $450 | 1K 10,000 | 2K 7,142 | 4K 6,250 | [Top up](https://bettertoken.ai/workspace) |

Discounts apply per top-up; first top-up saves an extra $2.

Start here

## Get a Nano Banana Pro API key and make your first image

### Try one image

nano-banana-pro

Resolution

Aspect ratio

Sign in to test directly with your API key.

[First top-up $5, pay only $3](https://bettertoken.ai/workspace)

One request, one image. The highest-tier amount is reserved; the actual output determines the charge.

Example · nano-banana-pro · 1K · 1024 × 1024

Sign up → get your key → add balance. [Sign in](https://bettertoken.ai/login) · Stripe · USDT

Code examples

## Use the Nano Banana Pro API with OpenAI or Gemini SDKs

[Full API reference — parameters, errors, limits ↗](https://docs.bettertoken.ai/en/api-reference/nano-banana)

Use OpenAI-compatible or Gemini native SDKs. The image comes back in the response — no task polling.

image_size selects the billing tier; aspect_ratio selects the shape. size does not guarantee exact returned pixels.

Read API key from BETTERTOKEN_API_KEY. Keep it out of shared code.

```sh
curl --fail-with-body --max-time 600 \
  'https://bettertoken.ai/v1/images/generations' \
  -H "Authorization: Bearer $BETTERTOKEN_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "nano-banana-pro",
    "prompt": "A mechanical wristwatch e-commerce infographic with labeled callouts",
    "n": 1,
    "image_size": "1K",
    "aspect_ratio": "1:1",
    "response_format": "b64_json"
  }' -o response.json
```

Save the returned image

```python
import json, base64
raw = base64.b64decode(json.load(open("response.json"))["data"][0]["b64_json"])
ext = "png" if raw[0] == 137 else "jpg" if raw[0] == 255 else "webp"
open("image." + ext, "wb").write(raw)
```

### Two protocols. One direct response.

| Protocol | Text to image | Reference image editing | Inpainting (mask) |
| --- | --- | --- | --- |
| OpenAI Images `/v1/images/generations /v1/images/edits` | ✓ | ✓ | — |
| Gemini native `/v1beta/models/nano-banana-pro:generateContent` | ✓ | ✓ | ✓ Handled by BetterToken gateway |

[API docs ↗](https://docs.bettertoken.ai/en/api-reference/nano-banana)

Resolution

## Nano Banana Pro resolution: 1K, 2K and 4K, tested

Measured on 2026-11-04: all nine 1K/2K/4K and aspect-ratio combinations met their target dimensions. 4K returned 4096 × 4096 (1:1), 5504 × 3072 (16:9) and 3072 × 5504 (9:16).

| Resolution · Ratio | Expected pixels | Measured | Meets target | Elapsed |  |
| --- | --- | --- | --- | --- | --- |
| 1K |  |  |  |  |  |
| 1K · 1:1 | 1,024 × 1,024 | 1,024 × 1,024 | ✓ | 95 s | ✓ · 95 s |
| 1K · 16:9 | 1,376 × 768 | 1,376 × 768 | ✓ | 125 s | ✓ · 125 s |
| 1K · 9:16 | 768 × 1,376 | 768 × 1,376 | ✓ | 146 s | ✓ · 146 s |
| 2K |  |  |  |  |  |
| 2K · 1:1 | 2,048 × 2,048 | 2,048 × 2,048 | ✓ | 167 s | ✓ · 167 s |
| 2K · 16:9 | 2,752 × 1,536 | 2,752 × 1,536 | ✓ | 160 s | ✓ · 160 s |
| 2K · 9:16 | 1,536 × 2,752 | 1,536 × 2,752 | ✓ | 147 s | ✓ · 147 s |
| 4K |  |  |  |  |  |
| 4K · 1:1 | 4,096 × 4,096 | 4,096 × 4,096 | ✓ | 123 s | ✓ · 123 s |
| 4K · 16:9 | 5,504 × 3,072 | 5,504 × 3,072 | ✓ | 154 s | ✓ · 154 s |
| 4K · 9:16 | 3,072 × 5,504 | 3,072 × 5,504 | ✓ | 141 s | ✓ · 141 s |

Measured on BetterToken via /v1/images/generations (OpenAI-compatible) · Nov 4, 2026

[How to verify any provider's 4K yourself →](https://bettertoken.ai/en/tools/image-api-checker/) [API docs ↗](https://docs.bettertoken.ai/en/api-reference/nano-banana)

Comparison

## Nano Banana Pro vs Nano Banana 2: same prompt at 1K, 2K and 4K

Prompt (same for all 9 images)

A detailed e-commerce infographic for a mechanical wristwatch: the watch on a dark slate surface with a reflective sapphire crystal and brushed steel case, an exploded view of the movement gears on the right, four labeled callouts with thin leader lines ("Sapphire crystal", "42 mm steel case", "100 m water resistant", "72 h power reserve"), a small five-row specification table, a price tag "$299", and fine print at the bottom: "Free shipping · 2-year warranty · 30-day returns"

Detail crops. The same region is displayed at the same size to compare clarity.

### Nano Banana Pro

1K

$0.05

2K

$0.07

4K

$0.08

1K 1024 × 1024 · $0.05

2K 2048 × 2048 · $0.07

4K 4096 × 4096 · $0.08

### Nano Banana 2

1K

$0.04

2K

$0.06

4K

$0.07

1K 1024 × 1024 · $0.04

2K 2048 × 2048 · $0.06

4K 4096 × 4096 · $0.07

### Nano Banana 2.1

1K

$0.04

2K

$0.06

4K

$0.07

1K 1024 × 1024 · $0.04

2K 2048 × 2048 · $0.06

4K 4096 × 4096 · $0.07

Model guide

## Nano Banana 2 and 2.1 API pricing vs Nano Banana Pro

The same key calls all three models. Just change the model parameter.

| Model guide | 1K | 2K | 4K | Best for |
| --- | --- | --- | --- | --- |
| Nano Banana Pro | $0.05 −63% vs official ~~$0.134~~ | $0.07 −48% vs official ~~$0.134~~ | $0.08 −67% vs official ~~$0.240~~ | Highest quality, complex typography |
| Nano Banana 2 | $0.04 −40% vs official ~~$0.067~~ | $0.06 −40% vs official ~~$0.101~~ | $0.07 −54% vs official ~~$0.151~~ | Value and volume generation |
| Nano Banana 2.1 | $0.04 | $0.06 | $0.07 −38% vs official ~~$0.113~~ | Google's recommended new version |

## Gemini 3 Pro Image API (Nano Banana Pro)

Nano Banana Pro is Gemini 3 Pro Image. Nano Banana 2 and 2.1 are different models.

FAQ

## Nano Banana Pro API FAQ

### Is the Nano Banana Pro API free?

No. Registration is free; image generation is paid. Add balance before your first image.

[Start here](https://bettertoken.ai/en/nano-banana-pro-api/#start) · [API docs ↗](https://docs.bettertoken.ai/en/api-reference/nano-banana)

### How much does the Nano Banana Pro API cost?

From $0.05 for a 1K image. 2K and 4K have their own per-image prices.

### What is the cheapest Nano Banana Pro API?

Compare the resolution tier and whether thinking tokens cost extra when looking for the cheapest option. BetterToken bills per image: 1K $0.05, 2K $0.07, 4K $0.08, with no separate thinking token fees. Up to 67% below Google’s official image-output pricing.

### How much does the Nano Banana 2 API cost?

Nano Banana 2 costs $0.04 / $0.06 / $0.07 per image at 1K / 2K / 4K. Nano Banana 2.1 costs $0.04 / $0.06 / $0.07 at the same tiers. Use the same API key and change the model parameter.

### How do I get an API key? Do I need a Google Cloud project?

Sign up and complete the Workspace introduction to prepare your Default Key. You do not need a Google Cloud project.

### Can I use Python or the OpenAI SDK?

Yes. Both OpenAI-compatible and Gemini native examples include Python, Node.js and curl, with image saving.

### Do I get the image directly, or do I need to poll a task?

The image is returned in the response. You do not need to poll a task.

### Can I edit images or use inpainting?

Yes. OpenAI Images supports reference editing; use Gemini native for inpainting with a mask.

### Does the Nano Banana Pro API support 4K?

Yes. Images are billed at the 4K tier. Our 2026-11-04 test returned 4096 × 4096 at 1:1, 5504 × 3072 at 16:9 and 3072 × 5504 at 9:16 for the 4K tier. Decode the returned image and read its pixel dimensions to verify each response.

### Are thinking tokens charged separately?

No. BetterToken bills per image without a separate charge for thinking tokens.

### Can I use the same key for other models?

Yes. Change the model parameter to use Nano Banana 2 or 2.1 with the same key.

### How can I pay?

Use Stripe or USDT.

### What are the rate limits?

There is no fixed per-key request rate limit. At peak times, you may receive a busy response; wait a few seconds before retrying.

BETTERTOKEN · NANO BANANA PRO

## Your next image starts with one key.

First top-up $5, pay only $3

[Get your API key](https://bettertoken.ai/register) [API docs ↗](https://docs.bettertoken.ai/en/api-reference/nano-banana) [Talk to sales →](https://bettertoken.ai/en/enterprise/)

Pay with USDT
