head-to-head

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

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

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

The verdict

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

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

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

Across the 10 tasks where they differ, Claude Sonnet Latest scores higher on 10 (SQL Generation, Code Completion, Code Documentation and others).

Claude Sonnet Latest was released in April 2026 and Gemini 3.1 Pro Preview Custom Tools in February 2026.

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

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?

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

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

Related comparisons

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

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.