AnthropicvsGoogle·Updated Nov 2026
Claude Sonnet 5 logovsGemini 3.1 Pro Preview Customtools logo

Claude Sonnet 5 vs Gemini 3.1 Pro Preview Customtools

Side-by-side pricing tables, surcharge math, capability benchmarks, and 30-day spend estimators across 411 live models and cloud GPU matchups.

Switch Comparison Matchup411 · Updated Nov 2026
Cheaper Input
Tie · $2.00/1M

Equal

Cheaper Output
Claude Sonnet 5 logoClaude Sonnet 5-17%

$10.00 vs $12.00 / 1M

AA Intelligence / AA Engineering
Reasoning

—

Context Window
Gemini 3.1 Pro Preview Customtools logoGemini 3.1 Pro Preview Customtools1×

1.05M vs 1M tokens

Capability Benchmarks & Third-Party Evaluations

Compare Artificial Analysis intelligence and engineering indexes, core capability matrices, and standardized external leaderboards.

AA Intelligence · Engineering · Arena · SWE-bench
Artificial Analysis Benchmarks
AA Intelligence
Claude Sonnet 5 logoClaude Sonnet 5Pending
Gemini 3.1 Pro Preview Customtools logoGemini 3.1 Pro Preview CustomtoolsPending
AA Engineering
Claude Sonnet 5 logoClaude Sonnet 5Pending
Gemini 3.1 Pro Preview Customtools logoGemini 3.1 Pro Preview CustomtoolsPending
Core Capability Profile
MetricClaude Sonnet 5Gemini 3.1 Pro Preview Customtools
ReasoningYesYes
Input Modalitiestext, image, filetext, audio, image, video, file
Tools & JSONToolsTools
Prompt Caching$0.20/1M$0.20/1M
Open-WeightProprietaryProprietary

Side-by-side specification matrix

USD ·
MetricClaude Sonnet 5 logoClaude Sonnet 5Gemini 3.1 Pro Preview Customtools logoGemini 3.1 Pro Preview CustomtoolsCompare
Input / 1M$2.00$2.00Equal
Output / 1M$10.00$12.00Claude Sonnet 5 -17%
5m Cache Write / 1M$2.50$0.38Gemini 3.1 Pro Preview Customtools -85%
1h Cache Write / 1M———
Cache Read$0.20$0.20Equal
Web Search / Call———
Context1M (1,000,000)1.05M (1,048,576)Gemini 3.1 Pro Preview Customtools 1×
Max Output128K (128,000)66K (65,536)Claude Sonnet 5 2×
AA Intelligence(Artificial Analysis)———
AA Engineering———
Capabilitiestext, image, filetext, audio, image, video, fileGemini 3.1 Pro Preview Customtools
ReasoningSupportedSupportedEqual
Structured Outputs(JSON Schema)Not listedNot listedEqual
Open-WeightProprietary APIProprietary APIEqual

30-day production cost estimator

Adjust daily volume, prompt length, and cache hit rate to model 30-day API spend.

LLM API Monthly Cost Calculator
2,000
2,500
500
50%
0
60,000 · 150.0M · 30.0M
Est. 30-Day Spend
Estimated monthly savings with Claude Sonnet 5 $60.00/mo ($720.00)
-11%
Claude Sonnet 5 logoClaude Sonnet 5Best Value
$465.00/mo
In: $150.00
Cache: $15.00
Out: $300.00
Search: N/A
Gemini 3.1 Pro Preview Customtools logoGemini 3.1 Pro Preview Customtools
$525.00/mo
In: $150.00
Cache: $15.00
Out: $360.00
Search: N/A

Frequently Asked Questions

Is Claude Sonnet 5 or Gemini 3.1 Pro Preview Customtools cheaper per API token?

Both Claude Sonnet 5 and Gemini 3.1 Pro Preview Customtools charge an identical $2.00 per 1M input tokens. For output tokens, Claude Sonnet 5 costs 17% less ($10.00 vs $12.00 per 1M).

How do Claude Sonnet 5 and Gemini 3.1 Pro Preview Customtools prompt caching discounts compare?

Both models price cached input reads at $0.20 per 1M tokens. Claude Sonnet 5 5m write: $2.50/1M; Gemini 3.1 Pro Preview Customtools 5m write: $0.38/1M.

Which model has a larger context window: Claude Sonnet 5 or Gemini 3.1 Pro Preview Customtools?

Gemini 3.1 Pro Preview Customtools provides a 1× larger context window (1.05M vs 1M tokens). For single-turn output generation, Claude Sonnet 5 caps at 128K tokens and Gemini 3.1 Pro Preview Customtools caps at 66K tokens.

How do Claude Sonnet 5 and Gemini 3.1 Pro Preview Customtools compare on benchmarks and capabilities?

Compare Claude Sonnet 5 (Anthropic) and Gemini 3.1 Pro Preview Customtools (Google) across tool calling (yes vs yes) and reasoning support above.

Related Head-to-Head Matchups

Comparisons