LLM Comparison
Claude Sonnet 5 vs Grok 4.7
Side-by-side specs, pricing & capabilities
Add to comparison
2/6 models| Organization | ||
| OpenTools Score | 64 10.6 | |
| Family | Claude Sonnet | Grok |
| Status | Current | Current |
| Release Date | Jun 2026 | Sep 2026 |
| Context Window | 1.0M tokens | 500K tokens |
| Input Price | $2.00/M tokens | $2.00/M tokens |
| Output Price | $10.00/M tokens | $6.00/M tokens |
| Pricing Notes | Claude API standard pricing is $2 input and $10 output per million tokens. Cache reads are $0.20, 5-minute cache writes $2.50, and 1-hour cache writes $4 per million tokens. Batch API input/output receives a 50% discount. Current official documentation lists these rates without the previously recorded August 31 introductory expiry; provider-specific rates may differ. | SpaceXAI xAI API global standard tier, USD per million tokens. Below 200,000 prompt tokens: $2 input, $0.50 cached input, $6 output. Above 200,000 prompt tokens: $4 input, $1 cached input, $12 output. Fast serving and regional endpoints have separate conditions. The provider explicitly states there is no text output limit; no numeric maxOutputTokens is asserted. |
| Capabilities | textvisionreasoningcodingtool-useextended-thinkingagents | codingreasoningvisiontool-usestructured-outputlong-contextcontext-caching |
| Max Output | 128K tokens | — |
| API Identifier | claude-sonnet-5 | grok-4.7 |
| Benchmarks | ||
| Artificial Analysis Intelligence Index v4.3.2 | — | 42.2 indexartificial-analysis |
| Artificial Analysis Intelligence Index v4.3 | 38.4 indexartificial-analysis | — |
| Artificial Analysis Intelligence Index v4.3 | 38 indexhttps://artificialanalysis.ai/models/claude-sonnet-5 | — |
| GPQA Diamond | 91.1%artificial-analysis | — |
| SciCode | 54.3%artificial-analysis | — |
| Terminal-Bench 2.1 | 80.5%artificial-analysis | — |
| View Claude Sonnet 5 | View Grok 4.7 | |
Cost Calculator
Enter your expected monthly token usage to compare costs.
| Model | Input | Output | Total / mo | vs Best |
|---|---|---|---|---|
| Grok 4.7Cheapest | $2.00 | $3.00 | $5.00 | — |
| Claude Sonnet 5 | $2.00 | $5.00 | $7.00 | +40% |
Anthropic
Claude Sonnet 5
Claude Sonnet 5 is Anthropic next-generation Sonnet model and a drop-in upgrade from Sonnet 4.6. Anthropic docs state that adaptive thinking is on by default, manual extended thinking is removed, sampling parameter overrides return errors, and the model supports a 1M token context window with 128K max output.
xAI
Grok 4.7
Grok 4.7 is SpaceXAI's proprietary coding and knowledge-work model, available as grok-4.7 on the xAI API. It accepts text and images, returns text, and offers a 500,000-token context window. SpaceXAI's release notes specify no text output limit. Standard global API pricing starts at $2 input and $6 output per million tokens, with separate cached-input and long-context rates.
More Comparisons
Looking for more AI models?
Browse All LLMs