Price Per TokenPrice Per Token
Mistral AI
Mistral AI
vs
Xai
Xai

Codestral 2508 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

Codestral 2508 wins:

  • Cheaper input tokens
  • Cheaper output tokens

Grok 4 wins:

  • Faster response time
  • Higher intelligence benchmark
  • Better at coding
  • Better at math
  • Supports vision
  • Has reasoning mode
Price Advantage
Codestral 2508
Benchmark Advantage
Grok 4
Context Window
Grok 4
Speed
Grok 4

Pricing Comparison

Price Comparison

MetricCodestral 2508Grok 4Winner
Input (per 1M tokens)$0.30$3.00 Codestral 2508
Output (per 1M tokens)$0.90$15.00 Codestral 2508
Cache Read (per 1M)N/A$0.75 Grok 4
Using a 3:1 input/output ratio, Codestral 2508 is 93% cheaper overall.

Codestral 2508 Providers

No provider data available

Grok 4 Providers

No provider data available

Benchmark Comparison

8
Benchmarks Compared
0
Codestral 2508 Wins
1
Grok 4 Wins

Benchmark Scores

BenchmarkCodestral 2508Grok 4Winner
Intelligence Index
Overall intelligence score
-41.5-
Coding Index
Code generation & understanding
-40.5-
Math Index
Mathematical reasoning
-92.7-
MMLU Pro
Academic knowledge
-86.6-
GPQA
Graduate-level science
-87.7-
LiveCodeBench
Competitive programming
-81.9-
Aider
Real-world code editing
11.179.6
AIME
Competition math
-94.3-
Grok 4 significantly outperforms in coding benchmarks.

Cost vs Quality

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

Context & Performance

Context Window

Codestral 2508
256,000
tokens
Grok 4
256,000
tokens

Speed Performance

MetricCodestral 2508Grok 4Winner
Tokens/secondN/A40.4 tok/s
Time to First TokenN/A11.45s

Capabilities

Feature Comparison

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

License & Release

PropertyCodestral 2508Grok 4
LicenseOpen SourceProprietary
AuthorMistral AIXai
ReleasedAug 2025Jul 2025

Codestral 2508 Modalities

Input
text
Output
text

Grok 4 Modalities

Input
imagetext
Output
text

Related Comparisons

Compare Codestral 2508 with:

Compare Grok 4 with:

Frequently Asked Questions

Codestral 2508 has cheaper input pricing at $0.30/M tokens. Codestral 2508 has cheaper output pricing at $0.90/M tokens.
Grok 4 scores higher on coding benchmarks with a score of 40.5, compared to Codestral 2508's score of N/A.
Codestral 2508 has a 256,000 token context window, while Grok 4 has a 256,000 token context window.
Codestral 2508 does not support vision. Grok 4 supports vision.