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

ImageReasoningFilesVision131.1K
Per request$0.17
TypeImage
Endpointsgemini
§ 01

Pricing

Price per request$0.17 / request
Context window131.1K tokens
Compatible endpointsgemini
VendorGoogle

Price grid

ResolutionPrice
512$0.11
1K$0.17
2K$0.17
4K$0.30
§ 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.17 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