Claude Sonnet 5 vs Grok 4.7
Side-by-side pricing tables, surcharge math, capability benchmarks, and 30-day spend estimators across 411 live models and cloud GPU matchups.
Equal
$6.00 vs $10.00 / 1M
Grok 4.7: 35.4
1M vs 500K tokens
Capability Benchmarks & Third-Party Evaluations
Compare Artificial Analysis intelligence and engineering indexes, core capability matrices, and standardized external leaderboards.
| Metric | Claude Sonnet 5 | Grok 4.7 |
|---|---|---|
| Reasoning | Yes | xhigh/high/medium/low |
| Input Modalities | text, image, file | text, image, file |
| Tools & JSON | Tools | Tools · JSON |
| Prompt Caching | $0.20/1M | $0.50/1M |
| Open-Weight | Proprietary | Proprietary |
Compare independent Intelligence Index, Engineering/Coding scores, tokens/sec throughput, and TTFT latency for Claude Sonnet 5 and Grok 4.7.
Blind pairwise human preference Elo ratings across Overall, Coding, Hard Prompts, and Instruction Following.
Measures autonomous GitHub repository issue resolution rates in sandboxed software engineering evaluations.
Monthly refreshed objective tests spanning Math, Coding, Reasoning, Data Analysis, and Language.
Evaluates practical diff editing pass rates and API cost per benchmark run across Python, C++, Go, Java, JS, and Rust.
Live provider uptime, latency, throughput, and parameter support for x-ai/grok-4.7.
Side-by-side specification matrix
USD ·| Metric | Compare | ||
|---|---|---|---|
| Input / 1M | $2.00 | $2.00 | Equal |
| Output / 1M | $10.00 | $6.00 | Grok 4.7 -40% |
| 5m Cache Write / 1M | $2.50 | $2.00 | Grok 4.7 -20% |
| 1h Cache Write / 1M | — | — | — |
| Cache Read | $0.20 | $0.50 | Claude Sonnet 5 -60% |
| Web Search / Call | — | $0.005 | — |
| Context | 1M (1,000,000) | 500K (500,000) | Claude Sonnet 5 2× |
| Max Output | 128K (128,000) | 500K (500,000) | Grok 4.7 3.9× |
| AA Intelligence(Artificial Analysis) | — | 35.4 | — |
| AA Engineering | — | 41.7 | — |
| Capabilities | text, image, file | text, image, file | Equal |
| Reasoning | Supported | xhigh, high, medium, low | Equal |
| Structured Outputs(JSON Schema) | Not listed | Supported | Grok 4.7 |
| Open-Weight | Proprietary API | Proprietary API | Equal |
30-day production cost estimator
Adjust daily volume, prompt length, and cache hit rate to model 30-day API spend.
Frequently Asked Questions
Is Claude Sonnet 5 or Grok 4.7 cheaper per API token?
Both Claude Sonnet 5 and Grok 4.7 charge an identical $2.00 per 1M input tokens. For output tokens, Grok 4.7 costs 40% less ($6.00 vs $10.00 per 1M).
How do Claude Sonnet 5 and Grok 4.7 prompt caching discounts compare?
Claude Sonnet 5 offers 60% cheaper cache reads at $0.20/1M compared to $0.50/1M for Grok 4.7. Claude Sonnet 5 5m write: $2.50/1M; Grok 4.7 5m write: $2.00/1M.
Which model has a larger context window: Claude Sonnet 5 or Grok 4.7?
Claude Sonnet 5 provides a 2× larger context window (1M vs 500K tokens). For single-turn output generation, Claude Sonnet 5 caps at 128K tokens and Grok 4.7 caps at 500K tokens.
How do Claude Sonnet 5 and Grok 4.7 compare on benchmarks and capabilities?
Compare Claude Sonnet 5 (Anthropic) and Grok 4.7 (xAI) across tool calling (yes vs yes) and reasoning support above.
Related Head-to-Head Matchups
ComparisonsClaude Sonnet 5 vs GPT-6.2 Sol
In: $2.00 vs $2.00 · Out: $10.00 vs $10.00
Claude Sonnet 5 vs Gemini 4 Argon
In: $2.00 vs $2.00 · Out: $10.00 vs $10.00
Claude Sonnet 5 vs Gemini 4 Carbon
In: $2.00 vs $2.00 · Out: $10.00 vs $10.00
Grok 4.7 vs Claude Fable 5.2
In: $2.00 vs $8.00 · Out: $6.00 vs $40.00
Grok 4.7 vs Claude Sonnet 5.5
In: $2.00 vs $2.00 · Out: $6.00 vs $10.00
Grok 4.7 vs DeepSeek V4.1 Flash
In: $2.00 vs $0.14 · Out: $6.00 vs $0.42