Price Per TokenPrice Per Token
Anthropic
Anthropic
vs
Xai
Xai

Claude Sonnet 4.6 vs Grok 4

A detailed comparison of pricing, benchmarks, and capabilities

Best Coding Model Leaderboard Find the top LLM for coding by benchmarks and community votes

114 out of our 298 tracked models have had a price change in February.

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

Key Takeaways

Claude Sonnet 4.6 wins:

  • Larger context window
  • Faster response time
  • Higher intelligence benchmark
  • Better at coding
  • Has reasoning mode

Grok 4 wins:

  • Better at math
Price Advantage
Claude Sonnet 4.6
Benchmark Advantage
Claude Sonnet 4.6
Context Window
Claude Sonnet 4.6
Speed
Claude Sonnet 4.6

Pricing Comparison

Price Comparison

MetricClaude Sonnet 4.6Grok 4Winner
Input (per 1M tokens)$3.00$3.00Tie
Output (per 1M tokens)$15.00$15.00Tie
Cache Read (per 1M)$300000.00$750000.00 Claude Sonnet 4.6
Cache Write (per 1M)$3750000.00N/A Claude Sonnet 4.6
Both models have similar overall pricing.

Claude Sonnet 4.6 Providers

Amazon Bedrock $3.00 (Cheapest)
Google $3.00 (Cheapest)
Anthropic $3.00 (Cheapest)

Grok 4 Providers

Vercel $3.00 (Cheapest)
xAI $3.00 (Cheapest)

Benchmark Comparison

8
Benchmarks Compared
2
Claude Sonnet 4.6 Wins
1
Grok 4 Wins

Benchmark Scores

BenchmarkClaude Sonnet 4.6Grok 4Winner
Intelligence Index
Overall intelligence score
44.341.4
Coding Index
Code generation & understanding
46.440.5
Math Index
Mathematical reasoning
-92.7-
MMLU Pro
Academic knowledge
-86.6-
GPQA
Graduate-level science
79.987.7
LiveCodeBench
Competitive programming
-81.9-
Aider
Real-world code editing
-79.6-
AIME
Competition math
-94.3-
Claude Sonnet 4.6 significantly outperforms in coding benchmarks.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
Other models

Context & Performance

Context Window

Claude Sonnet 4.6
1,000,000
tokens
Max output: 128,000 tokens
Grok 4
256,000
tokens
Claude Sonnet 4.6 has a 74% larger context window.

Speed Performance

MetricClaude Sonnet 4.6Grok 4Winner
Tokens/second56.3 tok/s38.1 tok/s
Time to First Token0.80s7.72s
Claude Sonnet 4.6 responds 47% faster on average.

Capabilities

Feature Comparison

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

License & Release

PropertyClaude Sonnet 4.6Grok 4
LicenseProprietaryProprietary
AuthorAnthropicXai
ReleasedFeb 2026Jul 2025

Claude Sonnet 4.6 Modalities

Input
textimage
Output
text

Grok 4 Modalities

Input
imagetext
Output
text

Related Comparisons

Compare Claude Sonnet 4.6 with:

Compare Grok 4 with:

Frequently Asked Questions

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