TokenRa AI Model Catalog
Nano Banana Pro API · Live on TokenRa

Nano Banana Pro API: $0.10 per Image, Up to 4K

Google's Gemini 3 Pro Image model, served as gemini-3-pro-image-preview. Generate or edit an image with one chat request at $0.10 per image, the same at 1K, 2K and 4K. OpenAI-compatible, and the Gemini format works too.

$0.10per image, 1K to 4K
Up to 4K4096×4096 tested
No Google Cloudone TokenRa key

What Nano Banana Pro is

Nano Banana Pro is the name Google uses for Gemini 3 Pro Image, its image generation and editing model built on Gemini 3 Pro. It draws from a text prompt and edits an image you send with it. TokenRa enabled it on November 22, 2026. One API key and one model ID give you generation, editing and output sizes from 1K to 4K.

Model ID: gemini-3-pro-image-preview

Google's own documentation now lists the model as gemini-3-pro-image. On TokenRa, send gemini-3-pro-image-preview; that is the ID in the Model Square and the one every example below was tested with.

01

Generate and edit

A text prompt returns a new image. A prompt plus an image returns an edited copy. Both are one chat request.

02

1K, 2K or 4K

Pick the size and aspect ratio per request. 4K at 1:1 returned a 4096×4096 JPEG in testing.

03

One flat price

$0.10 per request whatever the size, and edits cost the same as new images. Failed requests are not charged.

Nano Banana Pro API pricing

TokenRa bills $0.10 per request. Google prices image output by tokens: a 1K or 2K image uses 1,120 output tokens and a 4K image 2,000, at $120 per million. That is $0.134 and $0.24 per image on Google's pricing page (checked November 22, 2026). On TokenRa every size costs the same, so the saving grows with the resolution.

Output size Google list price TokenRa You save
1K (1024×1024) $0.134 $0.10 25%
2K (2048×2048) $0.134 $0.10 25%
4K (4096×4096) $0.24 $0.10 58%
1,000 images $134 at 1K/2K, $240 at 4K $100 $34 to $140

Google's figures are its image output prices. Google also bills the prompt and the model's thinking tokens, a fraction of a cent per image in our tests. TokenRa's $0.10 covers the whole request. Live rates are in the Model Square.

Per request

$0.10 / image

A flat charge per successful request, not per token.

Any size

4K at the 1K price

A 4096×4096 image was billed $0.10 in testing, the same as a 1K image.

Edits

Same rate

An edit request costs $0.10 too. A request that fails is not charged.

How to call the Nano Banana Pro API

Send a chat completion to https://tokenra.io/v1/chat/completions. The image comes back inside the message as a Markdown image whose link is a base64 data URL. Size and aspect ratio go in extra_body.google.image_config. The full parameter list is in the Nano Banana Pro API docs.

import base64, os, re
from openai import OpenAI

client = OpenAI(api_key=os.environ["TOKENRA_API_KEY"], base_url="https://tokenra.io/v1")

resp = client.chat.completions.create(
    model="gemini-3-pro-image-preview",
    messages=[{"role": "user", "content": "A watercolor fox reading a book under a desk lamp"}],
    extra_body={"extra_body": {"google": {"image_config": {"aspect_ratio": "1:1", "image_size": "4K"}}}},
)
data = re.search(r"base64,([A-Za-z0-9+/=]+)", resp.choices[0].message.content).group(1)
open("image.jpg", "wb").write(base64.b64decode(data))

The nested extra_body is intentional: the OpenAI SDK merges its extra_body argument into the request, and the gateway reads the extra_body field it finds there. Write the keys in snake_case; aspectRatio is rejected.

  • Call /v1/chat/completions, not /v1/images/generations: the image endpoints return HTTP 500 for this model.
  • Set the client timeout to 180 seconds or more. Requests took 36 to 84 seconds in testing.
  • Keep the key on your server. Never ship a TokenRa key in browser code.

Edit an image

To edit, send one user message whose content is an array: a text part with the instruction and an image_url part with the picture as a base64 data URL. The test below sent "Make the kite blue. Keep everything else the same." The shape, the frame and the tail stayed put and only the color changed. The output was 1376×768, a little narrower than the 1408×768 source, so set aspect_ratio if the size has to match exactly.

Source image: a red paper kite with a red bow tail on a white background
Source, generated by Nano Banana Pro
Edited image: the same kite and tail, now blue
After "Make the kite blue", 44 seconds, $0.10

Gemini format (generateContent)

