gemini-3.1-flash-image:flex

Gemini 3.1 Flash Image is optimized for image understanding and generation and offers a balance of price and performance.

VisionReasoningTool callingCachingWeb searchImage gen
CompareDocs

Specifications

Context window131K tokens
Max output33K tokens
API typechat
AddedAug 14, 2026
Model ID
Data retentionNo
Used for trainingNo
Provider location🇺🇸 US

Benchmarks

Benchmarks haven't been published yet for this exact variant.

Some variants (region-specific deployments, highspeed tiers) share benchmarks with their base model. Check the base model page or the Google LLC (Vertex AI) models overview.

Pricing

Prices updated August 14, 2026
Input / 1M
$0.25
Output / 1M
$1.50
Cache write
N/A
Cache read
N/A
Estimated cost
100K input + 10K output$0.0400
1M input + 100K output$0.40
10M input + 1M output$4.00

Requesty charges exactly what the upstream provider charges, no markup, no per-request fees. Prompt caching and smart routing can reduce effective cost by 30-80%.

Quickstart

Drop-in compatible with the OpenAI SDK. Change the base URL, swap in your Requesty API key, and set the model to vertex/gemini-3.1-flash-image:flex.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from openai import OpenAI client = OpenAI( api_key="YOUR_REQUESTY_API_KEY", base_url="https://router.requesty.ai/v1", ) response = client.chat.completions.create( model="vertex/gemini-3.1-flash-image:flex", messages=[ {"role": "user", "content": "Explain quantum computing in one paragraph."}, ], ) print(response.choices[0].message.content)

Other Google LLC (Vertex AI) models

Frequently asked questions

How much does gemini-3.1-flash-image:flex cost?
gemini-3.1-flash-image:flex is priced at $0.25 per million input tokens and $1.50 per million output tokens when accessed via Requesty. Prompt caching is supported, which can cut effective input cost by up to 90% on repeated context. Requesty charges exactly what the upstream provider charges, we don't add markup.
What is the context window of gemini-3.1-flash-image:flex?
gemini-3.1-flash-image:flex has a context window of 131K tokens, with a maximum output of 33K tokens per response. That's roughly 175 words of input you can fit in a single prompt.
What can gemini-3.1-flash-image:flex do?
gemini-3.1-flash-image:flex supports vision input, tool calling, extended reasoning, prompt caching, web search, image generation. You can call it through any OpenAI-compatible client by pointing base_url to Requesty.
How do I use gemini-3.1-flash-image:flex with the OpenAI SDK?
Install the OpenAI SDK, set base_url to "https://router.requesty.ai/v1", set your API key to your Requesty key, and set the model to "vertex/gemini-3.1-flash-image:flex". The Quickstart above shows Python, JavaScript and cURL snippets.
Can I run gemini-3.1-flash-image:flex through Requesty?
Yes. gemini-3.1-flash-image:flex runs through Requesty's OpenAI-compatible API, served from Google LLC (Vertex AI). You do not host the model yourself: point base_url at Requesty, set the model to "vertex/gemini-3.1-flash-image:flex", and requests are routed to the upstream provider with automatic failover. The same key gives you 600+ other models too.

Access gemini-3.1-flash-image:flex through Requesty

One API key, 600+ models, OpenAI-compatible. No markup on provider prices, automatic failover, and smart caching built-in.