head-to-head

Anthropic Claude Sonnet Latest vs Google: Gemini 3.1 Pro Preview

Side-by-side comparison of specs, pricing, benchmark scores, and task rankings. Updated 2026-05-12.

Anthropic Claude Sonnet Latest Google: Gemini 3.1 Pro Preview
Vendor~anthropicgoogle
Quality Score100100
Input Price$3.00/M$2.00/M
Output Price$15.00/M$12.00/M
Context Window1,000,0001,048,576
Max Output128,00065,536
Tool Calling
Structured Output
Reasoning Mode
Vision
Audio-

Who wins by task?

TaskAnthropic Claude Sonnet LatestGoogle: Gemini 3.1 Pro Preview
SQL Generation 132 132
Code Completion 116 117
Code Documentation 128 129
Regex Writing 116 117
CSV / Spreadsheet Cleanup 132 132
JSON Extraction 120 121
Bulk Data Labeling 116 117
Long-Document Summarization 136 136
Short-Form Summarization 112 113
Blog Post Writing 120 120

Scores reflect capability match + benchmark data + pricing for each task. Methodology →

Related comparisons

Google: Gemini 3.1 Flash Lite vs Anthropic Claude Sonnet Latest Google: Gemini 3.1 Flash Lite vs Google: Gemini 3.1 Pro Preview xAI: Grok 4.3 vs Anthropic Claude Sonnet Latest xAI: Grok 4.3 vs Google: Gemini 3.1 Pro Preview Mistral: Mistral Medium 3.5 vs Anthropic Claude Sonnet Latest Mistral: Mistral Medium 3.5 vs Google: Gemini 3.1 Pro Preview NVIDIA: Nemotron 3 Nano Omni (free) vs Anthropic Claude Sonnet Latest NVIDIA: Nemotron 3 Nano Omni (free) vs Google: Gemini 3.1 Pro Preview