Nano Banana API

Nano Banana is Google’s native image-generation and editing model for creating and transforming images from text, images, or both with conversational control.

Modalities
Image, TextImage
Price
$0.039per generation
Model type
Image generation
Released
Feb 27, 2026

Nano Banana overview

Aspect ratio
Sample Nano Banana image generated through AI/ML API: A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lette

Nano Banana by Google

Nano Banana is Google's native image generation and editing model, producing images from text or image prompts.

Nano Banana specs

Model ID
google/nano-banana
Developer
Google
Input
Image, Text
Output
Image
Endpoint
POST https://api.aimlapi.com/v1/images/generations

What Is Nano Banana API?

Nano Banana is Google’s name for Gemini’s native image generation and editing capability. In Google’s current model lineup, the exact model id `google/nano-banana` corresponds to the legacy Nano Banana image model, which Google identifies as Gemini 2.5 Flash Image.

Google describes Nano Banana as a conversational image model that can generate, edit, and iterate on visuals using text, images, or a combination of both.

Technical Reference

DeveloperGoogle
Model IDgoogle/nano-banana
Release DateFebruary 26, 2026
ModalitiesImage, Text → Image

What Nano Banana Brings to the Table

Model identity
Google’s documentation maps Nano Banana to Gemini 2.5 Flash Image, described as the legacy pioneer of the Nano Banana series.

Core function
The model supports conversational image generation and editing from text and image inputs.

Key capabilities
Google says the model can blend multiple images into one image, maintain character consistency, make targeted transformations with natural language, and use Gemini’s world knowledge in image editing.

Availability
Google says the model is available via the Gemini API and Google AI Studio, with enterprise access through Vertex AI.

Where Nano Banana Makes the Most Sense

Image creation
Generate new images from text prompts or combinations of text and images.

Image editing
Edit existing images conversationally with targeted changes described in natural language.

Multi-image composition
Blend multiple reference images into a single output while preserving consistency across subjects.

Nano Banana vs the Alternatives

Nano Banana 2 Lite
Google describes this as the fastest and cheapest Gemini image model, aimed at speed- and cost-sensitive workloads.

Nano Banana 2
Google describes this as the most versatile general-purpose image model, with strong 4K generation and reliable text rendering.

Nano Banana Pro
Google positions this as the premium model for the most complex visual tasks, with higher world knowledge and advanced localization.

Sources: https://aistudio.google.com/models/nano-banana · https://ai.google.dev/gemini-api/docs/image-generation · https://gemini.google/overview/image-generation/

Use cases

Create and edit images conversationally using text, images, video, or a combination, with fine control over the result.

Generate high-quality image content such as detailed, playful, realistic, or whimsical images.

Use it for studio-quality image generation and editing with precise control over visuals.

Build image-based apps and workflows that generate or edit visuals directly inside developer tools and production applications.

Nano Banana benchmarks by Artificial Analysis

Human-preference results for Nano Banana in text to image, next to models available on AI/ML API. Data retrieved Nov 3, 2026.

Text to image

Elo · text-to-image arena

AI/ML API price

USD per generation

Models on AI/ML API

Arena results for models you can call with the same API key.

Text to image

Blind pairwise human votes on images generated from text prompts. Nano Banana ranks #56 of 98.

Nano Banana API pricing

Nano Banana pricing in US dollars
UsagePriceUnit
Image generation$0.039per generation

Prices from the AI/ML API price list, checked on Nov 4, 2026.

Nano Banana vs other image models: prices

AI/ML API rates for 5 models, per generation.

AI/ML API prices in USD per generation
ModelPer generation
Nano Banana$0.039
Nano Banana Edit$0.04
Gemini 3 Pro Image Edit$0.15
Nano Banana Pro Edit$0.15
Nano Banana Pro$0.25

How to use the Nano Banana API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/images/generations' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "google/nano-banana",
  "prompt": "A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lettering on the glass reads OPEN LATE. Warm lamp light inside, raindrops and blurred neon reflections outside, 35mm film photo."
}'

Nano Banana FAQ

How much does Nano Banana cost?

Nano Banana costs $0.039 per generation on AI/ML API, billed as you go with no subscription.

What inputs and outputs does Nano Banana support?

Nano Banana takes image, text as input and returns image.

When was Nano Banana released?

Nano Banana became available on February 27, 2026.

Can Nano Banana take an existing image as input?

Yes, Nano Banana accepts image input as well as a text prompt.

Who created Nano Banana?

Nano Banana was built by Google.

How do I call Nano Banana on AI/ML API?

Send a request to https://api.aimlapi.com/v1/images/generations with google/nano-banana as the model id.

Is Nano Banana available through a single API key?

Yes. Nano Banana is served through AI/ML API, so the same key and endpoint format used for other models applies.

What kind of model is Nano Banana?

Nano Banana is an image generation model, supporting text-to-image and image-to-image modalities.

What is the Nano Banana model ID?

Use google/nano-banana as the model parameter. Requests go to https://api.aimlapi.com/v1/images/generations with your AI/ML API key.

Start building with Nano Banana

Nano Banana API

google/nano-banana

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/images/generations' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "google/nano-banana",
  "prompt": "A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lettering on the glass reads OPEN LATE. Warm lamp light inside, raindrops and blurred neon reflections outside, 35mm film photo."
}'