Nano Banana API: Nano Banana 2.1, Pro and Lite, Every Way to Get Access, and What Each Costs (2026)

Updated · Live figures last changed · 18 min read · The GenMagic team

Google's current image model, Nano Banana 2.1, became generally available on October 6, 2026, and costs $0.0336 for a 1K image on the Gemini API, half of what the Nano Banana 2 it replaces charged. There is no free tier for images on the API, several older model ids (Imagen 4 and the Nano Banana previews) have already shut down, and one reseller sells Nano Banana 2.1 for less than Google does.

This guide covers which Nano Banana models exist and which ids still work, how Google prices them and what the bill includes beyond the image, what Google asks for before you can call them (a billing account, prepaid credit, usage tiers, supported countries), how a call works in Google's new Interactions API, how to get Nano Banana without a Google account and what each platform charges, working requests, what a month of images costs, and which route fits which job.

Not a developer? To make Nano Banana images in a studio and pay per image, without code or a subscription, see Nano Banana pay as you go; what Google gives for free in the Gemini app is in is Nano Banana Pro free?.

A note on who wrote this: GenMagic is one of the platforms compared here, and on Nano Banana it is the most expensive of them, which the tables show. Its figures come from its live catalog and the images its users made. Google's documentation and prices were read on October 31, 2026, and other platforms' prices on October 29.

Table of contents

  1. The short answer
  2. The Nano Banana models
  3. How Google prices Nano Banana
  4. Getting access from Google
  5. Getting Nano Banana without a Google account
  6. Calling Nano Banana through GenMagic
  7. What a month of images actually costs
  8. Limits and gotchas
  9. Which route to pick
  10. How we checked
  11. Questions

The short answer

  • Use gemini-nano-banana-2.1. It is Google's "primary high-efficiency workhorse model for image generation and conversational editing", GA since October 6, 2026, with 1K, 2K and 4K output, 14 aspect ratios and up to 14 reference images ( image generation guide). Nano Banana Pro (gemini-3-pro-image) is the premium model and Nano Banana 2 Lite (gemini-3.1-flash-lite-image) the fastest.
  • On Google's paid tier, a Nano Banana 2.1 image costs $0.0336 at 1K, $0.0504 at 2K and $0.113 at 4K, plus prompt and thinking tokens; the Batch API halves it. Pro costs $0.134 at 1K and 2K and $0.24 at 4K ( pricing).
  • There is no free tier for image generation on the API, and the paid tier means a billing account with at least $5 of prepaid credit that expires after 12 months.
  • Old ids are gone: Imagen 4 shut down on August 17, 2026, the Nano Banana preview ids on June 25, and Nano Banana 2 (gemini-3.1-flash-image) is deprecated in favor of 2.1, which costs half as much.
  • Without a Google account, kie.ai sells Nano Banana 2.1 for $0.02 an image, Replicate at Google's price, and fal and WaveSpeed for $0.04. GenMagic lists it at $0.058, the most of these, with one balance for every model.

The Nano Banana models

"Nano Banana" is Google's name for the image models in its Gemini family. Google's image generation guide lists five today:

ModelAPI idReleased (GA)StatusResolutionsReference images
Nano Banana 2.1gemini-nano-banana-2.1October 6, 2026Current, Google's default choice1K, 2K, 4KUp to 14 (10 objects, 4 characters)
Nano Banana Progemini-3-pro-imageMay 28, 2026Current1K, 2K, 4KUp to 14 (6 objects, 5 characters, 3 styles)
Nano Banana 2 Litegemini-3.1-flash-lite-imageJune 30, 2026Current, fastest and cheapest1K onlyUp to 14 objects, not optimized for several
Nano Banana 2gemini-3.1-flash-imageMay 28, 2026Deprecated October 6, 2026, no shutdown date yet0.5K, 1K, 2K, 4KUp to 14 (10 objects, 4 characters)
Nano Banana (original)gemini-2.5-flash-imageOctober 2, 2025Deprecated, shutdown March 15, 20271KNot stated

Sources: Google's image generation guide, models and deprecations pages, read October 31, 2026.

Several older ids no longer work at all: the preview models gemini-3.1-flash-image-preview and gemini-3-pro-image-preview shut down on June 25, 2026, gemini-2.5-flash-image-preview on January 15, and Google's Imagen 4 models on August 17, 2026 ("Imagen is shut down and no longer available through the Gemini API. Use Nano Banana for image generation and editing"). Code or tutorials that still name any of them need a new model id; Google recommends gemini-nano-banana-2.1 for each. The original Nano Banana (gemini-2.5-flash-image) still runs until March 15, 2027, but since September 18 Google has limited its 2.5 models "to users who have actively used them in the past".

