google / text-generation API-only released 2026-02-19

Gemini 3.1 Pro Preview

Gemini 3.1 Pro Preview is Google’s frontier reasoning model, delivering enhanced software engineering performance, improved agentic reliability, and more efficient token usage across complex workflows. Building on the multimodal foundation...

Input / 1M
$2.00
Output / 1M
$12.00
Context
1M
AA Intelligence
29.7
Closed weights — available only as a hosted API audio + file + image + text + video → text View on OpenRouter ↗

Pricing

via OpenRouter · USD per 1M tokens · synced 2026-10-24
$2.00
input / 1M
$12.00
output / 1M
$0.20
cached input / 1M
$14.00
1M in + 1M out
:batch variant $1.00 in · $6.00 out
Price tiers
  • Above 200K prompt tokens: input $4.00/M, output $18.00/M (2× base)
Context window
1,048,576 tokens
Max output
65,536 tokens
Providers
2
Cheapest provider
Google AI Studio · $1.00 / $6.00
Best throughput
—
AA Intelligence / Coding / Agentic
29.7 / 68.8 / 8.2
✓ Tool calling ✓ Reasoning ✓ Structured outputs ✓ Image input ✓ File input ✓ Audio input ✓ Prompt caching

Price history

tracking started — chart appears after 7 days of snapshots (6 recorded)
Current: $2.00 input · $12.00 output per 1M tokens

Benchmarks

Third-party indices as published through OpenRouter — Artificial Analysis and Design Arena. Not measured by us.

AA Intelligence Index
29.7
AA Coding Index
68.8
AA Agentic Index
8.2
Design Arena
CategoryEloWin %Rank
agenticgamedev 1113 44.1% #22
agentichtmlslides 1226 55.8% #4
agenticslides 1112 33.8% #7
agenticslides(html) 1219 54.4% #4
agenticslides(python-pptx) 1107 33.9% #7
androidnative 1051 41.3% #35
fullstack 1068 40.8% #32
godotgamedev 1236 60% #8
htmlslides 1049 48.6% #18
mobileapps 1094 43% #39
pptxslides 1110 34.1% #7
python-pptxslides 1109 31.9% #23
webapps 1125 44.3% #34
3d 1234 58.4% #40
asciiart 1270 63.5% #11
codecategories 1244 64.4% #43
dataviz 1239 61.8% #39
gamedev 1204 52.2% #55
svg 1285 67.8% #9
uicomponent 1277 69.4% #26
website 1253 64.4% #42

Providers

2 providers · per 1M tokens · last 30 min metrics
ProviderQuantContextInputOutputUptimeTok/s
Google unknown 1M $1.00 $6.00 0% —
Google AI Studio unknown 1M $1.00 $6.00 100% —
Google unknown 1M $2.00 $12.00 100% —
Google AI Studio unknown 1M $2.00 $12.00 100% —
Google unknown 1M $3.60 $21.60 — —
Google AI Studio unknown 1M $3.60 $21.60 — —
Provider data from OpenRouter's endpoint listing, refreshed daily.

Specifications

Organisation
google
Released on OpenRouter
2026-02-19
Context window
1,048,576 tokens
Max output
65,536 tokens
Input
audio, file, image, text, video
Output
text
Tokenizer
Gemini
Moderated by provider
No
OpenRouter id
google/gemini-3.1-pro-preview
Compare with
Prices, context and providers from the public OpenRouter API, snapshotted daily; benchmark indices from Artificial Analysis. See /methodology.