head-to-head

Google: Gemini 3.1 Pro Preview Custom Tools vs Anthropic: Claude Sonnet 4.6

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

Google: Gemini 3.1 Pro Preview Custom Tools Anthropic: Claude Sonnet 4.6
Vendorgoogleanthropic
Quality Score100100
Benchmark Score-80.0
Input Price$2.00/M$3.00/M
Output Price$12.00/M$15.00/M
Context Window1,048,5761,000,000
Max Output65,536128,000
Tool Calling
Structured Output
Reasoning Mode
Vision
Audio-
Benchmark Scores
ai_index-85.3
ai_index_agentic-100.0
ai_index_coding-84.1
aider_polyglot-61.3

Who wins by task?

TaskGoogle: Gemini 3.1 Pro Preview Custom ToolsAnthropic: Claude Sonnet 4.6
SQL Generation 132 181
Code Review 132 177
Code Completion 117 118
Code Refactoring 136 172
Bug Fixing 136 194
Unit Test Generation 124 163
Code Documentation 129 144
Regex Writing 117 139
CI/CD Pipelines 120 152
Frontend Component Design 122 153
Data Analysis 124 184
CSV / Spreadsheet Cleanup 132 158
ETL Scripting 128 162
JSON Extraction 121 141
Bulk Data Labeling 117 123
OCR / Document Parsing 131 150
Table Extraction from PDFs 131 150
Long-Document Summarization 136 166
Short-Form Summarization 113 123
Blog Post Writing 120 145

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

Related comparisons

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