▥ Seedance 2.5 is here! ›
Nano Banana

Nano Banana

Google's Gemini 2.5 Flash Image for fast image generation from text prompts.

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"
output_formatstring

Format of the output image

Indicative cost≈ $0.019 / image · 1K · billed on actual tokens≈ $0.019 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.

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 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.3 / 1M tokens$0.15 / 1M tokens
Text and thinking output$2.5 / 1M tokens$1.25 / 1M tokens
Image output$30 / 1M tokens$15 / 1M tokens

Readme

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

Generate from a prompt

Describe a scene in plain language and get an image back in one request.

Ten aspect ratios

Pick square, portrait, landscape, or ultra-wide shapes from 1:1 to 21:9. Nano Banana returns images at its standard size, so requests take no resolution.

Pay per image

Each image is billed on the tokens it uses, with no subscription. The pricing section lists the price on each route.

Frequently asked questions

What is Nano Banana?

Nano Banana is an image generation model from Google. On MLMux you can run it in the browser or call it through one API. Google's Gemini 2.5 Flash Image for fast image generation from text prompts.

How do I use the Nano Banana 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. The generated images are returned in the response.

What can Nano Banana do?

Generation modes: Text to image. Each request returns images in aspect ratios such as 1:1, 2:3, 3:2, 3:4, 4:3, and 4:5. Reference images and image editing are not available for Nano Banana on MLMux yet.

How much does Nano Banana cost?

MLMux is pay as you go, with no subscription or monthly fee, and 1 credit equals 1 US dollar. A Nano Banana image costs about $0.019 on the default official-cheap route and $0.039 on the official route at any resolution, billed on the tokens each request actually uses. The rates are listed in the pricing section of this page.

Can I try Nano Banana without writing code?

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