head-to-head

Anthropic Claude Haiku Latest vs xAI: Grok 4.20

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

Anthropic Claude Haiku Latest xAI: Grok 4.20
Vendor~anthropicx-ai
Quality Score100100
Benchmark Score-61.5
Input Price$1.00/M$1.25/M
Output Price$5.00/M$2.50/M
Context Window200,0002,000,000
Max Output64,000-
Tool Calling
Structured Output
Reasoning Mode
Vision
Audio--
Benchmark Scores
ai_index-61.0
eqbench-55.8

Who wins by task?

TaskAnthropic Claude Haiku LatestxAI: Grok 4.20
SQL Generation 129 144
Code Review 124 150
Code Completion 114 122
Code Refactoring 124 153
Bug Fixing 128 154
Unit Test Generation 120 135
Code Documentation 122 141
Regex Writing 118 127
CI/CD Pipelines 116 131
Frontend Component Design 122 131
Data Analysis 124 136
CSV / Spreadsheet Cleanup 125 139
ETL Scripting 120 142
JSON Extraction 122 123
Bulk Data Labeling 120 120
OCR / Document Parsing 127 135
Table Extraction from PDFs 127 135
Long-Document Summarization 125 154
Short-Form Summarization 114 119
Blog Post Writing 117 132

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

Related comparisons

MoonshotAI: Kimi K2.7 Code vs Anthropic Claude Haiku Latest MoonshotAI: Kimi K2.7 Code vs xAI: Grok 4.20 Qwen: Qwen3.7 Plus vs Anthropic Claude Haiku Latest Qwen: Qwen3.7 Plus vs xAI: Grok 4.20 MiniMax: MiniMax M3 vs Anthropic Claude Haiku Latest MiniMax: MiniMax M3 vs xAI: Grok 4.20 StepFun: Step 3.7 Flash vs Anthropic Claude Haiku Latest StepFun: Step 3.7 Flash vs xAI: Grok 4.20