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

Devstral 2 2512 vs Grok 4

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

Devstral 2 2512 wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Larger context window
  • Faster response time

Grok 4 wins:

  • Higher intelligence benchmark
  • Better at coding
  • Better at math
  • Supports vision
  • Has reasoning mode
Price Advantage
Devstral 2 2512
Benchmark Advantage
Grok 4
Context Window
Devstral 2 2512
Speed
Devstral 2 2512

Pricing Comparison

Price Comparison

MetricDevstral 2 2512Grok 4Winner
Input (per 1M tokens)$0.40$3.00 Devstral 2 2512
Output (per 1M tokens)$0.90$15.00 Devstral 2 2512
Cache Read (per 1M)$0.45$0.75 Devstral 2 2512
Using a 3:1 input/output ratio, Devstral 2 2512 is 91% cheaper overall.

Devstral 2 2512 Providers

No provider data available

Grok 4 Providers

No provider data available

Benchmark Comparison

8
Benchmarks Compared
0
Devstral 2 2512 Wins
6
Grok 4 Wins

Benchmark Scores

BenchmarkDevstral 2 2512Grok 4Winner
Intelligence Index
Overall intelligence score
22.041.5
Coding Index
Code generation & understanding
23.740.5
Math Index
Mathematical reasoning
36.792.7
MMLU Pro
Academic knowledge
76.286.6
GPQA
Graduate-level science
59.487.7
LiveCodeBench
Competitive programming
44.881.9
Aider
Real-world code editing
-79.6-
AIME
Competition math
-94.3-
Grok 4 significantly outperforms in coding benchmarks.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
Devstral 2 2512
Other models

Context & Performance

Context Window

Devstral 2 2512
262,144
tokens
Grok 4
256,000
tokens
Devstral 2 2512 has a 2% larger context window.

Speed Performance

MetricDevstral 2 2512Grok 4Winner
Tokens/second81.2 tok/s48.1 tok/s
Time to First Token0.39s10.29s
Devstral 2 2512 responds 69% faster on average.

Capabilities

Feature Comparison

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

License & Release

PropertyDevstral 2 2512Grok 4
LicenseOpen SourceProprietary
AuthorMistral AIXai
ReleasedDec 2025Jul 2025

Devstral 2 2512 Modalities

Input
text
Output
text

Grok 4 Modalities

Input
imagetext
Output
text

Related Comparisons

Compare Devstral 2 2512 with:

Compare Grok 4 with:

Frequently Asked Questions

Devstral 2 2512 has cheaper input pricing at $0.40/M tokens. Devstral 2 2512 has cheaper output pricing at $0.90/M tokens.
Grok 4 scores higher on coding benchmarks with a score of 40.5, compared to Devstral 2 2512's score of 23.7.
Devstral 2 2512 has a 262,144 token context window, while Grok 4 has a 256,000 token context window.
Devstral 2 2512 does not support vision. Grok 4 supports vision.