Price Per TokenPrice Per Token
Anthropic
Anthropic
vs
Xai
Xai

Claude Sonnet 4.6 vs Grok Code Fast 1

A detailed comparison of pricing, benchmarks, and capabilities

108 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.6 wins:

  • Larger context window
  • Higher intelligence benchmark
  • Better at coding
  • Supports vision

Grok Code Fast 1 wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Faster response time
  • Better at math
Price Advantage
Grok Code Fast 1
Benchmark Advantage
Claude Sonnet 4.6
Context Window
Claude Sonnet 4.6
Speed
Grok Code Fast 1

Pricing Comparison

Price Comparison

MetricClaude Sonnet 4.6Grok Code Fast 1Winner
Input (per 1M tokens)$3.00$0.20 Grok Code Fast 1
Output (per 1M tokens)$15.00$1.50 Grok Code Fast 1
Cache Read (per 1M)$0.30$0.02 Grok Code Fast 1
Cache Write (per 1M)$3.75N/A Claude Sonnet 4.6
Using a 3:1 input/output ratio, Grok Code Fast 1 is 91% cheaper overall.

Claude Sonnet 4.6 Providers

No provider data available

Grok Code Fast 1 Providers

No provider data available

Benchmark Comparison

6
Benchmarks Compared
3
Claude Sonnet 4.6 Wins
0
Grok Code Fast 1 Wins

Benchmark Scores

BenchmarkClaude Sonnet 4.6Grok Code Fast 1Winner
Intelligence Index
Overall intelligence score
42.628.7
Coding Index
Code generation & understanding
43.023.7
Math Index
Mathematical reasoning
-43.3-
MMLU Pro
Academic knowledge
-79.3-
GPQA
Graduate-level science
79.772.7
LiveCodeBench
Competitive programming
-65.7-
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
Grok Code Fast 1
256,000
tokens
Claude Sonnet 4.6 has a 74% larger context window.

Speed Performance

MetricClaude Sonnet 4.6Grok Code Fast 1Winner
Tokens/second56.7 tok/s171.7 tok/s
Time to First Token1.07s3.27s
Grok Code Fast 1 responds 203% faster on average.

Capabilities

Feature Comparison

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

License & Release

PropertyClaude Sonnet 4.6Grok Code Fast 1
LicenseProprietaryProprietary
AuthorAnthropicXai
ReleasedFeb 2026Aug 2025

Claude Sonnet 4.6 Modalities

Input
textimage
Output
text

Grok Code Fast 1 Modalities

Input
text
Output
text

Related Comparisons

Compare Claude Sonnet 4.6 with:

Compare Grok Code Fast 1 with:

Frequently Asked Questions

Grok Code Fast 1 has cheaper input pricing at $0.20/M tokens. Grok Code Fast 1 has cheaper output pricing at $1.50/M tokens.
Claude Sonnet 4.6 scores higher on coding benchmarks with a score of 43.0, compared to Grok Code Fast 1's score of 23.7.
Claude Sonnet 4.6 has a 1,000,000 token context window, while Grok Code Fast 1 has a 256,000 token context window.
Claude Sonnet 4.6 supports vision. Grok Code Fast 1 does not support vision.