- Home
- Learn
- Deep Dives
- Nano Banana API: Models, Pricing and How to Use It (2026)
Nano Banana API: Models, Pricing and How to Use It (2026)
Nano Banana API guide: the five Gemini image models, Google's price per image, how to get a key, a working request and when to skip the key.
Published 19-11-2026. Last verified 19-11-2026: Google changes Nano Banana models and prices often, and we re-check this page monthly.
Quick answer: what is the Nano Banana API?
The Nano Banana API is Google's Gemini API, called with one of the Gemini image models that Google brands as Nano Banana. On 19-11-2026 Google's docs list five: Nano Banana 2.1, Nano Banana 2, Nano Banana 2 Lite, Nano Banana Pro and the legacy Nano Banana. You need a Gemini API key on a paid tier, because Google lists image output as not available on the free tier, and you pay from $0.0336 per 1K image on Nano Banana 2 Lite to $0.24 per 4K image on Nano Banana Pro. If you want Nano Banana inside an AI agent rather than in your own code, you can skip the key and call it through an MCP connection. This guide is for developers and technical marketers who generate product, ad and campaign images and need the right model, the real price and the fastest way in.
How we checked this
Our method in three lines: we read Google's own Gemini API docs for models, prices and keys, we opened the top three US search results for "nano banana api", and we read our own Nano Banana tools page on the day of writing.
Our gate: a model, price or access route counts only if Google's documentation or our tools page states it on 19-11-2026. Three claims did not pass. "The Nano Banana API is free" failed, because Google's pricing page lists image output as not available on the free tier for every Nano Banana model. Reseller offers of free credits or flat plans failed, because we could not verify them on Google's side, and one of the top three results had been disabled by Hugging Face for a content-policy violation when we opened it. And the original Nano Banana as a recommendation failed: Google itself calls it the legacy model and recommends moving to Nano Banana 2 Lite.
We did not make test calls for this article. The code sample is Google's own and the cost examples are our calculations, so output quality and exact cost per call are not tested by us.
What is the Nano Banana API?
Nano Banana is Google's name for Gemini's native image generation. Google's Nano Banana image generation docs describe it on 19-11-2026 as a way to create, edit and iterate on visuals in a conversation, with text, images or video as input. There is no separate product called the Nano Banana API: you call the Gemini API and pick a Nano Banana model ID.
Three things make it useful for business work. It edits as well as generates, so you can keep your real product and change only the background, light or season. It takes up to 14 reference images, which keeps a character or a product consistent across a campaign. And it renders text inside images better than most image models, which matters for ads and packaging. One thing to know before you publish: Google states that all generated images include a SynthID watermark, an invisible marker that identifies the image as AI-generated.
For the wider question of which image models exist outside Google, see our list of the best AI tools for image generation. Skills that use these models sit in our image generation collection.
Which Nano Banana model should you call?
Pick the model by the job. Our order, from the model we would start most new projects on, with model IDs from Google's docs on 19-11-2026:
| Model | Model ID | Best for |
|---|---|---|
| Nano Banana 2.1 | gemini-nano-banana-2.1 | New projects: everyday images and edits at 1K to 4K |
| Nano Banana 2 Lite | gemini-3.1-flash-lite-image | Drafts and high volume at 1K |
| Nano Banana Pro | gemini-3-pro-image | Complex briefs, brand consistency, text in the image |
| Nano Banana 2 | gemini-3.1-flash-image | Existing projects on the previous workhorse |
| Nano Banana | gemini-2.5-flash-image | Legacy only |
Nano Banana 2.1 is first because Google recommends it for all new projects and it is cheaper per image than Nano Banana 2 at every size Google lists for both. Nano Banana 2 Lite is second because it is the cheapest Gemini image model, but Google notes it is not optimised for multiple reference inputs or multi-turn editing, so we use it to find a prompt, not to keep a product consistent. Nano Banana Pro is third only on price: it uses a thinking step for complex instructions and text, and for a hero image or a label with small print it is where we would spend. Nano Banana 2 is fourth because 2.1 replaces it. The original Nano Banana is last because Google calls it legacy.
Nano Banana API pricing
Google prices image output per token and converts it to a price per image on its Gemini API pricing page. On 19-11-2026, on the paid tier in USD, standard processing:
| Model | 512px | 1K | 2K | 4K |
|---|---|---|---|---|
| Nano Banana 2.1 | not listed | $0.0336 | $0.0504 | $0.113 |
| Nano Banana 2 Lite | not listed | $0.0336 | 1K only | 1K only |
| Nano Banana 2 | $0.045 | $0.067 | $0.101 | $0.151 |
| Nano Banana Pro | not listed | $0.134 | $0.134 | $0.24 |
These are vendor-reported prices. Input text and reference images cost a little extra on top, for example Google lists $0.0011 per input image for Nano Banana Pro. Grounding with Google Search has 5,000 free search requests per month, shared across Gemini 3 and newer models, and costs $14 per 1,000 after that. Google also lists a Batch tier at half the image output price for Nano Banana 2.1, which pays off for overnight catalogue jobs.
What that means for a real job, as our calculation: 100 product images at 1K cost about $3.36 on Nano Banana 2.1, $6.70 on Nano Banana 2 or $13.40 on Nano Banana Pro. Ten hero images at 4K on Pro cost about $2.40.
Through our Nano Banana MCP the starting prices on 19-11-2026 were $0.052 per image for Nano Banana 2 Lite, $0.065 for Nano Banana 2 and $0.195 for Nano Banana Pro. We are clear about the comparison: for Nano Banana 2 our starting price sits just under Google's 1K price, but for Lite and Pro Google's own API is cheaper per image. What you pay us for is the route: no Google account, no key, one balance with your other tools and an exact price before each run. Nano Banana 2.1 was not in our catalogue on 19-11-2026.
Is the Nano Banana API free?
No. Google's pricing page lists image output as not available on the free tier for every Nano Banana model on 19-11-2026, so you need a billing-enabled key. You can try prompts in Google AI Studio, which the pricing page links to for each model, but generating images through the API is paid.
If you want to test without setting up Google billing, our docs on 19-11-2026 state that every Agensi account gets $0.99 of free credit once to try the tools through an AI agent. That covers about 19 Nano Banana 2 Lite images at the starting price, by our calculation.
How to get a Nano Banana API key
You create a Gemini API key in Google AI Studio and bind it to a Google Cloud project with billing. Google's API key documentation adds two rules on 19-11-2026 that older guides miss. Since 28-05-2026, every new key created in Google AI Studio is an authorization key bound to a service account. And the Gemini API rejects requests from unrestricted standard keys; standard keys with explicit restrictions keep working.
Store the key as an environment variable, not in your code. Google's docs name GEMINI_API_KEY or GOOGLE_API_KEY, which the client libraries pick up automatically; if both are set, GOOGLE_API_KEY wins. Never paste the key into a chat with an AI agent. SecretSafe: use API keys without seeing them, free, lets an agent call an API with your key while the key stays in a vault and only allow-listed hosts receive it. Security skills sit in our security collection.
Example request
Google's own Python sample for text to image, from its image generation docs on 19-11-2026. Set your key first:
export GEMINI_API_KEY="your-gemini-api-key"
from google import genai
import base64
client = genai.Client()
interaction = client.interactions.create(
model="gemini-nano-banana-2.1",
input="Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme",
)
with open("generated_image.png", "wb") as f:
f.write(base64.b64decode(interaction.output_image.data))
The client reads the key from the environment, sends the prompt to Nano Banana 2.1 and writes the returned image to a PNG file. To edit an image instead, Google's sample adds your image as a second input item next to the text. Swap the model ID for gemini-3-pro-image when you need Pro. Backend skills for wrapping a call like this in a service sit in our APIs and backend collection.
Parameters and limits
The settings that change the result and the price, all from Google's docs on 19-11-2026:
- Size. Nano Banana 2 goes from 512px to 4K, Nano Banana 2.1 from 1K to 4K, Nano Banana Pro from 1K to 4K and Nano Banana 2 Lite makes 1K only. Bigger costs more, as the pricing table shows.
- Aspect ratio. Nano Banana 2.1 and Gemini 3.1 Flash Image add 1:4, 4:1, 1:8 and 8:1 to the usual ratios, useful for banners and vertical stories.
- Reference images. Up to 14 per request, for consistent products, people and styles.
- Watermark. Every image carries SynthID; you cannot switch it off.
- Rate limits. Google publishes them per project and tier on its rate limits page; we did not verify the image limits for this article.
For e-commerce teams, these limits decide the workflow: draft on Lite, keep the product consistent with reference images on 2.1, and render the hero on Pro. Product image skills sit in our e-commerce collection.
Use Nano Banana from your AI agent without a key
If the person making the images works in Claude, ChatGPT, Cursor or Codex rather than in code, the API is the long way round. Connect the agent to an MCP server that offers Nano Banana, and the agent writes the prompt, calls the model and hands back the file.
Your options, honestly compared. Our tools page notes on 19-11-2026 that most Nano Banana MCP servers are community projects that want your own Gemini key on your machine, and that Google's open-source genmedia servers are marked as not an officially supported product and run in your own Google Cloud project. Through Agensi you connect once through our MCP page, sign in, and the agent uses Nano Banana from your balance with no Google account or key, next to the other models on our image generation tools page. The agent gets the exact price before each run and tells you what it cost, a failed image is free and you can set limits per use, per day and per month. Our Google tools page lists the other Google models on the same connection.
Our verdict: if you call Nano Banana thousands of times a month from your own app, use Google's API with your own key, which our own Nano Banana tools page also says. If an agent makes a few dozen images a week for a marketing team, one connection saves the key, the billing setup and the code. New to MCP? Our explainer what is MCP covers the basics, and our guide on using other models in Claude Code shows how image models fit next to the language model. For Claude specifically, see Claude image generation, explained.
Prompting and skills
The model is half the result; the brief is the other half. Four skills we would pick for Nano Banana work, from the broadest to the most specific:
- Nano Banana: Gemini Image Generation and Editing, $5, first because it teaches the whole method: six-slot prompts, wide-then-narrow iteration, reference chaining and a scored quality check, on Nano Banana 2.
- AI Image Generator: On-Brand Images, No API Keys, free, second because it adds brand rules to every image and uses Nano Banana 2 Lite and FLUX Schnell. Branding skills sit in our branding and design collection.
- Nano Banana Prompting for Ad Frames, $15, third because it does one job, product frames with camera direction and copy space, on Nano Banana 2. Ad skills sit in our marketing and SEO collection.
- Consistent Product Photo Campaign, $5, last because it writes the prompts and a QA plan for 12 coordinated product photos but does not call a model itself, so you pair it with the API or the MCP route.
The first three skill pages list the Agensi tools they use and state that no API keys are needed.
Your next step
We sell skills and pay-per-call tools that your agent uses through one MCP connection, and we name ours above. No vendor paid to be listed.
If you are building Nano Banana into your own product, create an authorization key in Google AI Studio, start on Nano Banana 2.1 and run Google's sample above. If you want images from your agent this week, connect Agensi once and make ten drafts on Nano Banana 2 Lite for about $0.52. Either way, check every image that carries your brand before it goes out.
Written by Samuel Rose, Founder of Agensi. Next scheduled review: 19-12-2026.