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 | ~anthropic | |
| Quality Score | 100 | 100 |
| Input Price | $2.00/M | $2.00/M |
| Output Price | $10.00/M | $12.00/M |
| Context Window | 1,000,000 | 1,048,576 |
| Max Output | 128,000 | 65,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?
| Task | Anthropic: Claude Sonnet Latest | Google: 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 →