Available now
Google

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...

ImageFilesVision131.1KCacheWebSearch
Per request$0.55
TypeImage
Endpointsopenai, gemini

Capabilities

VisionCacheStructuredWeb searchSystem msg6 img in

Modalities

Input
imagetext
Output
imagetext

Quick stats

Context window131.1K
Max output32.8K
Modeimage_generation
TokenizerGemini

Performance

Loading performance data...

Supported parameters

ParameterAlwaysDefault
frequency_penalty-(do not send)
include_reasoning-
max_tokens-
presence_penalty-(do not send)
reasoning-
repetition_penalty-(do not send)
response_format-
seed-
stop--
structured_outputs--
temperature(do not send)
top_k-(do not send)
top_p(do not send)
§ 01

Pricing

Price per request$0.55 · request
Context window131.1K tokens
Compatible endpointsopenai, gemini
VendorGoogle
§ 02

Call gemini-3.1-flash-image-preview from your code

Point any OpenAI-compatible SDK at UnoRouter and request the model by name. Replace YOUR_API_KEY with a real key from your dashboard.

bash
curl https://api.unorouter.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.1-flash-image-preview",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Sign in to auto-fill your API key

§ 03

Frequently asked questions

How much does gemini-3.1-flash-image-preview cost per request?

gemini-3.1-flash-image-preview is billed at a fixed $0.55 per request.

How do I access gemini-3.1-flash-image-preview via API?

Send requests to the UnoRouter /v1/chat/completions endpoint with model=gemini-3.1-flash-image-preview. Any OpenAI-compatible client library works. Authentication uses a standard Bearer token.

What is the context window of gemini-3.1-flash-image-preview?

gemini-3.1-flash-image-preview supports a context window of 131.1K tokens, shared between your prompt and the model's response.

§ 04

Similar models

Try gemini-3.1-flash-image-preview now

Create an API key and start making requests in under a minute.

View all models