Nano Banana 2.1 is the one to start with. Google calls it "the primary high-efficiency workhorse model for image generation and conversational editing", with "enhanced text rendering and infographic layout accuracy", 14 aspect ratios including new panoramic ones (1:4, 4:1, 1:8 and 8:1, up to 12,288 pixels wide at 4K), grounding in Google Web and Image Search, adjustable thinking (minimal, medium by default, or high), and video as input (a YouTube link or an uploaded clip) to make an image from. In our image generator test it got exact text, a candid photo, a flat illustration and a counting scene all right, and it is the all-round default we recommend there.

Nano Banana Pro is "the premium choice for the most complex visual tasks", with the most world knowledge and the strongest brand consistency: it is the only one that takes style references. Nano Banana 2 Lite is "the fastest and cheapest Gemini image model", at 1K only, with no search grounding, and "not optimized for multiple reference inputs or multi-turn sequential editing".

Every model in the family is conversational: you can send an image and ask for a change, then ask for another change to the result, in the same chat. They "think" before drawing, generating "up to two interim images to test composition and logic", which are not charged, though the thinking tokens are.

How Google prices Nano Banana

Google bills image output by the token, then prints what that means per image ( Gemini API pricing):

Model0.5K1K2K4KBatch API
Nano Banana 2.1Not offered$0.0336$0.0504$0.113Half
Nano Banana 2 LiteNot offered$0.0336Not offeredNot offeredHalf
Nano Banana ProNot offered$0.134$0.134$0.24Half
Nano Banana 2 (deprecated)$0.045$0.067$0.101$0.151Half
Nano Banana original (until March 15, 2027)Not offered$0.039Not offeredNot offeredHalf

US dollars per output image on the Gemini API's paid tier, read October 31, 2026. Google's Cloud platform (the Gemini Enterprise Agent Platform, formerly Vertex AI) lists the same prices ( Agent Platform pricing).

Five things in those numbers are worth knowing before you budget.

Nano Banana 2.1 costs half of Nano Banana 2. At 1K, 2.1 is $0.0336 an image against $0.067 for the model it replaced, because its image tokens cost $30 per million instead of $60. Moving off gemini-3.1-flash-image is a saving as well as an upgrade.

Lite costs the same as 2.1 at 1K. Nano Banana 2 Lite is "the fastest and cheapest", but at 1K it prints the same $0.0336 an image; what it saves is input and thinking tokens ($0.25 per million input against $1.50), so it is cheaper per request, not per image, and it stops at 1K.

The image is not the whole bill. Your prompt and any reference images are billed as input tokens ($1.50 per million on 2.1; each input image counts 1,120 tokens), and the model's thinking is billed as text output ($7.50 per million on 2.1), "as the thinking process always happens by default whether you view the process or not". Google publishes no typical thinking count per image. Going by the token counts of 201 Nano Banana 2.1 images at 1K made on GenMagic in October, prompt and thinking add roughly a tenth to the image's printed price.

There is no free tier for image generation. Every Nano Banana row on Google's pricing page reads "Not available" under the free tier, for standard and batch alike. Google's pricing page notes that some of these models "can be tested in Google AI Studio", but an API key on the free tier cannot generate images.

Search grounding is charged separately: 5,000 free search requests a month shared across Gemini 3 and newer models, then $14 per 1,000, with a daily cap of 1,500.

Getting access from Google

Google sells Nano Banana two ways: the Gemini API, with a key from Google AI Studio, and its Cloud platform, the Gemini Enterprise Agent Platform (formerly Vertex AI). The models and prices are the same; what differs is the account around them.

The Gemini API (AI Studio key)

1. A Google account and a project. A new AI Studio user gets a Google Cloud project and an API key "after you accept the Terms of Service"; every key belongs to a project ( API keys). Since May 28, 2026, new keys are created as auth keys bound to a service account, and the API "rejects requests from unrestricted standard keys".

2. Billing, because images are paid only. To leave the free tier you link a billing account and prepay at least $5; prepaid credit can be topped up to $5,000, "unused credits expire after 12 months and are non-refundable", and "when your Prepay credit balance on the billing account hits $0, all API keys in all projects linked to that billing account will stop working simultaneously", answering HTTP 402 until you add credit ( billing). Google's Cloud welcome credit cannot always be spent on the Gemini API.