If your code already speaks Google's format, call https://tokenra.io/v1beta/models/gemini-3-pro-image-preview:generateContent with your TokenRa key as a Bearer token. The size goes in generationConfig.imageConfig and the image comes back in inlineData. A 16:9 request at 2K returned 2752×1536.

curl "https://tokenra.io/v1beta/models/gemini-3-pro-image-preview:generateContent" \
  -H "Authorization: Bearer $TOKENRA_API_KEY" \
  -H "Content-Type: application/json" \
  -o response.json \
  -d '{
    "contents": [{"role": "user", "parts": [{"text": "A watercolor fox reading a book under a desk lamp"}]}],
    "generationConfig": {"responseModalities": ["IMAGE"], "imageConfig": {"aspectRatio": "16:9", "imageSize": "2K"}}
  }'

Nano Banana Pro vs Nano Banana 2

Google sells two Nano Banana lines. Pro runs on Gemini 3 Pro and is Google's premium image model; Nano Banana 2 runs on Gemini 3.1 Flash and is the faster, cheaper line, and Nano Banana 2.1 is its update. Google has no model called "Nano Banana Pro 2": that search usually means one of these two. TokenRa serves Nano Banana Pro today.

  Nano Banana Pro Nano Banana 2
Built on Gemini 3 Pro Image Gemini 3.1 Flash Image
On TokenRa Live, gemini-3-pro-image-preview Not available yet
Google list price, 1K / 2K / 4K $0.134 / $0.134 / $0.24 $0.067 / $0.101 / $0.151
TokenRa price $0.10 at every size —
Positioned for Quality and complex scenes Speed and high volume

List prices from Google's pricing page, November 22, 2026. Nano Banana 2.1 lists at $0.0336, $0.0504 and $0.113 for 1K, 2K and 4K.

Access without a Google Cloud project

You do not need a Google account, a Cloud project or a billing setup with Google. A TokenRa account and an API key are enough. The only floor is the $10 minimum top-up: a zero-balance account is rejected before the model is called.

1

Create an account

Register and open the console.

2

Top up and create a key

Add balance, create an API key and keep it on your server.

3

Send a chat request

Set model to gemini-3-pro-image-preview and point your client at https://tokenra.io/v1.

Production checklist

  • Client timeout of 180 seconds or more; 2K and 4K were the slowest.
  • Plan for large responses: 2K images were 1.6–4.3 MB and 4K images 3.4–12.9 MB in testing, and base64 in the JSON adds a third.
  • Decode the data URL on your server and store the JPEG; do not pass multi-megabyte JSON to browsers.
  • Set aspect_ratio when the output size matters. Without it the model picks a size.
  • Budget per request: 1,000 images cost $100 at any size.
  • Review data handling and output rights for your use case before launch.

FAQ

Is Nano Banana Pro available on TokenRa?

Yes. It went live on November 22, 2026 under the model ID gemini-3-pro-image-preview, at $0.10 per request.

What is the model ID?

On TokenRa it is gemini-3-pro-image-preview. Google's own docs now list the model as gemini-3-pro-image; send the -preview ID to TokenRa.

How much does it cost?

$0.10 per request on TokenRa, the same for 1K, 2K and 4K output and for edits. Google lists $0.134 per 1K or 2K image and $0.24 per 4K image.

Does a 4K image cost more?

No. A 4096×4096 image was billed $0.10 in testing, the same as a 1K image.

Can it edit images through the API?

Yes. Send the image as an image_url part (a base64 data URL) together with a text instruction in one chat message.

Which endpoint do I call?

POST https://tokenra.io/v1/chat/completions, or the Gemini format at https://tokenra.io/v1beta/models/gemini-3-pro-image-preview:generateContent. The /v1/images endpoints do not serve this model.

How do I set the size and aspect ratio?

Add extra_body.google.image_config with aspect_ratio (for example 16:9) and image_size (1K, 2K or 4K). Use snake_case keys.

Is Nano Banana Pro 2 a real model?

Not under that name. Google ships Nano Banana Pro (Gemini 3 Pro Image) and Nano Banana 2 (Gemini 3.1 Flash Image), and searches for Nano Banana Pro 2 usually mean one of the two. TokenRa serves Nano Banana Pro.

Do I need a Google Cloud project or a Google account?

No. A TokenRa account and API key are enough. The account needs a balance: the minimum top-up is $10.

How long does a request take?

36 to 84 seconds in testing, with 2K and 4K the slowest. Set the client timeout to at least 180 seconds.

"Google", "Gemini", "Nano Banana" and related names may be trademarks of Google LLC. TokenRa is an independent API gateway; this page is not an official Google page or endorsement.

Last updated: November 22, 2026