head-to-head
xAI: Grok 4.20 vs Anthropic: Claude Sonnet 4.6
Side-by-side comparison of specs, pricing, benchmark scores, and task rankings. Updated 2026-05-14.
| xAI: Grok 4.20 | Anthropic: Claude Sonnet 4.6 | |
|---|---|---|
| Vendor | x-ai | anthropic |
| Quality Score | 100 | 100 |
| Input Price | $1.25/M | $3.00/M |
| Output Price | $2.50/M | $15.00/M |
| Context Window | 2,000,000 | 1,000,000 |
| Max Output | - | 128,000 |
| Tool Calling | ✓ | ✓ |
| Structured Output | ✓ | ✓ |
| Reasoning Mode | ✓ | ✓ |
| Vision | ✓ | ✓ |
| Audio | - | - |
Who wins by task?
| Task | xAI: Grok 4.20 | Anthropic: Claude Sonnet 4.6 |
|---|---|---|
| SQL Generation | 133 | 132 |
| Code Completion | 119 | 116 |
| Code Documentation | 131 | 128 |
| Regex Writing | 119 | 116 |
| CSV / Spreadsheet Cleanup | 133 | 132 |
| JSON Extraction | 123 | 120 |
| Bulk Data Labeling | 120 | 116 |
| Long-Document Summarization | 137 | 136 |
| Short-Form Summarization | 115 | 112 |
| Blog Post Writing | 121 | 120 |
Scores reflect capability match + benchmark data + pricing for each task. Methodology →
Related comparisons
Google: Gemini 3.1 Flash Lite vs xAI: Grok 4.20
Google: Gemini 3.1 Flash Lite vs Anthropic: Claude Sonnet 4.6
xAI: Grok 4.3 vs xAI: Grok 4.20
xAI: Grok 4.3 vs Anthropic: Claude Sonnet 4.6
Mistral: Mistral Medium 3.5 vs xAI: Grok 4.20
Mistral: Mistral Medium 3.5 vs Anthropic: Claude Sonnet 4.6
NVIDIA: Nemotron 3 Nano Omni (free) vs xAI: Grok 4.20
NVIDIA: Nemotron 3 Nano Omni (free) vs Anthropic: Claude Sonnet 4.6