Price Per TokenPrice Per Token
Anthropic
Anthropic
vs
Xai
Xai

Claude Sonnet 4.5 vs Grok 4

A detailed comparison of pricing, benchmarks, and capabilities

Track Your LLM Costs Across Every Provider Broken down by user, feature, and endpoint

107 out of our 483 tracked models have had a price change in March.

Get our weekly newsletter on pricing changes, new releases, and tools.

Key Takeaways

Claude Sonnet 4.5 wins:

  • Larger context window
  • Faster response time

Grok 4 wins:

  • Higher intelligence benchmark
  • Better at coding
  • Better at math
Price Advantage
Claude Sonnet 4.5
Benchmark Advantage
Grok 4
Context Window
Claude Sonnet 4.5
Speed
Claude Sonnet 4.5

Pricing Comparison

Price Comparison

MetricClaude Sonnet 4.5Grok 4Winner
Input (per 1M tokens)$3.00$3.00Tie
Output (per 1M tokens)$15.00$15.00Tie
Cache Read (per 1M)$0.30$0.75 Claude Sonnet 4.5
Cache Write (per 1M)$3.75N/A Claude Sonnet 4.5
Both models have similar overall pricing.

Claude Sonnet 4.5 Providers

No provider data available

Grok 4 Providers

No provider data available

Benchmark Comparison

8
Benchmarks Compared
0
Claude Sonnet 4.5 Wins
6
Grok 4 Wins

Benchmark Scores

BenchmarkClaude Sonnet 4.5Grok 4Winner
Intelligence Index
Overall intelligence score
37.141.5
Coding Index
Code generation & understanding
33.540.5
Math Index
Mathematical reasoning
37.092.7
MMLU Pro
Academic knowledge
86.086.6
GPQA
Graduate-level science
72.787.7
LiveCodeBench
Competitive programming
59.081.9
Aider
Real-world code editing
-79.6-
AIME
Competition math
-94.3-
Grok 4 significantly outperforms in coding benchmarks.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
Claude Sonnet 4.5
Other models

Context & Performance

Context Window

Claude Sonnet 4.5
1,000,000
tokens
Grok 4
256,000
tokens
Claude Sonnet 4.5 has a 74% larger context window.

Speed Performance

MetricClaude Sonnet 4.5Grok 4Winner
Tokens/second47.8 tok/s43.0 tok/s
Time to First Token1.25s11.46s
Claude Sonnet 4.5 responds 11% faster on average.

Capabilities

Feature Comparison

FeatureClaude Sonnet 4.5Grok 4
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyClaude Sonnet 4.5Grok 4
LicenseProprietaryProprietary
AuthorAnthropicXai
ReleasedSep 2025Jul 2025

Claude Sonnet 4.5 Modalities

Input
textimagefile
Output
text

Grok 4 Modalities

Input
imagetext
Output
text

Related Comparisons

Compare Claude Sonnet 4.5 with:

Compare Grok 4 with:

Frequently Asked Questions

Claude Sonnet 4.5 has cheaper input pricing at $3.00/M tokens. Claude Sonnet 4.5 has cheaper output pricing at $15.00/M tokens.
Grok 4 scores higher on coding benchmarks with a score of 40.5, compared to Claude Sonnet 4.5's score of 33.5.
Claude Sonnet 4.5 has a 1,000,000 token context window, while Grok 4 has a 256,000 token context window.
Claude Sonnet 4.5 supports vision. Grok 4 supports vision.