LLM Comparison

Claude Sonnet 5 vs Grok 4.7

Side-by-side specs, pricing & capabilities

Add to comparison

2/6 models
Same tier:
 AnthropicClaude Sonnet 5xAIGrok 4.7
OrganizationAnthropicAnthropicxAIxAI
OpenTools Score
64
10.6
FamilyClaude SonnetGrok
StatusCurrentCurrent
Release DateJun 2026Sep 2026
Context Window1.0M tokens500K tokens
Input Price$2.00/M tokens$2.00/M tokens
Output Price$10.00/M tokens$6.00/M tokens
Pricing NotesClaude 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 Output128K tokens—
API Identifierclaude-sonnet-5grok-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 5View Grok 4.7

Cost Calculator

Enter your expected monthly token usage to compare costs.

ModelInputOutputTotal / movs Best
Grok 4.7Cheapest$2.00$3.00$5.00—
Claude Sonnet 5$2.00$5.00$7.00+40%

Looking for more AI models?

Browse All LLMs
Claude Sonnet 5 vs Grok 4.7 – Specs, Pricing & Capabilities