Pairwise benchmark snapshot · Aug 17, 2026
This page compares Claude Sonnet 4 (Anthropic) and Grok 3 (xAI) using the latest snapshots we have as of Aug 17, 2026. On preference Elo, Claude Sonnet 4 is ahead by 50 points (1,455 vs 1,405; lmarena (Aug 17, 2026)). On SWE-bench coding, Claude Sonnet 4 resolves 62.8% versus 51.4% (swebench (Aug 17, 2026)). Claude Sonnet 4 streams faster (92 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.
50 pts advantage
4 tok/s faster
Same price
Simulate monthly production API costs in USD (US Dollar).
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 (Claude Sonnet 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 | Claude Sonnet 4 | Both accept images. Defaulting to the higher-Elo side (Claude Sonnet 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-3/opengraph-image for crawlers.
Verified head-to-head card