Generate and edit
A text prompt returns a new image. A prompt plus an image returns an edited copy. Both are one chat request.
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.
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.
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.
A text prompt returns a new image. A prompt plus an image returns an edited copy. Both are one chat request.
Pick the size and aspect ratio per request. 4K at 1:1 returned a 4096×4096 JPEG in testing.
$0.10 per request whatever the size, and edits cost the same as new images. Failed requests are not charged.
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.
A flat charge per successful request, not per token.
A 4096×4096 image was billed $0.10 in testing, the same as a 1K image.
An edit request costs $0.10 too. A request that fails is not charged.
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.
/v1/chat/completions, not /v1/images/generations: the image endpoints return HTTP 500 for this model.
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.
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"}}
}'
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.
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.
Register and open the console.
Add balance, create an API key and keep it on your server.
Set model to gemini-3-pro-image-preview and point your client at https://tokenra.io/v1.
aspect_ratio when the output size matters. Without it the model picks a size.Yes. It went live on November 22, 2026 under the model ID gemini-3-pro-image-preview, at $0.10 per request.
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.
$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.
No. A 4096×4096 image was billed $0.10 in testing, the same as a 1K image.
Yes. Send the image as an image_url part (a base64 data URL) together with a text instruction in one chat message.
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.
Add extra_body.google.image_config with aspect_ratio (for example 16:9) and image_size (1K, 2K or 4K). Use snake_case keys.
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.
No. A TokenRa account and API key are enough. The account needs a balance: the minimum top-up is $10.
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