Gemini/Mid-tier

Gemini 3.1 Pro

Gemini 3.1 Pro is Gemini's balanced performance model, priced at $2.00/MTok input and $12.00/MTok output with a 1,000K context window.

Input $/MTok

$2.00

Output $/MTok

$12.00

Context window

1,000K

Cache read discount

90% off

Gemini 3.1 Pro pricing breakdown

RateInput $/MTokOutput $/MTok
Standard$2.00$12.00
Cached read (90% off input)$0.20-
Cached write (no surcharge)$2.00-
Batch (50% off)$1.00$6.00
Long context (≥200.001K tokens)$4.00$18.00

All rates in USD per million tokens. Prices verified against provider documentation.

Gemini 3.1 Pro task benchmarks

Confidence scores (0-100) and cross-provider rank for each task type. Rank 1 is best across all 20 models.

TaskConfidenceRank
Code Generation86/100#5
Code Review84/100#4
Summarization87/100#4
Q&A87/100#4
Extraction85/100#4
Reasoning90/100#4
Classification86/100#3
Creative Writing84/100#4

Gemini 3.1 Pro cost by use case

Estimated cost per API call using default token counts for each workload.

Use caseInput tokensOutput tokensCost / call
Code Generation2,0004,000$0.0520
Unit Test Generation3,0005,000$0.0660
SQL Generation1,5001,000$0.0150
API Generation3,0006,000$0.0780
Code Refactoring4,0004,000$0.0560
Code Review5,0002,000$0.0340
PR Review8,0003,000$0.0520
Security Review6,0002,500$0.0420
Bug Detection5,0002,000$0.0340
Document Summarization10,0001,000$0.0320
PDF Summarization15,0001,500$0.0480
Meeting Notes8,0002,000$0.0400

Monthly cost projections

Projected monthly spend at different call volumes, using code generation as a representative workload (2,000 input / 4,000 output tokens per call).

Calls / monthWithout cachingWith caching (90% read discount)
1K$52$49.48
10K$520$494.8
100K$5,200$4,948
500K$26,000$24,740
1M$52,000$49,480

Caching estimate assumes 70% of input tokens are cache reads. Your actual cache hit rate will depend on prompt structure and reuse.

Mid-tier alternatives to Gemini 3.1 Pro

Same-tier models from other providers, sorted by input price.

ModelProviderInput $/MTokOutput $/MTokInput savings
Grok 4.3Grok$1.25$2.5038% cheaper
Claude Sonnet 5Claude$2.00$10.00Same price
GPT 5.6 TerraGPT$2.00$12.00Same price
GPT 5.4GPT$2.50$15.0025% more
Claude Sonnet 4.6Claude$3.00$15.0050% more

Gemini 3.1 Pro pricing history

Input launched

$2.00/MTok at launch

Apr 22, 2026

View full Gemini 3.1 Pro pricing history

Track your Gemini 3.1 Pro spend

See exactly how much you spend on Gemini 3.1 Pro and where you can save. Two-line wrapper install, no API keys shared.