Preparing page…
▥ Seedance 2.5 is here! ›
PricingDocsUpdatesAccount

Nano Banana 2

Fast image generation with conversational editing, multi-image fusion, and character consistency.

Warm Official Live Priced by route Data privacy Zero training API docs

Input

prompt*string

A text description of the image you want to generate

route_modestring

Choose the provider route used for this request.

Lower-cost official route and the default for new requests and API keys.
generation_typestring

Select the generation workflow. The API mode updates with this choice.

aspect_ratiostring

Aspect ratio of the generated output

Default: "1:1"
resolutionstring

Higher resolutions may take longer to generate.

Default: "1K"
output_formatstring

Format of the output image

Indicative cost≈ $0.034 / image · 1K · billed on actual tokens≈ $0.034 for 1 image · official-cheap · 1KBoth routes are billed on the tokens the model returns: official at the provider's published rates, official-cheap at 50% of them. If no usage is returned, the per-image price applies.

Output

Ready for a predictionAdjust the inputs, then run the model.

Examples

View more examples ↗

Pricing

Choose the same two routing tiers used across MLMux. The selected route is included as route_mode in every request.

Learn more about pricing ↗

Token rates

Nano Banana 2 is billed on the tokens it returns, per 1M tokens: official at the provider's published rates, official-cheap at 50% of them. If a response carries no usage, the per-image price applies.

Tokensofficialofficial-cheap
Input (text and image)$0.5 / 1M tokens$0.25 / 1M tokens
Text and thinking output$3 / 1M tokens$1.5 / 1M tokens
Image output$60 / 1M tokens$30 / 1M tokens

Readme

Nano Banana 2 is available through MLMux with one request shape and two explicit route tiers.

Generate new images

Create high-fidelity images from natural-language prompts with faster generation, stronger instruction following, and readable multilingual text.

Edit existing images

Pass one or more images with a prompt to replace backgrounds, change materials, adjust styles, or combine several references into one scene.

Use up to 14 references

Build consistent characters, products, and compositions using multiple visual references while keeping the request structure compact.

Model details

Type
image generation
References
Up to 14
Default route
official-cheap

Frequently asked questions

What is Nano Banana 2?

Nano Banana 2 is an image generation model from Google. On MLMux you can run it in the browser or call it through one API. Fast image generation with conversational editing, multi-image fusion, and character consistency.

How do I use the Nano Banana 2 API?

Create an API key in the MLMux Console, then send a POST request to https://api.mlmux.com/v1/images/generations with the key in the Authorization header and model set to nano-banana-2. The generated images are returned in the response.

What can Nano Banana 2 do?

Generation modes: Text to image and Image editing. Each request accepts up to 14 reference images and returns 1K, 2K, or 4K images in aspect ratios such as 1:1, 1:4, 1:8, 2:3, 3:2, and 3:4.

How much does Nano Banana 2 cost?

MLMux is pay as you go, with no subscription or monthly fee, and 1 credit equals 1 US dollar. Each Nano Banana 2 request is billed by usage on the route you choose: official, or the lower-cost official-cheap route that is used by default. Current rates are listed in the pricing section of this page.

Can I try Nano Banana 2 without writing code?

Yes. Sign in and use the playground at the top of this page to run Nano Banana 2 with the same settings as the API. The API tab shows the matching request in Node.js, Python, and HTTP.

More image models

Explore all models ↗
Nano Banana 2.1

Image generation and editing with reference-guided workflows.

Nano Banana Pro

Professional image generation.

GPT Image 2

Detailed generation and editing for text-rich visual work.

Seedream 5 Pro

Professional image generation and editing.

GPT Image 2.5 Flare

High-fidelity image generation.

GPT Image 2.5 Sunburst

High-fidelity image generation.

Seedream 4.0

Controlled image generation.

Seedream 4.5

Detailed image generation.

Seedream 5.0

Professional image generation.

Nano Banana

Fast conversational image generation and editing.

Nano Banana 2 Lite

Efficient image generation.

One API for image and video generation.

ModelsPricingDocumentationConsole