Pairwise benchmark snapshot · Aug 16, 2026
This page compares Claude Sonnet 4 (Anthropic) and Grok 4 (xAI) using the latest snapshots we have as of Aug 16, 2026. On preference Elo, Grok 4 is ahead by 33 points (1,488 vs 1,455; seed-bootstrap (Aug 1, 2026)). On SWE-bench coding, Claude Sonnet 4 resolves 62.8% versus 58.6% (seed-bootstrap (Aug 1, 2026)). Grok 4 streams faster (98 tok/s) while Claude Sonnet 4 is the cheaper output token ($15/1M). Claude Sonnet 4 has the larger context window (1M tokens). Every cell below is a dated snapshot from a named public source — we do not invent missing scores, and we do not run SWE-bench ourselves.
Anthropic
Claude Sonnet 4First Sonnet 4 generation. Bridge between 3.5/3.7 and Sonnet 5.
Instant pairwise benchmark recalculation across 400+ LLMs
Category wins across intelligence, speed, and pricing efficiency.
Preference Elo, Coding proficiency, SWE-bench & LiveBench accuracy
Generation throughput and time to first token responsiveness
Cost per million tokens and max context window length
Each spoke is a skill. Farther from the center is better (0–100th percentile). Tap any dot to inspect details.
33 pts advantage
6 tok/s faster
Same token price
Simulate monthly production API costs based on published $/1M tokens.
Higher SWE-bench (62.8%).
Lower output list price ($15/1M).
Lower TTFT (220 ms).
Larger window (1M).
Both accept images. Defaulting to the higher-Elo side (Grok 4).
| Target Workload | Recommended Pick | Evaluation Rationale |
|---|---|---|
| Repo / coding agents | Claude Sonnet 4 | Higher SWE-bench (62.8%). |
| High-volume chat | Claude Sonnet 4 | Lower output list price ($15/1M). |
| Voice / low-latency UI | Claude Sonnet 4 | Lower TTFT (220 ms). |
| Long-document RAG | Claude Sonnet 4 | Larger window (1M). |
| Screenshots / vision | Grok 4 | Both accept images. Defaulting to the higher-Elo side (Grok 4). |
No comments posted on this matchup yet. Be the first to share an evaluation note!
The real PNG is generated at /compare/claude-sonnet-4-vs-grok-4/opengraph-image for crawlers.
Verified head-to-head card