head-to-head

Anthropic: Claude Sonnet 5 vs Anthropic Claude Haiku Latest

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

Anthropic: Claude Sonnet 5 Anthropic Claude Haiku Latest
Vendoranthropic~anthropic
Quality Score100100
Input Price$2.00/M$1.00/M
Output Price$10.00/M$5.00/M
Context Window1,000,000200,000
Max Output128,00064,000
Tool Calling
Structured Output
Reasoning Mode
Vision
Audio--

Who wins by task?

TaskAnthropic: Claude Sonnet 5Anthropic Claude Haiku Latest
SQL Generation 132 129
Code Review 132 124
Code Completion 117 114
Code Refactoring 136 124
Bug Fixing 136 128
Unit Test Generation 124 120
Code Documentation 129 122
Regex Writing 117 118
CI/CD Pipelines 120 116
CSV / Spreadsheet Cleanup 132 125
ETL Scripting 128 120
JSON Extraction 121 122
Bulk Data Labeling 118 120
OCR / Document Parsing 131 127
Table Extraction from PDFs 131 127
Long-Document Summarization 136 125
Short-Form Summarization 113 114
Blog Post Writing 120 117

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

Related comparisons

Anthropic: Claude Sonnet 5 vs MoonshotAI: Kimi K2.7 Code Anthropic: Claude Sonnet 5 vs Qwen: Qwen3.7 Plus Anthropic: Claude Sonnet 5 vs MiniMax: MiniMax M3 Anthropic: Claude Sonnet 5 vs StepFun: Step 3.7 Flash Anthropic: Claude Sonnet 5 vs xAI: Grok Build 0.1 Anthropic: Claude Sonnet 5 vs Google: Gemini 3.5 Flash Anthropic: Claude Sonnet 5 vs Google: Gemini 3.1 Flash Lite Anthropic: Claude Sonnet 5 vs xAI: Grok 4.3