Google models on MLMux
Google makes the Nano Banana image models, its Gemini image generation family. On MLMux they are billed on the tokens each image uses, and the default official-cheap route costs half of Google's list price.
Models
Every Google model on MLMux, with its options and the estimated price on the default official-cheap route. The official route runs at the list price.
| Model and API model ID | Options | Price on official-cheap (default) |
|---|---|---|
Nano Bananagoogle/nano-banana | Image modelOne standard size | $0.019 per imageofficial: $0.039 |
Nano Banana 2google/nano-banana-2 | Image modelSizes: 1K, 2K, 4KUp to 14 reference images | $0.034 per 1K imageofficial: $0.067 |
Nano Banana 2 Litegoogle/nano-banana-2-lite | Image modelOne standard size | $0.017 per imageofficial: $0.034 |
Nano Banana 2.1google/nano-banana-2.1 | Image modelSizes: 1K, 2K, 4KUp to 14 reference images | $0.017 per 1K imageofficial: $0.034 |
Nano Banana Progoogle/nano-banana-pro | Image modelSizes: 1K, 2K, 4KUp to 14 reference images | $0.067 per 1K imageofficial: $0.134 |
Quick start
- Create an API key
Create a key in the console and save it as the MLMUX_API_KEY environment variable.
Create an API key - Send a request
The example sends Nano Banana (google/nano-banana) to https://api.mlmux.com/v1/images/generations. Change the model ID to any model in the table above.
- Read the result
The response lists the image URLs in data. Add "async": true to get a task to poll instead.
Image API reference
curl https://api.mlmux.com/v1/images/generations \
-H "Authorization: Bearer $MLMUX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/nano-banana",
"route_mode": "official-cheap",
"prompt": "A red fox in fresh snow at sunrise, cinematic light",
"aspect_ratio": "1:1",
"output_format": "jpg",
"n": 1
}'Frequently asked questions
Which Google models can I use on MLMux?
5 models: Nano Banana, Nano Banana 2, Nano Banana 2 Lite, Nano Banana 2.1, and Nano Banana Pro. Each one has its own page with its options, prices and a playground to try it in the browser.
How much do Google models cost on MLMux?
The lowest-cost one is Nano Banana 2 Lite at $0.017 per image on the default official-cheap route. Every price is pay as you go with no subscription, and failed requests are not charged.
How do I call a Google model through the API?
Send the model ID, such as google/nano-banana, to https://api.mlmux.com/v1/images/generations with your MLMux API key. The request format is the same for every model on MLMux, so switching models means changing one field.
Is MLMux affiliated with Google?
No. MLMux is an independent service that runs Google models on official provider routes. Model names and trademarks belong to their owners.