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-11-07.

Google: Gemini 3.1 Pro Preview Custom Tools Anthropic: Claude Sonnet 4.6
Vendorgoogleanthropic
Quality Score100100
Benchmark Score-80.1
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-77.9
ai_index_agentic-67.3
ai_index_coding-100.0
aider_polyglot-61.3
eqbench-68.4

The verdict

For a sample job of 1 million input tokens and 250,000 output tokens, Gemini 3.1 Pro Preview Custom Tools costs $5.00 and Claude Sonnet 4.6 costs $6.75, so Gemini 3.1 Pro Preview Custom Tools is about 1.4 times cheaper for the same work.

Both take in a similar amount of text: 1,048,576 and 1,000,000 tokens, about 1,573 and 1,500 pages.

Only Gemini 3.1 Pro Preview Custom Tools offers audio input and video input.

Across the 20 tasks where they differ, Claude Sonnet 4.6 on 20 (SQL Generation, Code Review, Code Completion and others).

Pick Gemini 3.1 Pro Preview Custom Tools if you need lower cost, audio input or video input; pick Claude Sonnet 4.6 if you need the stronger all-round task scores.

Costs use current list prices per million tokens; page counts assume about 0.75 words per token and 500 words per page.

Who wins by task?

TaskGoogle: Gemini 3.1 Pro Preview Custom ToolsAnthropic: Claude Sonnet 4.6
SQL Generation 132 183
Code Review 132 183
Code Completion 117 120
Code Refactoring 136 179
Bug Fixing 136 196
Unit Test Generation 124 166
Code Documentation 129 148
Regex Writing 117 139
CI/CD Pipelines 120 155
Frontend Component Design 122 154
Data Analysis 124 183
CSV / Spreadsheet Cleanup 132 163
ETL Scripting 128 167
JSON Extraction 121 142
Bulk Data Labeling 117 124
OCR / Document Parsing 131 152
Table Extraction from PDFs 131 152
Long-Document Summarization 136 172
Short-Form Summarization 113 124
Blog Post Writing 120 147

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

Related comparisons

Anthropic: Claude Haiku Latest vs Google: Gemini 3.1 Pro Preview Custom Tools Anthropic: Claude Sonnet Latest vs Anthropic: Claude Sonnet 4.6 Anthropic: Claude Sonnet Latest vs Google: Gemini 3.1 Pro Preview Custom Tools ByteDance Seed: Seed-2.0-Lite vs Anthropic: Claude Sonnet 4.6 ByteDance Seed: Seed-2.0-Lite vs Google: Gemini 3.1 Pro Preview Custom Tools ByteDance Seed: Seed-2.0-Mini vs Google: Gemini 3.1 Pro Preview Custom Tools Google: Gemini 3.1 Flash Lite Preview vs Anthropic: Claude Sonnet 4.6 Google: Gemini 3.1 Flash Lite Preview vs Google: Gemini 3.1 Pro Preview Custom Tools

The Model Movers Report

One email every Friday, built from this site's own rankings: the current top five by benchmark score, every model released in the last seven days, and one note worked out from that week's numbers. You can unsubscribe from any issue with one click.