IranRouter
All models
Google

Google: Nano Banana 2 (Gemini 3.1 Flash Image)

Unavailable

by Google

google/gemini-3.1-flash-image

Gemini 3.1 Flash Image, a.k.a. "Nano Banana 2," is Google’s latest state of the art image generation and editing model, delivering Pro-level visual quality at Flash speed. It combines advanced...

At a glance

Context window
131Ktokens
Max output
33Ktokens
Knowledge to
Released
2026

Capabilities

CapabilitiesReasoningVisionStructured output
InputImageText
OutputImageText
ReasoningSupportedhighminimal

Performance

Reference uptime

100%

Aug 18Sep 16

Median latency

8,207 ms

Aug 18Sep 16

Throughput

133.5 tok/s

Aug 18Sep 16

IranRouter uptime comes from our own automated probes; the reference figures are daily measurements of this model's upstream routes. Each card shows a 30-day average, and a day without data stays empty.

Supported parameters

include_reasoningmax_tokensreasoningreasoning_effortresponse_formatseedstructured_outputstemperaturetop_p

Parameters this model accepts; anything else is ignored.

Quick start

from openai import OpenAI

client = OpenAI(
    api_key="ir-...",
    base_url="https://iranrouter.com/v1",
)

resp = client.chat.completions.create(
    model="google/gemini-3.1-flash-image",
    messages=[{"role": "user", "content": "سلام!"}],
)
print(resp.choices[0].message.content)

Only base_url and the key change; the rest of your code stays as it is.