Mistral Medium vs Codestral

Performance benchmarks + pricing comparison — updated April 2026

Mistral Medium

Mistral

Mid-tier Mistral model between Small and Large. Strong coding capability at a moderate price point.

Input$0.400/M
Output$2.00/M
Context128K tokens
Best ForDay-to-day coding, mid-complexity tasks, cost-performance balance

Codestral

Mistral

Mistral's dedicated coding model. Open-weight and highly optimized for code generation and completion.

Input$0.300/M
Output$0.900/M
Context128K tokens
Best ForCode completion, code generation, IDE integration
Benchmark60/100

Cost Comparison by Scenario

Estimated cost per project with 30% cache hit rate. Actual costs may vary based on usage patterns.

ScenarioMistral MediumCodestralSavings
Small Script (1K lines) $0.07 $0.04 Codestral saves $0.04 (49%)
Medium Feature (10K lines) $0.54 $0.29 Codestral saves $0.26 (47%)
Large Project (50K lines) $2.70 $1.43 Codestral saves $1.28 (47%)
Code Review (5K lines) $0.12 $0.07 Codestral saves $0.04 (38%)

Verdict

Codestral wins on both price and performance — $0.300/M input with a benchmark score of N/A/100.

For most developers, this is the clear choice between these two models.

Compare with Other Models