The Nano Banana API. From $0.04 an image.

Nano Banana 2 and Nano Banana Pro through one OpenAI-compatible API, 10 to 17% under Google's price at every resolution. No Google Cloud project and no subscription: send a prompt, get the image back.

What a month of images costs

Nano Banana 2, 1K, 1,000: On Google $67, On APIsRouter $60.

Nano Banana 2 or Nano Banana Pro

Both are Google's Gemini image models: a prompt in, a picture out. Google prices per output image from ai.google.dev/gemini-api/docs/pricing, September 2026. Google has no free tier for either model.

  • Nano Banana 2 (Google model ID: gemini-3.1-flash-image): From $0.04. Fast and cheap enough for volume: product shots, thumbnails, social posts and drafts.
  • Nano Banana Pro (Google model ID: gemini-3-pro-image): From $0.11. Google's higher-end image model, for pictures with legible text, detailed layouts or many instructions at once.
ResolutionGoogleAPIsRouter
Nano Banana 2 0.5K$0.045$0.04
Nano Banana 2 1K$0.067$0.06
Nano Banana 2 2K$0.101$0.09
Nano Banana 2 4K$0.151$0.13
Nano Banana Pro 1K$0.134$0.11
Nano Banana Pro 2K$0.134$0.11
Nano Banana Pro 4K$0.24$0.20

Generate your first image

  • Get a key: Top up from $10 below. The key and a login link arrive by email.
  • Call images.generate: Use the OpenAI SDK with base_url https://api.apisrouter.com/v1, or POST to /v1/images/generations, with model nano-banana-2 or nano-banana-pro.
  • Set the resolution: Nano Banana 2 takes 0.5K, 1K, 2K and 4K; Nano Banana Pro takes 1K, 2K and 4K. Leave it out for 1K.
  • Save the image: It comes back base64-encoded in data[0].b64_json.
import base64
from openai import OpenAI

client = OpenAI(
    base_url="https://api.apisrouter.com/v1",
    api_key="sk-your-apisrouter-key",
)

image = client.images.generate(
    model="nano-banana-2",
    prompt="A ceramic mug on a linen table, soft morning light",
    extra_body={"resolution": "2K"},
)
with open("mug.png", "wb") as file:
    file.write(base64.b64decode(image.data[0].b64_json))

Two ways to pay

Both fill one balance, spent at the prices above. Pay as you go from $10 with no account, with +30% on the first top-up.

FAQ

How much does the Nano Banana API cost?

On APIsRouter, Nano Banana 2 costs $0.04 to $0.13 an image from 0.5K to 4K, and Nano Banana Pro $0.11 to $0.20. Google charges $0.045 to $0.151 and $0.134 to $0.24.

Is there a free Nano Banana API?

Google's API has no free tier for Nano Banana 2 or Nano Banana Pro, so every image is paid. On APIsRouter you can start on a $2 trial credit: sign in and claim it from your dashboard, no card needed. After that there is no subscription: top up from $10, with +30% on the first top-up, and pay per image.

How do I get a Nano Banana API key?

Sign in and claim the $2 trial credit, or top up from $10 on this page and your APIsRouter key arrives by email. It calls Nano Banana without a Google Cloud project or billing account, and the same key works for GPT Image 2, Claude, GPT, Gemini and Seedance.

Nano Banana 2 or Nano Banana Pro?

Start with Nano Banana 2: $0.06 an image at 1K against $0.11 for Nano Banana Pro. Switch to Pro for images that must carry readable text or follow many instructions at once.

Which resolutions can I request?

Nano Banana 2: 0.5K, 1K, 2K and 4K. Nano Banana Pro: 1K, 2K and 4K. Without a resolution you get 1K. Nano Banana Pro costs the same at 1K and 2K, so ask for 2K.

Can I use the OpenAI SDK?

Yes. Point base_url at https://api.apisrouter.com/v1, call client.images.generate with model nano-banana-2 or nano-banana-pro, and pass extra_body={"resolution": "2K"} for a size other than 1K. The image comes back base64-encoded in data[0].b64_json.