Requesty
Google logo

gemini-3.1-flash-image

Google/Proprietary/2 providers

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

Which id to call

gemini-3.1-flash-image

Requesty routes this id across every provider serving gemini-3.1-flash-image, picking on price and health and failing over automatically. The id stays valid when a provider changes underneath it.

From /1M input

$0.25

Google LLC (Vertex AI)

Context

131K

66K output

Endpoints

3

1 region

Price spread

2.0x

3 endpoints

Capabilities 7/8

VisionReasoningTool callingCachingWeb searchJSON schemaComputer useImage generation

3 endpoints / 1 region

Providers serving gemini-3.1-flash-image

Provider prices, per 1M tokens. Pay as you go adds 5%, or 0% on your own keys.

Providers serving gemini-3.1-flash-image, with pricing and measured performance. The best value in each column is highlighted.
RankPrivacy
1Google LLC (Vertex AI)Global131K$0.25$1.50freezdr
2Google LLC (Gemini API)Global131K$0.50$2.00freezdr
3Google LLC (Vertex AI)Global131K$0.50$2.00freezdr

A column is blank where no qualifying sample exists, and every row links to that provider's endpoint page.

model=

Which id to call

One base url, https://router.requesty.ai/v1, and one key for every id here.

gemini-3.1-flash-image

Requesty routes this id across every provider serving gemini-3.1-flash-image, picking on price and health and failing over automatically. The id stays valid when a provider changes underneath it.

OpenAI compatible

Call it in three lines

Change the base url, use your Requesty key, set the model to any id on the left. Existing OpenAI SDK code needs no other edit.

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="gemini-3.1-flash-image", messages=[ {"role": "user", "content": "Explain quantum computing in one paragraph."}, ], ) print(response.choices[0].message.content)

6

More from Google

Reference

gemini-3.1-flash-image questions

Which providers serve gemini-3.1-flash-image?

gemini-3.1-flash-image is available from 2 providers through Requesty: Google LLC (Vertex AI), Google LLC (Gemini API). All endpoints share one OpenAI-compatible API and one key, and Requesty fails over between them automatically.

How much does gemini-3.1-flash-image cost?

Pricing starts at $0.25 per million input tokens and $1.50 per million output tokens on Google LLC (Vertex AI), the cheapest endpoint. Prices vary by provider and region; the table above shows every endpoint. Those are the upstream provider rates: pay as you go adds 5% on top, or 0% if you bring your own provider keys.

Is gemini-3.1-flash-image open weights?

No. gemini-3.1-flash-image is a proprietary model from Google, served through Google's own API and licensed cloud platforms.

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

gemini-3.1-flash-image supports up to 131K tokens of context, with up to 66K output tokens per response. Some providers expose a smaller window; check the per-endpoint context column above.

How do I use gemini-3.1-flash-image 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 "gemini-3.1-flash-image" or any endpoint id from the table above. The quickstart section shows Python, JavaScript and cURL snippets.

Should I call gemini-3.1-flash-image by its managed id or a provider id?

Use the managed id, "gemini-3.1-flash-image". Requesty picks which of the 2 providers serves each request based on price and health, and fails over when one degrades, so the id keeps working while the routing changes underneath it. Send a provider id like "vertex/gemini-3.1-flash-image:flex" only when you need one specific deployment and want no failover.

Route gemini-3.1-flash-image through one endpoint

One key for 2 providers on this model and 600+ others. No markup on provider prices, automatic failover, caching built in.

Benchmark rankings