Nano Banana 2 (Gemini 3.1 Flash Image Preview)

Gemini 3.1 Flash Image Preview, 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...

Google · more Google models · all models

Pricing and specs

Model IDroutexor/gemini-3.1-flash-image-preview
ProviderGoogle
Input, per 1M tokens$0.50
Output, per 1M tokens$3
Price sourceReference price from OpenRouter's listing, not the provider's own page. A direct call on your key can cost a different amount.
Context window66K tokens
Max output59K tokens
CapabilitiesStreaming, Vision, JSON

Your provider bills these tokens on your account. A listing is not a promise that your key has access to this model.

Call it

curl https://api.routexor.com/v1/chat/completions \
  -H "Authorization: Bearer $ROUTEXOR_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{"model":"routexor/gemini-3.1-flash-image-preview","messages":[{"role":"user","content":"Say hello briefly."}],"max_tokens":64}'

Add your Google key in the dashboard first. This call is billed by Google. See the docs for which request paths are supported.