3. A usage tier. Tier 1 starts when billing is linked (a $250 billing cap), Tier 2 after $100 paid and 3 days since the first payment ($2,000), Tier 3 after $1,000 and 30 days ($20,000 and up). Rate limits, including images per minute, follow the tier, but Google shows the actual numbers only inside AI Studio, behind sign-in, and says "specified rate limits are not guaranteed and actual capacity may vary" ( rate limits). A rolling 10-minute spend limit applies too: $10 on Tier 1, $50 on Tier 2, $200 on Tier 3.

4. A supported country, and a business use. The Gemini API may be used only "within an available region", a list of 230 countries and territories that does not include mainland China, Hong Kong, Macao, Russia, Belarus, Iran, Cuba, North Korea, Syria, Afghanistan or Myanmar ( available regions). Its terms say it is "for developers building with Google AI models for professional or business purposes, not for consumer use", require users to be 18 or older and forbid services "directed towards or ... likely to be accessed by individuals under the age of 18".

The Agent Platform (formerly Vertex AI)

The Cloud route needs a Google Cloud project with billing and the Agent Platform API enabled, and authenticates with OAuth (gcloud auth print-access-token) rather than a key. Nano Banana 2.1, 2 Lite and Pro run on the global endpoint only; Nano Banana 2 also has US and EU multi-region endpoints. In return you get enterprise controls (data residency, customer-managed encryption keys, VPC Service Controls), Provisioned Throughput for reserved capacity, a Priority tier at a higher price, images written straight to your Cloud Storage bucket instead of returned inline, and Content Credentials (C2PA) on the output ( image generation on the Agent Platform). It charges "only for requests that return a 200 response code".

How a call works

Google now recommends its Interactions API for new work ("While generateContent remains fully supported, we recommend the Interactions API for all new development"):

curl https://generativelanguage.googleapis.com/v1beta/interactions \
  -H "x-goog-api-key: $GEMINI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-nano-banana-2.1",
    "input": "A product photo of a glass bottle of cold brew on a marble counter, soft window light, the label reading NORTH ROAST",
    "response_format": {"type": "image", "mime_type": "image/jpeg", "aspect_ratio": "4:5", "image_size": "2K"}
  }'

The image comes back base64-encoded in the interaction's output steps (the SDKs expose it as interaction.output_image), with no hosted URL on the Gemini API. Image size must be written with a capital K ("Lowercase parameters (e.g., 1k) will be rejected"); without a size the model matches your input image or makes a 1:1 square. To edit, add the image to input as a base64 block and describe the change; to continue editing, pass previous_interaction_id. Search grounding is a tool ({"type": "google_search"}), and thinking a setting ("thinking_level": "high"), though it "cannot be disabled in the API". The older generateContent call still works, with responseModalities: ["TEXT", "IMAGE"] and an imageConfig for size and aspect ratio, and it is the only one the Batch API accepts.

Two details trip people up. On Nano Banana 2.1, "the seed, topK, logprobs, temperature, and topP parameters aren't supported ... Setting any of these parameters returns an API error", so code copied from older models fails. And Google's OpenAI-compatible images endpoint still documents only gemini-2.5-flash-image and a shut-down preview id, so do not rely on it for the current models.

What Google applies to every image

  • A watermark you cannot turn off. "All generated images include a SynthID watermark", and on the Agent Platform Google also adds C2PA Content Credentials "signed by Google LLC" ( Content Credentials). Editing the file with a tool that does not support C2PA breaks the credentials, not the SynthID mark.
  • Filters on people. Google's Agent Platform documents filters for photorealistic celebrities, for children "that isn't allowed due to the API request settings or allowlisting", and for people or faces when the request's settings do not allow them, and a refused image can come back as a text answer rather than an error ( responsible AI). Google's prohibited use policy also bans "impersonating an individual (living or dead) without explicit disclosure, in order to deceive".
  • Your data on the paid tier. Google "doesn't use your prompts ... or responses to improve our products" once a billing account is attached, keeps abuse-monitoring logs for 55 days, and stores Interactions by default (store=true, kept 55 days on the paid tier); since October 26, 2026, new paid projects also log generateContent requests by default. Send store=false if you do not want them kept ( logs policy). On the Agent Platform, Google "won't use your data to train or fine-tune any AI/ML models without your prior permission".

Getting Nano Banana without a Google account

Nano Banana 2.1 is sold by most inference platforms, and here, unusually, a reseller undercuts Google. One 1K image, read on each platform's own page on October 29, 2026:

