Model Comparison

Grok-4 vs Claude Sonnet 4

Grok-4 significantly outperforms across most benchmarks. Grok-4 and Claude Sonnet 4 cost the same.

Performance Benchmarks

Comparative analysis across standard metrics

2 benchmarks

Grok-4 outperforms in 2 benchmarks (AIME 2025, GPQA), while Claude Sonnet 4 is better at 0 benchmarks.

Grok-4 significantly outperforms across most benchmarks.

Wed Apr 01 2026 • llm-stats.com

Arena Performance

Human preference votes

Pricing Analysis

Price comparison per million tokens

Claude Sonnet 4 costs less

For input processing, Grok-4 ($3.00/1M tokens) costs the same as Claude Sonnet 4 ($3.00/1M tokens).

For output processing, Grok-4 ($15.00/1M tokens) costs the same as Claude Sonnet 4 ($15.00/1M tokens).

In conclusion, Grok-4 and Claude Sonnet 4 cost the same.*

* Using a 3:1 ratio of input to output tokens

Lowest available price from all providers
Wed Apr 01 2026 • llm-stats.com
xAI
Grok-4
Input tokens$3.00
Output tokens$15.00
Best providerxAI
Anthropic
Claude Sonnet 4
Input tokens$3.00
Output tokens$15.00
Best providerAnthropic
Notice missing or incorrect data?Start an Issue

Context Window

Maximum input and output token capacity

Grok-4 accepts 256,000 input tokens compared to Claude Sonnet 4's 200,000 tokens. Claude Sonnet 4 can generate longer responses up to 64,000 tokens, while Grok-4 is limited to 8,000 tokens.

xAI
Grok-4
Input256,000 tokens
Output8,000 tokens
Anthropic
Claude Sonnet 4
Input200,000 tokens
Output64,000 tokens
Wed Apr 01 2026 • llm-stats.com

Input Capabilities

Supported data types and modalities

Both Grok-4 and Claude Sonnet 4 support multimodal inputs.

They are both capable of processing various types of data, offering versatility in application.

Grok-4

Text
Images
Audio
Video

Claude Sonnet 4

Text
Images
Audio
Video

License

Usage and distribution terms

Both models are licensed under proprietary licenses.

Both models have usage restrictions defined by their respective organizations.

Grok-4

Proprietary

Closed source

Claude Sonnet 4

Proprietary

Closed source

Release Timeline

When each model was launched

Grok-4 was released on 2025-07-09, while Claude Sonnet 4 was released on 2025-05-22.

Grok-4 is 2 months newer than Claude Sonnet 4.

Grok-4

Jul 9, 2025

8 months ago

1mo newer
Claude Sonnet 4

May 22, 2025

10 months ago

Knowledge Cutoff

When training data ends

Grok-4 has a documented knowledge cutoff of 2024-12-31, while Claude Sonnet 4's cutoff date is not specified.

We can confirm Grok-4's training data extends to 2024-12-31, but cannot make a direct comparison without Claude Sonnet 4's cutoff date.

Grok-4

Dec 2024

Claude Sonnet 4

Provider Availability

Grok-4 is available from xAI. Claude Sonnet 4 is available from Anthropic, Bedrock, Google.

Grok-4

xai logo
xAI
Input Price:Input: $3.00/1MOutput Price:Output: $15.00/1M

Claude Sonnet 4

anthropic logo
Anthropic
Input Price:Input: $3.00/1MOutput Price:Output: $15.00/1M
bedrock logo
AWS Bedrock
Input Price:Input: $3.00/1MOutput Price:Output: $15.00/1M
google logo
Google
Input Price:Input: $3.00/1MOutput Price:Output: $15.00/1M
* Prices shown are per million tokens

Outputs Comparison

Notice missing or incorrect data?Start an Issue discussion

Key Takeaways

Larger context window (256,000 tokens)
Higher AIME 2025 score (91.7% vs 70.5%)
Higher GPQA score (87.5% vs 75.4%)
xAIGrok-4
AnthropicClaude Sonnet 4

Detailed Comparison

AI Model Comparison Table
Feature
xAI
Grok-4
Anthropic
Claude Sonnet 4

FAQ

Common questions about Grok-4 vs Claude Sonnet 4

Grok-4 significantly outperforms across most benchmarks. Grok-4 is made by xAI and Claude Sonnet 4 is made by Anthropic. The best choice depends on your use case — compare their benchmark scores, pricing, and capabilities above.
Grok-4 scores AIME 2025: 91.7%, HMMT25: 90.0%, GPQA: 87.5%, LiveCodeBench: 79.0%, Humanity's Last Exam: 40.0%. Claude Sonnet 4 scores MMMLU: 86.5%, TAU-bench Retail: 80.5%, GPQA: 75.4%, MMMU: 74.4%, SWE-Bench Verified: 72.7%.
Both models cost $3.00 per million input tokens.
Grok-4 supports 256K tokens and Claude Sonnet 4 supports 200K tokens. A larger context window lets you process longer documents, conversations, or codebases in a single request.
Key differences include context window (256K vs 200K). See the full comparison above for benchmark-by-benchmark results.
Grok-4 is developed by xAI and Claude Sonnet 4 is developed by Anthropic.