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-11-07.
| Anthropic: Claude Sonnet Latest | Google: Gemini 3.1 Pro Preview | |
|---|---|---|
| Vendor | ~anthropic | |
| Quality Score | 100 | 100 |
| Benchmark Score | - | 74.7 |
| 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 | - | ✓ |
| Benchmark Scores | ||
| ai_index | - | 76.7 |
| ai_index_agentic | - | 35.3 |
| ai_index_coding | - | 100.0 |
| eqbench | - | 64.7 |
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 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 offers audio input and video input.
Across the 20 tasks where they differ, Gemini 3.1 Pro Preview on 20 (SQL Generation, Code Review, Code Completion and others).
Claude Sonnet Latest was released in April 2026 and Gemini 3.1 Pro Preview in February 2026.
Pick Claude Sonnet Latest if you need lower cost; pick Gemini 3.1 Pro Preview if you need audio input, video input or 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?
| Task | Anthropic: Claude Sonnet Latest | Google: Gemini 3.1 Pro Preview |
|---|---|---|
| SQL Generation | 132 | 168 |
| Code Review | 132 | 168 |
| Code Completion | 117 | 120 |
| Code Refactoring | 136 | 168 |
| Bug Fixing | 136 | 177 |
| Unit Test Generation | 124 | 154 |
| Code Documentation | 129 | 144 |
| Regex Writing | 117 | 133 |
| CI/CD Pipelines | 120 | 145 |
| Frontend Component Design | 122 | 145 |
| Data Analysis | 124 | 164 |
| CSV / Spreadsheet Cleanup | 132 | 155 |
| ETL Scripting | 128 | 156 |
| JSON Extraction | 121 | 137 |
| Bulk Data Labeling | 118 | 123 |
| OCR / Document Parsing | 131 | 147 |
| Table Extraction from PDFs | 131 | 147 |
| Long-Document Summarization | 136 | 163 |
| Short-Form Summarization | 113 | 121 |
| Blog Post Writing | 120 | 140 |
Scores reflect capability match + benchmark data + pricing for each task. Methodology →