PlatformNano Banana 2.1, 1KHow it bills
kie.ai$0.02Credits that never expire; $0.03 at 2K, $0.045 at 4K
Google (Gemini API, Agent Platform)$0.0336Tokens, plus prompt and thinking tokens; prepaid credit expires after 12 months
Replicate$0.034Prepaid credit that expires after a year
fal$0.04Credits that expire after 365 days
WaveSpeed$0.04Credits that never expire
OpenRouterGoogle's token pricesCredits with a fee on purchase
GenMagic$0.058 listed; $0.048 at the median image of the last 90 daysBy the tokens each image uses; one balance for every model

Sources: kie.ai, Replicate, fal, WaveSpeed, OpenRouter. Our comparison of AI video and image APIs and the alternatives pages compare these platforms in more depth.

What separates them:

  • kie.ai is the cheapest Nano Banana 2.1, at about 60% of Google's printed price, in credits that never expire; it keeps generated files for 14 days and has no official automation nodes.
  • Replicate matches Google's image price, and fal and WaveSpeed sit a little above it. Their per-image prices are flat, so you do not pay separately for thinking tokens as you do on Google's API.
  • OpenRouter passes Google's token billing through, so an image costs what Google charges for its image, prompt and thinking tokens. GenMagic also charges by the tokens each image uses, at the highest listed price here, and in return runs Nano Banana beside every other image, video and voice model on one balance, in a studio, n8n, Zapier, ComfyUI and Claude or ChatGPT.
  • None of them change the model. Google's safety filters and its SynthID watermark apply wherever you call Nano Banana from.

Calling Nano Banana through GenMagic

GenMagic's API is OpenAI-compatible, so Nano Banana runs through the same images.generate call as every other image model: no Google account, no Cloud project and no billing setup with Google. The model ids are google/gemini-nano-banana-2.1 ( Nano Banana 2.1), GenMagic's default image model, and Google's other image models beside it.

1. Get a key. Create a free account at genmagic.co/get-api-key and verify your email; the account starts with $0.50 of credit, about 8 Nano Banana 2.1 images at the listed price.

2. Generate. With OpenAI's Python SDK:

import os
from openai import OpenAI

client = OpenAI(base_url="https://genmagic.co/api/v1", api_key=os.environ ["GENMAGIC_API_KEY"])

result = client.images.generate(
    model="google/gemini-nano-banana-2.1",
    prompt="A product photo of a glass bottle of cold brew on a marble counter, soft window light, the label reading NORTH ROAST",
    size="1024x1024",
)
print(result.data [0].url)

Or with curl, here keeping a character from a reference image:

curl https://genmagic.co/api/v1/images/generations \
  -H "Authorization: Bearer $GENMAGIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-nano-banana-2.1",
    "prompt": "The same character as a marble statue on a plinth in a museum hall",
    "image": "https://your-cdn.com/green-frog-knight.png"
  }'

The answer carries a hosted url (or the bytes with "response_format": "b64_json"), and the response headers say what the image cost and what is left on the balance. size sets the shape (square, landscape or portrait) and a 1K or 2K resolution.

What it costs. GenMagic charges each image by the tokens it uses, listed at $0.058. Over the 588 Nano Banana 2.1 images made on GenMagic in the last 90 days, the median image cost $0.048, and nine in ten were ready within 23 s. A refused or failed image costs nothing.

What a month of images actually costs

Four typical months on Google's own API (image output only; prompts and thinking add roughly a tenth on Nano Banana 2.1, going by the token counts of images made on GenMagic):

A month ofImagesGoogle standardGoogle Batch APIkie.ai
Blog and social images: Nano Banana 2.1 at 1K3,000$100.80$50.40$60.00
Product shots: Nano Banana 2.1 at 2K1,000$50.40$25.20$30.00
Print and hero images: Nano Banana 2.1 at 4K200$22.60$11.30$9.00
Brand-critical work: Nano Banana Pro at 1K500$67.00$33.50Not compared

On GenMagic, the 3,000 blog images would cost about $174 at the listed price, or about $155 on a monthly plan: more than Google or kie.ai, for one balance shared with every other model and no Google account. If Nano Banana is all you use, and you can wait up to a day for results, Google's Batch API is the cheapest route by far; if you need results now, kie.ai is.

Limits and gotchas

Thinking is always on. Nano Banana models think before they draw, and "this feature is enabled by default and cannot be disabled in the API"; the thinking tokens are billed as text output. Lower thinking_level to "minimal" where the model allows it to keep requests cheaper and faster.

No sampling controls on 2.1. Seed, temperature, top-k and top-p "aren't supported for Nano Banana 2.1", and setting them returns an error.

