Models / Gemini / Gemini 3.1 Pro Preview
Gemini

Gemini 3.1 Pro Preview

BYOKClosedReleased 19 Feb 2026

A closed, multimodal Google model with a very large context window and strong science and terminal results. Its intelligence score beats the registry median, but it costs well above typical models.

Read the full description ↓

Spec sheet

Family
Gemini
Released
19 Feb 20269 months ago
Weights
Closed
Context window
1M tokens
Largest response
66k tokens
Accepts
text, image, audio, video, file
Supports
tools, reasoning, structured output
Knowledge cutoff
January 2025
Intelligence index
64.9#39
Input price
$2 / 1M
Output price
$12 / 1M
Blended price (3:1)
$4.5 / 1M
Index points per $
14.4#88
Speed
94 tokens/sec#47
Popularity
#66 of 194by usage
Providers
2

Benchmarks

Score · rank among models tested

The tick on each bar marks the registry median; hover over a bar for the numbers. Sources and how the index is computed: methodology.

Providers and prices

$ per 1M tokens · from genai-prices
ProviderGatewayPydantic AI model stringInputCached inputOutputBlended
Google Vertexgateway/google-cloud:gemini-3.1-pro-preview $2$0.2$12$4.5
OpenRouterBYOKopenrouter:google/gemini-3.1-pro-preview $2$0.2$12$4.5

Every provider charges the same. Blended price assumes three input tokens for each output token.

Example code

# /// script
# dependencies = ["pydantic-ai"]
# ///
import os

from pydantic_ai import Agent

os.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'

agent = Agent('gateway/google-cloud:gemini-3.1-pro-preview', instructions='Be concise, reply with one sentence.')

result = agent.run_sync('Where does "hello world" come from?')
print(result.output)

Ask Gemini 3.1 Pro Preview a question with a Pydantic AI agent and print the answer. Run it with uv run hello.py.

Compare

Gemini 3.1 Pro PreviewvsGrok 4.5
Intelligence indexOur composite of the benchmarks below, 0-100
Gemini 3.1 Pro Preview64.9
Grok 4.565.3
GPQA DiamondGraduate-level science questions, multiple choice
Gemini 3.1 Pro Preview94.4%
Grok 4.593.4%
OTIS Mock AIMECompetition mathematics problems with exact answers
Gemini 3.1 Pro Preview95.6%
Grok 4.597.8%
FrontierMathOriginal research-level mathematics problems, tiers 1 to 3
Gemini 3.1 Pro Preview59.6%
Grok 4.557.2%
ARC-AGI-2Abstract visual puzzles that test learning a new rule from a few examples
Gemini 3.1 Pro Preview77.1%
Grok 4.552.6%
SimpleQA VerifiedShort factual questions answered from memory, without search
Gemini 3.1 Pro Preview73.5%
Grok 4.548.3%
Terminal-BenchTasks completed in a terminal; the best result of any agent using the model
Gemini 3.1 Pro Preview80.2%
Grok 4.5–
SciCodeScientific programming problems written by researchers
Gemini 3.1 Pro Preview58.7%
Grok 4.555%
WebDev ArenaRating from human votes on web apps the models built
Gemini 3.1 Pro Preview1446.6
Grok 4.51555.1
APEX-AgentsLong professional tasks (banking, consulting, law) passed on the first attempt
Gemini 3.1 Pro Preview35.1%
Grok 4.556.2%
LMArena textRating from blind human votes between pairs of chat responses
Gemini 3.1 Pro Preview1480
Grok 4.51447.9
Epoch Capabilities IndexEpoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index
Gemini 3.1 Pro Preview–
Grok 4.5155
Input pricePer 1M tokens, lower is better
Gemini 3.1 Pro Preview$2
Grok 4.5$2
Output pricePer 1M tokens, lower is better
Gemini 3.1 Pro Preview$12
Grok 4.5$6
EfficiencyIndex points per blended $
Gemini 3.1 Pro Preview14
Grok 4.522
SpeedOutput tokens per second
Gemini 3.1 Pro Preview94 t/s
Grok 4.561 t/s
Context windowTokens
Gemini 3.1 Pro Preview1M
Grok 4.5500k
Model stringFor Pydantic AI
Gemini 3.1 Pro Previewgateway/google-cloud:gemini-3.1-pro-preview
Grok 4.5xai:grok-4.5

About Gemini 3.1 Pro Preview

Description written by an LLM from the data on this page

A closed, multimodal Google model with a very large context window and strong science and terminal results. Its intelligence score beats the registry median, but it costs well above typical models.

Gemini 3.1 Pro Preview is a closed model from Google, released February 2026. It has a 1M-token context window, 65k-token responses, and accepts text, image, audio, video and files. Tool calling, reasoning mode and structured output are supported. Its knowledge cutoff is January 2025.

Its strongest results come in science and agentic work. It scores 94.4% on GPQA Diamond and 80.2% on Terminal-Bench, third of 35. Its intelligence index of 64.9 sits above the registry median, though only 41st of 114 places.

The main drawbacks are cost and professional tasks. Blended pricing of $4.50 per million tokens is far above the median of about $1. It scores 35.1% on APEX-Agents, 52nd of 60, and trails on FrontierMath.

Strengths

  • 94.4% on GPQA Diamond, 12th of 94
  • 80.2% on Terminal-Bench, 3rd of 35
  • 73.5% on SimpleQA Verified, 8th of 76
  • 1480 LMArena text rating, 19th of 114

Weaknesses

  • Blended price of $4.50 per million tokens, 156th of 194 on price
  • 35.1% on APEX-Agents, 52nd of 60
  • 59.6% on FrontierMath, below the 64.6% median, 44th of 80

Best for

Agents needing long context, multimodal input or terminal work, where cost per token matters less.

One key, every model

Pydantic AI Gateway gives you the models marked with a single API key, spending limits and Logfire tracing. Bring your own key for the rest.

Start free  Read the docs