Gemini 3.1 Flash Image (Nano Banana 2)
Save 70%google/gemini-3.1-flash-image
Also callable as nano-banana-2
Gemini 3.1 Flash Image (Nano Banana 2) — retired. Google has released the upgraded Nano Banana 2.1; use 2.1 instead.
- Context window
- 128K
- Max output
- 32K
- Input modalities
- text · image · video
- Output modalities
- text · image
- Capabilities
- Vision · Image generation · Image editing · Video input
- RouteMux name
- google/gemini-3.1-flash-image
Gemini 3.1 Flash Image (Nano Banana 2) API pricing
Prices verified 2026-06-08
Estimate cost
Limited time10% 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.
Key capabilities
Interface and protocols
Use any of these IDs to call this model via the API.
google/gemini-3.1-flash-imagenano-banana-2Replace 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)Performance (last 30 days)
Gemini 3.1 Flash Image (Nano Banana 2) FAQ
›What is Gemini 3.1 Flash Image (Nano Banana 2)?
Gemini 3.1 Flash Image (Nano Banana 2) — retired. Google has released the upgraded Nano Banana 2.1; use 2.1 instead.
›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 128K tokens, with up to 32K 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.
›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.