Capital K. image_size takes "1K", "2K" or "4K"; "1k" is rejected.

Base64 only on the Gemini API. Images come back inline; only the Agent Platform can write them to your Cloud Storage bucket.

The model may not count to four. "The model won't always follow the exact number of image outputs that the user explicitly asks for", and for text in an image Google advises generating the text first and then asking for the image with it.

Rate limits are hidden and per project. They apply "per project, not per API key", reset at midnight Pacific time, and are shown only in AI Studio after sign-in; a spend limit over any 10 minutes ($10 on Tier 1) can stop a burst before the rate limit does.

When credit runs out, every key stops. On prepaid billing, all keys on the billing account fail with HTTP 402 at once when the balance reaches zero, and usage can overshoot by about ten minutes of billing latency.

Grounding has its own rules. Search-grounded results must be shown with Google's search suggestions, and Google's terms forbid reselling or caching grounded results; grounding with Google Search also does "not support using real-world images of people from web search".

Which route to pick

  • You call Nano Banana from your own code and can link a Google billing account: the Gemini API, on Nano Banana 2.1, with the Batch API for anything that can wait a day. It is Google's price, with every setting (aspect ratios, 4K, thinking levels, search grounding, video input).
  • You need enterprise controls or reserved capacity: the Agent Platform, with data residency, customer-managed keys, Provisioned Throughput and output to Cloud Storage.
  • You still call Imagen, a Nano Banana preview id or Nano Banana 2: move to gemini-nano-banana-2.1; the first two no longer work, and 2.1 costs half of Nano Banana 2.
  • You want the lowest price per image without Google billing: kie.ai, at $0.02 at 1K.
  • You are outside Google's supported countries, or want no Google account: a reseller.
  • You want Nano Banana beside every other image and video model on one balance, or in n8n, Zapier, ComfyUI or an AI assistant: GenMagic, OpenAI-compatible, at $0.058 an image listed.

How we checked

Google's model ids, capabilities, release and shutdown dates, prices for the Gemini API and the Agent Platform, billing rules, usage tiers, rate-limit rules, supported regions, terms and API shapes were read on Google's own documentation on October 31, 2026, linked where each fact is used; where two Google pages disagreed (for example on the 4K token count of Nano Banana 2.1), we used the pricing page, which is what bills. Other platforms' prices come from our comparison of AI video and image APIs, read on each provider's own pages on October 29, 2026. GenMagic's figures come from its live catalog and from the Nano Banana 2.1 images billed on GenMagic in the last 90 days, and the quality results from our published image generator test.

Questions

What is the Nano Banana API? "Nano Banana" is Google's name for the image models in the Gemini family. The current one is Nano Banana 2.1 (gemini-nano-banana-2.1), called through the Gemini API with an AI Studio key or through Google Cloud's Agent Platform, formerly Vertex AI.

How much does the Nano Banana API cost? Nano Banana 2.1 costs $0.0336 per 1K image, $0.0504 per 2K image and $0.113 per 4K image on Google's paid tier, plus prompt and thinking tokens; the Batch API charges half. Nano Banana Pro costs $0.134 at 1K and 2K and $0.24 at 4K.

Is the Nano Banana API free? No. Google's pricing page lists no free tier for any Nano Banana model on the API. Using it needs a billing account with at least $5 of prepaid credit. On GenMagic, a new account with a verified email starts with $0.50 of credit, about 8 Nano Banana 2.1 images. Our page on free AI video and image API credits lists every free allowance we found.

What happened to Imagen? Google shut the Imagen 4 models down on the Gemini API on August 17, 2026: "Imagen is shut down and no longer available through the Gemini API. Use Nano Banana for image generation and editing."

What is the difference between Nano Banana 2.1, Pro and Lite? Nano Banana 2.1 is the everyday model, at $0.0336 per 1K image. Pro adds the most world knowledge, brand consistency and style references, at four times the price. Lite is the fastest, at 1K only and the same image price as 2.1, with cheaper prompt and thinking tokens and no search grounding.

Can I use Nano Banana with the OpenAI SDK? Google's own OpenAI-compatible images endpoint documents only older ids. GenMagic's API is OpenAI-compatible for every model: set base_url to https://genmagic.co/api/v1 and use google/gemini-nano-banana-2.1.

Which is better, Nano Banana or GPT Image? Both passed every task in our image generator test; Nano Banana 2.1 is the all-round default there, and GPT Image 2.5 Flare had a more photographic look. Our GPT Image API guide covers OpenAI's route.