Google
Operational· checked every few minutes

Nano Banana 2 API

The Nano Banana 2 API: Google's fast image model at 1K, 2K and 4K, 63% below Google's price.

Price per image63%off
1K
$0.025$0.067
2K
$0.034$0.101
4K
$0.058$0.151
Model IDnano-banana-2Updated
generate.py
from openai import OpenAI
client = OpenAI(
base_url="https://api.zurelay.com/v1",
api_key="YOUR_ZURELAY_KEY",
)
image = client.images.generate(
model="nano-banana-2",
prompt="A red fox sitting in fresh snow at dawn, photo",
size="2K",
extra_body={"aspect_ratio": "16:9"},
)
print(image.data[0].url)

Base URL https://api.zurelay.com/v1. Works with any OpenAI SDK. Nano Banana guide

Resolutions
1K · 2K · 4K
Aspect ratios
1:1 to 21:9
Input
Text, Image
Output
Image, Text
Released
Feb 26, 2026
Status
Operational

Examples

Made with Nano Banana 2. Straight from the API.

Every image here is a single API call with the prompt underneath it, not retouched or upscaled. They're shown as compressed WebP; the API returns full-quality PNG.

Make your own
  • A small French bakery storefront on a cobblestone street in the early morning, a hand-lettered chalkboard sign by the door reads "Fresh Croissants Every Morning", golden pastries stacked in the window, warm light inside, a bicycle leaning on the wall, 35mm street photography, photorealistic.
  • Portrait of a beekeeper in a white veiled hat lifting a honeycomb frame covered in bees, golden late-afternoon light filtering through the veil, honey glistening on the comb, lavender field behind, 85mm lens, shallow depth of field, photorealistic.
  • A lone red vintage pickup truck driving down a straight desert highway at golden hour, long shadows, red rock mesas on the horizon, a thin trail of dust, wide-angle cinematic landscape photograph, photorealistic.
  • Overhead photograph of an omakase sushi platter on a dark slate board: glistening tuna, salmon and yellowtail nigiri, a few pieces of uni and ikura, pickled ginger and wasabi, chopsticks resting on a ceramic holder, soft studio light, food magazine photography.

Pricing

Nano Banana 2 API pricing. A fraction of the list price.

Pay as you go from prepaid credit, with no subscription. Top up from $10. Requests that fail are never billed.

RateZurelayGoogle list
1K image
per image
$0.025$0.067
2K image
per image
$0.034$0.101
4K image
per image
$0.058$0.151

Every image is checked against the resolution and aspect ratio you asked for before it's delivered.

Every Nano Banana model and price
Savings calculator

Move the sliders to your monthly usage.

Images per month1,000
Resolution
Zurelay
$25.00
Google list price
$67.00
You save every month$42.00

$504.00 a year

Cost

Nano Banana 2 API cost, worked out.

Typical workloads at Zurelay's live prices, next to the list price.

  • One image

    1 image at 1K.

    $0.025$0.067 at list
  • A product catalog

    100 images at 2K.

    $3.40$10.10 at list
  • A month of social posts

    1,000 images at 1K.

    $25.00$67.00 at list

Overview

What is Nano Banana 2?

Nano Banana 2 is Google's fast, general-purpose image model, served in the Gemini API as Gemini 3.1 Flash Image. The Zurelay Nano Banana 2 API turns a text prompt and up to 14 reference images into 1K, 2K or 4K images through an OpenAI-style images endpoint, at 63% below Google's price per image, and checks every image against Google's official size.

Google released Nano Banana 2 in preview on February 26, 2026, and it has been stable since May 28, 2026. Its API name is Gemini 3.1 Flash Image. Google positions it as the high-efficiency counterpart to Nano Banana Pro, tuned for speed and high-volume developer use, and calls it a versatile, general-purpose model that still reaches 4K. On Zurelay, the Nano Banana 2 API uses the model ID nano-banana-2 and costs from $0.025 per 1K image to $0.058 per 4K image.

Each resolution has its own price, at Google and on Zurelay. Google lists $0.067 for a 1K image and $0.151 for a 4K image. Zurelay charges $0.025 and $0.058, with 2K priced in between, and the price table on this page shows all three. You pay per image generated, and failed attempts are not billed.

On Zurelay, output comes in three resolutions (1K, 2K and 4K) and ten aspect ratios: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9 and 21:9. Google's own API adds a smaller 0.5K size and four extra-tall or extra-wide ratios (1:4, 4:1, 1:8 and 8:1), which Zurelay doesn't offer. Every image carries Google's invisible SynthID watermark, which identifies it as AI-generated.

Send a prompt to POST /v1/images/generations with size set to 1K, 2K or 4K and an optional aspect_ratio, the same request shape as Nano Banana Pro. To edit or combine pictures, add up to 14 reference images in images, or send them as files to /v1/images/edits. You get up to 4 images per request, as a URL or as base64. Zurelay checks every image's pixel dimensions against Google's official size for the resolution and ratio you asked for, so a smaller model can't pass as Nano Banana 2. An image that doesn't match counts as a failed attempt.

Strengths

