head-to-head
Anthropic Claude Haiku Latest vs Anthropic Claude Sonnet Latest
Side-by-side comparison of specs, pricing, benchmark scores, and task rankings. Updated 2026-05-12.
| Anthropic Claude Haiku Latest | Anthropic Claude Sonnet Latest | |
|---|---|---|
| Vendor | ~anthropic | ~anthropic |
| Quality Score | 100 | 100 |
| Input Price | $1.00/M | $3.00/M |
| Output Price | $5.00/M | $15.00/M |
| Context Window | 200,000 | 1,000,000 |
| Max Output | 64,000 | 128,000 |
| Tool Calling | ✓ | ✓ |
| Structured Output | ✓ | ✓ |
| Reasoning Mode | ✓ | ✓ |
| Vision | ✓ | ✓ |
| Audio | - | - |
Who wins by task?
| Task | Anthropic Claude Haiku Latest | Anthropic Claude Sonnet Latest |
|---|---|---|
| SQL Generation | 129 | 132 |
| Code Review | 124 | 132 |
| Code Completion | 114 | 116 |
| Code Refactoring | 124 | 136 |
| Bug Fixing | 128 | 136 |
| Unit Test Generation | 120 | 124 |
| Code Documentation | 122 | 128 |
| Regex Writing | 118 | 116 |
| CI/CD Pipelines | 116 | 120 |
| CSV / Spreadsheet Cleanup | 125 | 132 |
| ETL Scripting | 120 | 128 |
| JSON Extraction | 122 | 120 |
| Bulk Data Labeling | 120 | 116 |
| OCR / Document Parsing | 127 | 131 |
| Table Extraction from PDFs | 127 | 131 |
| Long-Document Summarization | 125 | 136 |
| Short-Form Summarization | 114 | 112 |
| Blog Post Writing | 117 | 120 |
Scores reflect capability match + benchmark data + pricing for each task. Methodology →
Related comparisons
Google: Gemini 3.1 Flash Lite vs Anthropic Claude Haiku Latest
Google: Gemini 3.1 Flash Lite vs Anthropic Claude Sonnet Latest
xAI: Grok 4.3 vs Anthropic Claude Haiku Latest
xAI: Grok 4.3 vs Anthropic Claude Sonnet Latest
Mistral: Mistral Medium 3.5 vs Anthropic Claude Haiku Latest
Mistral: Mistral Medium 3.5 vs Anthropic Claude Sonnet Latest
NVIDIA: Nemotron 3 Nano Omni (free) vs Anthropic Claude Haiku Latest
NVIDIA: Nemotron 3 Nano Omni (free) vs Anthropic Claude Sonnet Latest