Grok 4 vs Claude Opus 4.8
Side-by-side comparison of API pricing, specs, benchmarks, and capabilities
|
by xAI
|
by Anthropic
|
|
|---|---|---|
| Overview | ||
| Status | Current flagship | Current flagship |
| Released | Jul 9, 2025 | May 28, 2026 |
| Pricing per million tokens | ||
| Input | $3.00/Mtok | $5.00/Mtok |
| Output | $15.00/Mtok | $25.00/Mtok |
| Blended avg | $9.00/Mtok | $15.00/Mtok |
| Cached input | — | $0.500/Mtok |
| Specifications | ||
| Context window | 256K tokens | 200K tokens |
| Parameters | Proprietary | Proprietary |
| Speed (TPS) | — | — |
| Modalities | ||
| Input |
textimage
|
textimage
|
| Benchmarks from Vellum LLM Leaderboard | ||
| Avg benchmark score | 66.2 | 80 |
| Perf / dollar | 7.4 | 5.3 |
| GPQA Diamond | 75 | 93.6 |
| SWE-Bench | 55 | 88.6 |
| HumanEval | 87 | — |
| MATH 500 | 82 | — |
| Providers | ||
| Available from |
xAI — $3.00/$15.00/Mtok
|
Anthropic — $5.00/$25.00/Mtok
|
Cost at scale — 1M tokens (50/50 input/output)
| Volume | Grok 4 | Claude Opus 4.8 | Savings |
|---|---|---|---|
| 1M tokens | $9 | $15 | $6 (40%) |
| 10M tokens | $90 | $150 | $60 (40%) |
| 100M tokens | $900 | $1500 | $600 (40%) |
| 1000M tokens | $9000 | $15000 | $6000 (40%) |
Summary
Grok 4 by xAI costs $3.00/Mtok input and $15.00/Mtok output, with a 256K-token context window. It supports text, image input.
Claude Opus 4.8 by Anthropic costs $5.00/Mtok input and $25.00/Mtok output, with a 200K-token context window. It supports text, image input.
On a blended cost basis, Grok 4 is 66.7% cheaper than Claude Opus 4.8. It also has a larger context window.
On benchmarks, Claude Opus 4.8 scores higher (80 vs 66.2) on average. In terms of value, Grok 4 has better performance per dollar (7.4 vs 5.3).
Note: Pricing is per million tokens. Actual costs vary with usage patterns, prompt caching, and batch discounts. Always verify against official provider pricing pages.