Claude models and GPT-5.6 Luna are now available to accounts that have topped up at least once. Top up any amount to unlock them — bonus credits can pay for them too. All other models are unaffected.Top up
Google

Gemini 3.1 Flash Image (Nano Banana 2)

Save 70%

google/gemini-3.1-flash-image

Nano Banana 2 — current default Gemini image model.

Context window
131K
Max output
33K
Input modalities
text · image · video
Output modalities
text · image
Capabilities
Vision · Image Generation · Image Edit · Video Input
RouteMux name
google/gemini-3.1-flash-image
Live model playground

Try Gemini 3.1 Flash Image (Nano Banana 2) here

Tune the request, see the current price ceiling, and inspect the real response without leaving this model page.

syncimage
1Configure input
0 / 20,000
Source images for editing

Sign in first to upload images to this vision model.

Maximum estimated cost
2Live result

Your result will appear here

Enter an input on the left. The same RouteMux Playground execution and billing path powers this embedded test.

image

Gemini 3.1 Flash Image (Nano Banana 2) API pricing

Source: gemini_image_x0.5 · Verified 2026-06-08

InputOfficial $0.5 / M tokens
$0.15/ M tokensSave 70%
OutputOfficial $3 / M tokens
$0.9/ M tokensSave 70%

Estimate cost

Estimated cost$0.0024

Limited time20% extra Credits on your first top-up — up to 200 bonus Credits

Applies to your first top-up within 72 hours of signing up. Minimum $20, once per account.

Sign up and claimNo subscription. Pay for what you use.

Key capabilities

VisionImage GenerationImage EditVideo Input

Interface and protocols

Google Vertex AI

Use either ID to call this model via the API.

RouteMux namegoogle/gemini-3.1-flash-image

You can use these names directly in the request model field.

gemini-3.1-flash-image-previewgoogle/nanobanan2google/nano-banana-2google/nano_banana_2google/nanobanana-2google/nanobanana2models/gemini-3.1-flash-imagemodels/gemini-3.1-flash-image-previewnanobanan2nano-banana-2nano-banana2nano_banana_2nanobanana-2nanobanana2

Replace the ROUTEMUX_KEY placeholder with your API key. Create one →

from google import genai

# RouteMux 兼容 Vertex AI Gemini generateContent 接口
client = genai.Client(
    api_key="<ROUTEMUX_KEY>",
    http_options={"base_url": "https://api.routemux.com/vertex-ai"},
)

response = client.models.generate_content(
    model="google/gemini-3.1-flash-image",
    contents="What is the meaning of life?",
)
print(response.text)
base_url: https://api.routemux.com/vertex-ai

Performance (last 30 days)

Gemini 3.1 Flash Image (Nano Banana 2) FAQ

What is Gemini 3.1 Flash Image (Nano Banana 2)?

Nano Banana 2 — current default Gemini image model.

How large is the context window of Gemini 3.1 Flash Image (Nano Banana 2)?

Gemini 3.1 Flash Image (Nano Banana 2) supports a context window of up to 131K tokens, with up to 33K output tokens per request.

How much does the Gemini 3.1 Flash Image (Nano Banana 2) API cost?

Through RouteMux, Gemini 3.1 Flash Image (Nano Banana 2) is priced at $18, below the official list price.

How do I call Gemini 3.1 Flash Image (Nano Banana 2) via API?

Gemini 3.1 Flash Image (Nano Banana 2) is OpenAI-compatible: point your base URL at RouteMux and set the model field to google/gemini-3.1-flash-image — no code changes needed.

Which input and output modalities does Gemini 3.1 Flash Image (Nano Banana 2) support?

Gemini 3.1 Flash Image (Nano Banana 2) accepts text, image, video as input and produces text, image as output.