Comprehensive side-by-side LLM comparison
Grok-4 leads with 47.1% higher average benchmark score. Claude 3 Sonnet offers 136.0K more tokens in context window than Grok-4. Both models have similar pricing. Overall, Grok-4 is the stronger choice for coding tasks.
Anthropic
Claude 3 Sonnet was introduced as the balanced middle tier of the Claude 3 family, offering a combination of strong capabilities and operational speed. Designed to provide an optimal tradeoff between intelligence and performance for everyday tasks, it served as a versatile solution for a wide range of enterprise and consumer applications.
xAI
Grok 4 represents the fourth generation of xAI's language models, developed to continue advancing the frontier of AI reasoning and knowledge. Built to handle increasingly complex tasks with enhanced reliability, it demonstrates xAI's commitment to pushing AI capabilities forward.
1 year newer

Claude 3 Sonnet
Anthropic
2024-02-29

Grok-4
xAI
2025-07-09
Cost per million tokens (USD)

Claude 3 Sonnet

Grok-4
Context window and performance specifications
Average performance across 1 common benchmarks

Claude 3 Sonnet

Grok-4
Grok-4
2024-12-31
Available providers and their performance metrics

Claude 3 Sonnet
Anthropic
Bedrock

Claude 3 Sonnet

Grok-4

Claude 3 Sonnet

Grok-4

Grok-4
xAI
ZeroEval