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

Devstral Medium 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

Devstral Medium wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Faster response time

Grok 4 wins:

  • Larger context window
  • Higher intelligence benchmark
  • Better at coding
  • Better at math
  • Supports vision
  • Has reasoning mode
Price Advantage
Devstral Medium
Benchmark Advantage
Grok 4
Context Window
Grok 4
Speed
Devstral Medium

Pricing Comparison

Price Comparison

MetricDevstral MediumGrok 4Winner
Input (per 1M tokens)$0.40$3.00 Devstral Medium
Output (per 1M tokens)$2.00$15.00 Devstral Medium
Cache Read (per 1M)N/A$0.75 Grok 4
Using a 3:1 input/output ratio, Devstral Medium is 87% cheaper overall.

Devstral Medium Providers

No provider data available

Grok 4 Providers

No provider data available

Benchmark Comparison

8
Benchmarks Compared
0
Devstral Medium Wins
7
Grok 4 Wins

Benchmark Scores

BenchmarkDevstral MediumGrok 4Winner
Intelligence Index
Overall intelligence score
18.741.5
Coding Index
Code generation & understanding
15.940.5
Math Index
Mathematical reasoning
4.792.7
MMLU Pro
Academic knowledge
70.886.6
GPQA
Graduate-level science
49.287.7
LiveCodeBench
Competitive programming
33.781.9
Aider
Real-world code editing
-79.6-
AIME
Competition math
6.794.3
Grok 4 significantly outperforms in coding benchmarks.

Cost vs Quality

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

Context & Performance

Context Window

Devstral Medium
131,072
tokens
Grok 4
256,000
tokens
Grok 4 has a 49% larger context window.

Speed Performance

MetricDevstral MediumGrok 4Winner
Tokens/second138.3 tok/s39.5 tok/s
Time to First Token0.44s11.45s
Devstral Medium responds 250% faster on average.

Capabilities

Feature Comparison

FeatureDevstral MediumGrok 4
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyDevstral MediumGrok 4
LicenseOpen SourceProprietary
AuthorMistral AIXai
ReleasedJul 2025Jul 2025

Devstral Medium Modalities

Input
text
Output
text

Grok 4 Modalities

Input
imagetext
Output
text

Related Comparisons

Compare Devstral Medium with:

Compare Grok 4 with:

Frequently Asked Questions

Devstral Medium has cheaper input pricing at $0.40/M tokens. Devstral Medium has cheaper output pricing at $2.00/M tokens.
Grok 4 scores higher on coding benchmarks with a score of 40.5, compared to Devstral Medium's score of 15.9.
Devstral Medium has a 131,072 token context window, while Grok 4 has a 256,000 token context window.
Devstral Medium does not support vision. Grok 4 supports vision.