Price Per TokenPrice Per Token
Anthropic
Anthropic
vs
Xai
Xai

Claude 3.7 Sonnet vs Grok 4

A detailed comparison of pricing, benchmarks, and capabilities

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

OpenClaw

Deploy OpenClaw in Under 1 Minute We handle hosting, scaling, and maintenance

Key Takeaways

Claude 3.7 Sonnet wins:

  • No clear advantages in compared metrics

Grok 4 wins:

  • Larger context window
  • Faster response time
  • Higher intelligence benchmark
  • Better at coding
  • Better at math
Price Advantage
Claude 3.7 Sonnet
Benchmark Advantage
Grok 4
Context Window
Grok 4
Speed
Grok 4

Pricing Comparison

Benchmark Comparison

Context & Performance

Capabilities

Feature Comparison

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

License & Release

PropertyClaude 3.7 SonnetGrok 4
LicenseProprietaryProprietary
AuthorAnthropicXai
ReleasedFeb 2025Jul 2025

Claude 3.7 Sonnet Modalities

Input
textimagefile
Output
text

Grok 4 Modalities

Input
imagetext
Output
text

Related Comparisons

Compare Claude 3.7 Sonnet with:

Compare Grok 4 with:

Frequently Asked Questions

Claude 3.7 Sonnet has cheaper input pricing at $3.00/M tokens. Claude 3.7 Sonnet 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 3.7 Sonnet's score of 26.7.
Claude 3.7 Sonnet has a 200,000 token context window, while Grok 4 has a 256,000 token context window.
Claude 3.7 Sonnet supports vision. Grok 4 supports vision.