Compare / head-to-head

Claude Sonnet 5vsGrok 4.7

Claude Sonnet 5 and Grok 4.7 do not yet share a public benchmark, so quality cannot be compared apples-to-apples. Grok 4.7 is 1.5x cheaper per token. Claude Sonnet 5 has the larger context window (1M tokens).

Benchmarks from cited public sources; pricing from official pages; status from official provider feeds.

Shared benchmarks
0
no overlap yet
Cheaper per token
Grok 4.7
1.5x cheaper, input + output
Larger context
Claude Sonnet 5
1M tokens
Providers
2 providers
Anthropic · xAI
Claude Sonnet 5
Anthropic · released 2026-06-30
textvision
Context
1M
Max out
128K
Input /1M
$2
Output /1M
$10
Cached /1M
$0.2
Scores
8 · 8 core
Grok 4.7
xAI · released 2026-09-21
textvision
Context
500K
Max out
Input /1M
$2
Output /1M
$6
Cached /1M
$0.5
Scores
7 · 0 core
Quality

Benchmark matrix

BenchmarkClaude Sonnet 5Grok 4.7ΔEdge
Reported by both · 0
No public benchmark is reported for both models yet.
Only Claude Sonnet 5 reports · 8
SWE-bench Verified85.2% not reported
GPQA Diamond90.5% epochnot reported
Humanity's Last Exam (no tools)43.2% not reported
FrontierMath Tier 4 v2 (Epoch AI run)29.3% epochnot reported
FrontierMath Tiers 1-3 v2 (Epoch AI run)65.6% epochnot reported
Humanity's Last Exam (with tools)57.4% not reported
OTIS Mock AIME 2024-2025 (Epoch AI run)94.7% epochnot reported
SimpleQA Verified33.7% epochnot reported
Only Grok 4.7 reports · 7
AA Briefcase v1.1not reported1657
CursorBench 4.0not reported46.3%
DeepSWE v1.1not reported71%
EEBenchnot reported64%
Harvey Legal Agent Benchmarknot reported19.6%
HealthBench Professionalnot reported56.7%
Terminal-Bench 4.0not reported38%
Scores tagged "epoch" or "matharena" are independent runs, used only where the lab has not published its own; ⚠ marks rows MathArena flags as released after the competition. Higher is better on every row. Δ is Claude Sonnet 5 minus Grok 4.7 in the benchmark's own unit. "Not reported" means the lab has not published that figure; it is not a zero. ↗ opens the source.
Specs & pricing

Side by side

SpecClaude Sonnet 5Grok 4.7Edge
Context window1M tokens500K tokensClaude Sonnet 5
Max output128K tokens
Input price / 1M$2 $2 Tie
Output price / 1M$10 $6 Grok 4.7
Cached input / 1M$0.2 $0.5 Claude Sonnet 5
Input + output / 1M
Lower is cheaper. List prices; batch, tool and regional fees excluded.
$12$8Grok 4.7
Modalitiestext · visiontext · visionTie
Released2026-06-302026-09-21
Cited benchmark scores87
Reliability

Provider status

All providers →
More matchups

Claude Sonnet 5 vs …

More matchups

Grok 4.7 vs …

Built by Respan
Which one wins on your data?

Public benchmarks are a starting point. Run Claude Sonnet 5 and Grok 4.7 on your own prompts with Respan evals, or route to either through one gateway key with automatic failover.