Anthropic
Anthropic
vs
xAI
xAI

Claude Sonnet 4 vs Grok 4

A detailed comparison of pricing, benchmarks, and capabilities

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

Key Takeaways

Claude Sonnet 4 wins:

  • No clear advantages in compared metrics

Grok 4 wins:

  • Larger context window
Price Advantage
Claude Sonnet 4
Benchmark Advantage
Claude Sonnet 4
Context Window
Grok 4
Speed
N/A

Pricing Comparison

Benchmark Comparison

Context & Performance

Capabilities

Feature Comparison

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

License & Release

PropertyClaude Sonnet 4Grok 4
LicenseProprietaryProprietary
AuthorAnthropicxAI
ReleasedMay 2025Jul 2025

Claude Sonnet 4 Modalities

Input
imagetextfile
Output
text

Grok 4 Modalities

Input
imagetext
Output
text

Frequently Asked Questions

Claude Sonnet 4 has cheaper input pricing at $3.00/M tokens. Claude Sonnet 4 has cheaper output pricing at $15.00/M tokens.
Claude Sonnet 4 has a 200,000 token context window, while Grok 4 has a 256,000 token context window.
Claude Sonnet 4 supports vision. Grok 4 supports vision.