head-to-head
Anthropic: Claude Sonnet 5 (batch) vs Google: Gemini 3.5 Flash
Side-by-side comparison of specs, pricing, benchmark scores, and task rankings. Updated 2026-07-29.
| Anthropic: Claude Sonnet 5 (batch) | Google: Gemini 3.5 Flash | |
|---|---|---|
| Vendor | anthropic | |
| Quality Score | 100 | 100 |
| Benchmark Score | 90.4 | 83.3 |
| Input Price | $1.00/M | $1.50/M |
| Output Price | $5.00/M | $9.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 | 88.0 | 82.8 |
| ai_index_agentic | 77.0 | 61.8 |
| ai_index_coding | 100.0 | 100.0 |
Who wins by task?
| Task | Anthropic: Claude Sonnet 5 (batch) | Google: Gemini 3.5 Flash |
|---|---|---|
| SQL Generation | 171 | 168 |
| Code Review | 167 | 164 |
| Code Completion | 120 | 119 |
| Code Refactoring | 164 | 162 |
| Bug Fixing | 180 | 176 |
| Unit Test Generation | 154 | 152 |
| Code Documentation | 143 | 141 |
| Regex Writing | 136 | 133 |
| CI/CD Pipelines | 144 | 143 |
| Frontend Component Design | 146 | 145 |
| Data Analysis | 171 | 167 |
| CSV / Spreadsheet Cleanup | 154 | 153 |
| ETL Scripting | 154 | 152 |
| JSON Extraction | 140 | 138 |
| Bulk Data Labeling | 126 | 124 |
| OCR / Document Parsing | 146 | 146 |
| Table Extraction from PDFs | 146 | 146 |
| Long-Document Summarization | 160 | 157 |
| Short-Form Summarization | 123 | 121 |
| Blog Post Writing | 140 | 138 |
Scores reflect capability match + benchmark data + pricing for each task. Methodology →
Related comparisons
Qwen: Qwen3.7 Flash vs Anthropic: Claude Sonnet 5 (batch)
Qwen: Qwen3.7 Flash vs Google: Gemini 3.5 Flash
Google: Gemini 3.6 Flash vs Anthropic: Claude Sonnet 5 (batch)
Google: Gemini 3.6 Flash vs Google: Gemini 3.5 Flash
Google: Gemini 3.6 Flash (batch) vs Anthropic: Claude Sonnet 5 (batch)
Google: Gemini 3.6 Flash (batch) vs Google: Gemini 3.5 Flash
Google: Gemini 3.5 Flash Lite vs Anthropic: Claude Sonnet 5 (batch)
Google: Gemini 3.5 Flash Lite vs Google: Gemini 3.5 Flash