Where Nano Banana 2 shines. And what teams build with it.

01

Built for volume

Google tunes Nano Banana 2 for speed and high-volume use, and lists it below Nano Banana Pro at every resolution.

02

Up to 4K resolution

Use 1K for drafts and thumbnails, 2K for the web and 4K for print and hero banners, each at its own price.

03

The real model, checked

Every image is measured against Google's official pixel size for your resolution and ratio, so a cheaper model can't stand in for it.

04

The right shape from the start

Ten aspect ratios, from 21:9 banners to 9:16 stories, so you generate at the target format instead of cropping.

Use cases

  • Product and catalog images

    Generate large sets of product shots, thumbnails and variations, where the cost per image adds up.

  • Social and ad creatives

    Make posts, stories and banners in the exact aspect ratio each placement needs.

  • Drafts before the final render

    Explore layouts and concepts at 1K, then move the final to Nano Banana Pro when it needs Pro's world knowledge and precise creative control.

  • 4K wallpapers and print

    Render posters, wallpapers and print assets at 4K without a separate upscaling step.

Get started

Call Nano Banana 2 in three steps.

No waitlist and no new SDK. If your code already talks to OpenAI, it already talks to Zurelay.

  1. 1

    Create a key

    Sign up, add credit and create an API key. Set a monthly budget or a rate limit per key if you like.

  2. 2

    Point your SDK at Zurelay

    Change the base URL. Everything else in your code stays the same.

    https://api.zurelay.com/v1
  3. 3

    Use nano-banana-2

    Send a prompt to /v1/images/generations with a size and aspect ratio, and get back a link to your image.

    nano-banana-2

FAQ

Nano Banana 2 API questions.

Anything else? Ask our team and we’ll answer by email.

What is the Nano Banana 2 API price on Zurelay?

Zurelay charges one price per resolution: $0.025 for a 1K image, rising to $0.058 at 4K, with 2K priced in between. Google's list price is $0.067 at 1K and $0.151 at 4K, so you save 63% on a 1K image. You pay per image generated, and failed attempts are not billed.

Is there a cheaper Nano Banana 2 API than Google's?

Yes. Zurelay serves nano-banana-2 at 63% below Google's list price for a 1K image. It is the same model: every image is checked against Google's official output size for your request, so a smaller model can't pass as it. One key covers Nano Banana 2, Nano Banana Pro and the text models in the catalog.

How do I generate a Nano Banana 2 image at 4K?

POST to https://api.zurelay.com/v1/images/generations with model set to nano-banana-2, your prompt, size set to 4K and an aspect_ratio such as 16:9. size also accepts pixel sizes like 1024x1536, which map to the nearest resolution and ratio. 4K images are billed at $0.058. Zurelay also accepts the model names gemini-3.1-flash-image and google/gemini-3.1-flash-image.

Can I call the Nano Banana 2 API with the OpenAI SDK?

Yes. Point the OpenAI SDK at https://api.zurelay.com/v1 and call images.generate with model nano-banana-2 and size 1K, 2K or 4K. aspect_ratio is not an OpenAI field, so pass it through extra_body in the Python SDK or as an extra body property in Node.

Which resolutions and aspect ratios does Nano Banana 2 support?

On Zurelay, three resolutions: 1K, 2K and 4K. Ten aspect ratios: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9 and 21:9. If you leave size out, you get 1K, and if you leave aspect_ratio out, the model picks the shape. Google's own API also has a 0.5K size and the 1:4, 4:1, 1:8 and 8:1 ratios, which Zurelay doesn't offer.

Should I use Nano Banana 2 or Nano Banana Pro?

Google calls Nano Banana 2 its versatile, general-purpose image model, balancing speed with 4K output, and Nano Banana Pro its premium choice for the most complex visual tasks, with the most world knowledge, advanced localization, brand consistency and precise creative control. Google lists Nano Banana 2 lower at every resolution. On Zurelay both take the same request, so compare them on your own prompts, and check both price tables, because the gap between them depends on the resolution.

Can I use reference images with Nano Banana 2 on Zurelay?

Yes. Nano Banana 2 takes up to 14 reference images per request, as on Google's API. Send them in images on /v1/images/generations, as https URLs or base64 data URLs, or upload them as files to /v1/images/edits with the OpenAI SDK's images.edit. An edit costs the same as a new image at that resolution. Masks and Google Search grounding are not available.

How are Nano Banana 2 images returned?

By default you get a signed URL for each image, and images are kept for 30 days. Set response_format to b64_json to get base64 data in the response instead. Images are returned directly, not streamed. Prompts can be up to 32,000 characters, and n can be 1 to 4 images.

Are Nano Banana 2 images on Zurelay the same as from Google's API?

Yes, they come from the same model, and Zurelay rejects any image that doesn't match Google's official size for your request. Every image carries Google's SynthID watermark. Generation is sampled, so the same prompt gives a different image each time on any API. Zurelay is an independent service and is not affiliated with or endorsed by Google.

More models on Zurelay

All models

Stop paying list price.
Start saving today.

Create a key in seconds, point the SDK you already use at Zurelay, and every request costs up to 90% less from the first token.