Google

Gemini 3.1 Pro Preview

gemini-3.1-pro-preview
  • Vision
  • File input
  • Reasoning
  • Structured output
  • Tool use
  • Web search
  • Explicit caching
  • Implicit caching
Input
$2.00
Per 1M tokens
Output
$12.00
Per 1M tokens
Speed
270
tokens / s
Context
1M
tokens
Released
Feb 2026
Where gemini-3.1-pro-preview runs
DeploymentRegionCostFlexPriorityUltrafastCache readCache writeThroughputCapabilitiesZero data retentionNo training
GoogleGlobal$2.00 / $12.00$1.00 / $6.00$3.60 / $21.60N/A$0.20N/A270 tok/s
  • Vision
  • File input
  • Reasoning
  • Structured output
  • Tool use
  • Web search
  • Explicit caching
  • Implicit caching

Build with Gemini 3.1 Pro Preview

Visit https://docs.weflayr.com/agents/integration-playbook, then set up Weflayr in this project and use it to call the model "gemini-3.1-pro-preview".

Compare with other models

Price and speed is only half the answer. Benchmark models on your calls to find out the other half.

Benchmark on your calls
Filters
  • Gemini 3.1 Pro Preview
The gateway's models next to gemini-3.1-pro-preview
ModelRegionProvidersCostFlexPriorityUltrafastCache readCache writeThroughputContextZero data retentionNo trainingReleased
glm-5.3-primeGlobal$2.80 / $8.80N/AN/AN/A$0.56N/A212 tok/s1M Sep 2026
gpt-4oGlobal$2.50 / $10.00N/A$4.25 / $17.00N/A$1.25N/A109 tok/s128K May 2024
gpt-5.3-codexGlobal$1.75 / $14.00N/A$3.50 / $28.00N/A$0.175N/A156 tok/s272KVariesVariesFeb 2026
gpt-5.2GlobalUS$1.75 / $14.00N/A$3.50 / $28.00N/A$0.175N/A222 tok/s272KVariesVariesDec 2025
gpt-6.2-solGlobalUS$2.00 / $10.00N/AN/AN/A$0.10$2.50238 tok/s922KVaries Nov 2026

Alternatives to Gemini 3.1 Pro Preview

9 other models with the same capabilities and at least the same context window as Gemini 3.1 Pro Preview are available on the Weflayr gateway. Review the most notable ones.

Benchmark Gemini 3.1 Pro Preview on your own agent calls

A lower list price says nothing about answer quality. Your evals grade each answer against the one you ship today.

Evaluate models on your own callsExample

Miracle LabsYesterday, 11:34pm_agent

Review all standup recordings from the past week, check if an issue exists for every work item, and create a status report for me.

  • Your agent's answersBaselineBaseline
  • gemini-3.1-pro-preview−92% cost Same quality
  • gemini-4-neon−90% cost Same quality
  • gemini-3.1-flash-lite−99% costWorse quality
  • gpt-5.5-pro+15% cost Better quality

Questions

How much does gemini-3.1-pro-preview cost?
gemini-3.1-pro-preview costs $2.00 per 1M input tokens and $12.00 per 1M output tokens on its cheapest host, Google, Global. Input read from the cache costs $0.20 per 1M tokens. These are list prices, as the gateway's model list gives them.
Does gemini-3.1-pro-preview cost more for long prompts?
Yes, on Google, Global. Its list price per 1M tokens steps up with the length of the prompt: up to 200K input tokens, $2.00 / $12.00; over 200K input tokens, $4.00 / $18.00.
Does gemini-3.1-pro-preview have other service tiers?
Yes, on Google, Global. Beside its standard $2.00 / $12.00 per 1M tokens, it sells Flex at $1.00 / $6.00 and Priority at $3.60 / $21.60.
What is the context window of gemini-3.1-pro-preview?
gemini-3.1-pro-preview takes up to 1,048,576 tokens of input and writes up to 64,000 tokens in one answer.
Which hosts run gemini-3.1-pro-preview?
1 host: Google (Global). To keep a call on one, send its provider and region, for example "provider": "google", "region": "GLOBAL".
Can I run gemini-3.1-pro-preview in the EU?
Not yet. gemini-3.1-pro-preview runs in Global regions only. 10 models that can do the same job run in the EU.
Do the hosts of gemini-3.1-pro-preview keep my data or train on it?
Zero data retention: 0 of its 1 deployment. No training on your data: 1 of 1. Where a host does not say, this page shows it as unknown.
How fast is gemini-3.1-pro-preview?
Over the last 24 hours, gemini-3.1-pro-preview wrote a median of 270 output tokens per second on its fastest host, Google, Global.
What can gemini-3.1-pro-preview do?
gemini-3.1-pro-preview reads text, images and PDFs and writes text. It supports reasoning, tool use, structured output, web search, explicit caching and implicit caching.
Is there a cheaper model that does the same job as gemini-3.1-pro-preview?
On list price, 5 models can do the same job for less, for a call of 2,000 input and 500 output tokens. The closest in price is gemini-4-hydrogen, at 33% less. A price list cannot tell if the answers are as good. A Weflayr benchmark replays your own calls on each model to find out.
How do I call gemini-3.1-pro-preview?
Point any OpenAI client at https://gateway.weflayr.com/v1 with a Weflayr API key and send "gemini-3.1-pro-preview" as the model. Send a list of models to have the next one answer when the first fails. Calls take up to 1M tokens of context.

Put your model teams to work.

Connect Weflayr, benchmark your agents, and gain control over your AI performance.