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

Codestral 2508 vs Mistral Medium 3.1

A detailed comparison of pricing, benchmarks, and capabilities

OpenClaw

Best LLMs for OpenClaw Vote for which model works best with OpenClaw

112 out of our 301 tracked models have had a price change in February.

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

Key Takeaways

Codestral 2508 wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Larger context window

Mistral Medium 3.1 wins:

  • Faster response time
  • Higher intelligence benchmark
  • Better at coding
  • Better at math
  • Supports vision
Price Advantage
Codestral 2508
Benchmark Advantage
Mistral Medium 3.1
Context Window
Codestral 2508
Speed
Mistral Medium 3.1

Pricing Comparison

Price Comparison

MetricCodestral 2508Mistral Medium 3.1Winner
Input (per 1M tokens)$0.30$0.40 Codestral 2508
Output (per 1M tokens)$0.90$2.00 Codestral 2508
Using a 3:1 input/output ratio, Codestral 2508 is 44% cheaper overall.

Codestral 2508 Providers

Mistral $0.30 (Cheapest)

Mistral Medium 3.1 Providers

Mistral $0.40 (Cheapest)

Benchmark Comparison

7
Benchmarks Compared
0
Codestral 2508 Wins
0
Mistral Medium 3.1 Wins

Benchmark Scores

BenchmarkCodestral 2508Mistral Medium 3.1Winner
Intelligence Index
Overall intelligence score
-21.1-
Coding Index
Code generation & understanding
-18.3-
Math Index
Mathematical reasoning
-38.3-
MMLU Pro
Academic knowledge
-68.3-
GPQA
Graduate-level science
-58.8-
LiveCodeBench
Competitive programming
-40.6-
Aider
Real-world code editing
11.1--
Mistral Medium 3.1 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
Mistral Medium 3.1
131,072
tokens
Codestral 2508 has a 49% larger context window.

Speed Performance

MetricCodestral 2508Mistral Medium 3.1Winner
Tokens/secondN/A97.3 tok/s
Time to First TokenN/A0.36s

Capabilities

Feature Comparison

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

License & Release

PropertyCodestral 2508Mistral Medium 3.1
LicenseOpen SourceProprietary
AuthorMistral AIMistral AI
ReleasedAug 2025Aug 2025

Codestral 2508 Modalities

Input
text
Output
text

Mistral Medium 3.1 Modalities

Input
textimage
Output
text

Related Comparisons

Compare Codestral 2508 with:

Compare Mistral Medium 3.1 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.
Mistral Medium 3.1 scores higher on coding benchmarks with a score of 18.3, compared to Codestral 2508's score of N/A.
Codestral 2508 has a 256,000 token context window, while Mistral Medium 3.1 has a 131,072 token context window.
Codestral 2508 does not support vision. Mistral Medium 3.1 supports vision.