Nano Banana 2
nano-banana-2Google's fast image generation model with conversational editing, multi-image fusion, and character consistency
- Price
- $0.0804/image
- Aspect ratios
- 1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9
- Input โ output
- Text โ Image
- Developer
- Google DeepMind
- Updated
- September 24, 2026
Playground
Try Nano Banana 2
Input & output
This run
$0.0804 ยท 8.04 credits
For accounts without a purchase: runs above 2 credits need a top-up.
New here?
10 free credits ($0.10) when you sign up with Google
Usable 24 hours after sign-up, up to 5 runs per day and at most 2 credits per run. Other sign-in methods start without credits.
Examples
Open full sizePrompt
An isometric 3D miniature diorama of a cozy Japanese ramen shop at night. Warm light spills from the entrance. Tiny detailed figures sit at the counter. Steam rises from bowls of ramen. Rain puddles reflect neon signs on the street. Tilt-shift photography effect.
Settings
- aspect_ratio
- 1:1
Open full sizePrompt
A 3-panel comic strip in a clean, modern cartoon style. Panel 1: A programmer stares at their screen with a confused expression, coffee cup in hand. Panel 2: The programmer's eyes widen as they spot the bug. Panel 3: The programmer celebrates with arms raised, confetti falls, and the screen shows a green checkmark. Caption at the bottom reads 'THE DEBUGGING EXPERIENCE'.
Settings
- aspect_ratio
- 16:9
Open full size
InputPrompt
Transform this photograph into a Studio Ghibli anime style illustration. Keep the same composition but render everything with soft cel-shading, warm colors, and the dreamy atmosphere of a Miyazaki film.
Settings
- aspect_ratio
- match_input_image
About Nano Banana 2
Nano Banana 2 is a model by Google DeepMind in the Image generation category. On Railwail, Nano Banana 2 costs $0.0804 per image. Depending on the settings, the price ranges from $0.0804/image to $0.1812/image. Supported aspect ratios: 1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, and 21:9.
Pricing
| resolution: 1KDefault | $0.0804 per image |
|---|---|
| resolution: 2K | $0.1212 per image |
| resolution: 4K | $0.1812 per image |
- 1 credit = $0.01
Cost calculator
Price calculator
Total
$8.04
804 credits
Per run
$0.0804 ยท 8.04 credits
Fixed price per run, known before the run starts.
API
curl https://railwail.com/api/v1/images/generations \
-H "Authorization: Bearer $RAILWAIL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana-2",
"prompt": "A lighthouse on a rocky coast at sunset, photorealistic"
}'import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["RAILWAIL_API_KEY"],
base_url="https://railwail.com/api/v1",
)
image = client.images.generate(
model="nano-banana-2",
prompt="A lighthouse on a rocky coast at sunset, photorealistic",
)
print(image.data[0].url)import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.RAILWAIL_API_KEY,
baseURL: "https://railwail.com/api/v1",
});
const image = await client.images.generate({
model: "nano-banana-2",
prompt: "A lighthouse on a rocky coast at sunset, photorealistic"
});
console.log(image.data[0].url);// npm install railwail
import railwail from "railwail";
const rw = railwail(process.env.RAILWAIL_API_KEY);
const res = await rw.image("nano-banana-2", "A lighthouse on a rocky coast at sunset, photorealistic");
console.log(res.data[0].url);Specifications
- Model ID
nano-banana-2- Developer
- Google DeepMind
- Category
- Image generation
- Input
- Text
- Output
- Image
- Aspect ratios
- 1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9
- Billing
- Fixed price, known before the run
- Catalog entry updated
- September 24, 2026
Input parameters
Inputs and settings from the model's input schema. The example in the API section shows which of them the API accepts.
promptrequiredType: TextDefault: โAllowed values: โaspectRatioType: ChoiceDefault:1:1Allowed values: match_input_image, 1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, or 21:9
Tags
- replicate
- text-to-image
Use cases
Frequently asked questions
What is Nano Banana 2?
Nano Banana 2 is a model by Google DeepMind in the Image generation category. On Railwail you can call it with an API key through the Railwail API.
How much does Nano Banana 2 cost on Railwail?
On Railwail, Nano Banana 2 costs $0.0804 per image. Depending on the settings, the price ranges from $0.0804/image to $0.1812/image. The price is known before the run starts. Usage is paid from prepaid credits; 1 credit equals $0.01.
Which settings does Nano Banana 2 support?
According to its input schema, Nano Banana 2 knows these parameters: prompt and aspectRatio (match_input_image, 1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, or 21:9).
How fast is Nano Banana 2?
There are not enough measured runs of Nano Banana 2 on Railwail yet to state a run time. It depends on the input, the settings and the load at the provider.
Is Nano Banana 2 better than FLUX 1.1 Pro?
That depends on the task. Nano Banana 2 (Google DeepMind) and FLUX 1.1 Pro (Black Forest Labs) are both models in the Image generation category. The comparison page shows their prices and specifications side by side.
Compare Nano Banana 2 and FLUX 1.1 ProHow do I use Nano Banana 2 through the API?
Create a Railwail API key and send your request with the model ID nano-banana-2. Code examples for curl, Python and JavaScript are in the API section of this page.
Comparable models
All in this category- FLUX 1.1 ProBlack Forest Labs
Black Forest Labs' flagship text-to-image model. Faster generation than FLUX.1 Pro at higher prompt adherence, with strong photorealism and reliable spatial composition. Runs as a hosted Replicate model.
- Flux 1.1 Pro UltraBlack Forest Labs
FLUX 1.1 Pro in ultra mode. Up to 4 megapixel images with raw mode for photorealism.
- Flux DevBlack Forest Labs
Black Forest Labs' development model. Fast, high-quality image generation with LoRA support.
Use Nano Banana 2 via the API
One API key for every model on Railwail. Usage is charged from prepaid credits, 1 credit = $0.01.