← Back to Calculator

Gemini 3.1 Pro vs Claude Sonnet 4.6

Detailed comparison of API pricing, technical specifications, and benchmark scores. Updated 2026-06-29.

Cost at a Glance

Claude Sonnet 4.6 is 1.3× more expensive than Gemini 3.1 Pro (24.4% savings if you switch).

At 5M input + 2M output tokens per month:

Gemini 3.1 Pro$34.00/movsClaude Sonnet 4.6$45.00/mo

Choosing Gemini 3.1 Pro could save you $11.00/mo

Price Comparison (per 1M tokens)

Input (per 1M tokens)
$2.00vs$3.00
Output (per 1M tokens)
$12.00vs$15.00
Cache Write (per 1M tokens)
vs$3.75
Cache Read (per 1M tokens)
$0.20vs$0.30
Batch Input (per 1M tokens)
vs$1.50
Batch Output (per 1M tokens)
vs$7.50

Prices are per 1 million tokens. Actual costs depend on your monthly token volume. Use the calculator →

Specifications

Context Window
1Mvs1M
Max Output Tokens
64Kvs128K
Knowledge Cutoff
2026-04vs2026-03
Modalities
Text, Image, Audio, VideovsText, Image
Prompt Caching
YesvsYes
Batch API
NovsYes
Thinking / Reasoning
YesvsYes

Benchmark Scores

SWE-bench Verified
80.6vs79.6
MMLU-Pro
86.5vs85.2
HumanEval
93.5vs94.1

Benchmark scores from official provider reports. Higher is better. Missing scores indicate the provider has not published that benchmark yet.

Use Cases

Gemini 3.1 Pro

multimodalcodinggeneral

Claude Sonnet 4.6

codinggeneralfast

About the Providers

Gemini 3.1 Pro is developed by Google. Claude Sonnet 4.6 is developed by Anthropic. This is a cross-provider comparison between Google and Anthropic models. For the most up-to-date pricing, always check the official API documentation from each provider.

Compare More AI Models