Model comparison

Codestral vs Phi-4

Codestral and Phi-4 score almost the same on the Noometry Index (30.1 vs 30.9), so choose on price, context window or the category you care about most.

Last verified . 2 shared benchmarks.

Codestral Mistral AI

30.1

Rank #287 Reported

Phi-4 Microsoft

30.9

Rank #269 Confirmed

Summary

  • They share 2 benchmarks with published results for both. Codestral scores higher in 1 category and Phi-4 in 1 category; 2 gaps are clear of the uncertainty.
  • The widest gap is in coding, where Phi-4 leads 33.8 to 26.9.
  • Phi-4 is cheaper at $0.07 / $0.14 per million input/output tokens, against $0.30 / $0.90 for Codestral.
  • Codestral accepts more context: 256K tokens versus 128K.

Side by side

Codestral and Phi-4 specifications
CodestralPhi-4
ProviderMistral AIMicrosoft
Noometry Index30.130.9
Released2024-05-292024-12-11
WeightsOpenOpen
Context window256K128K
Max output4K4K
Input $ / M tokens$0.30$0.07
Output $ / M tokens$0.90$0.14
Results tracked737

Sponsored placements are available on pages like this one. Advertise on Noometry

Category by category

Coding Phi-4 leads

Codestral: 26.9 (#316), Phi-4: 33.8 (#237)

Coding benchmarks
BenchmarkCodestralPhi-4
BigCodeBench Instruct41.8%45.5%
BigCodeBench Complete52.5%55.4%
Aider Polyglot11.1%—
LiveBench Coding—30.7%
LMArena Coding—1231
ALE-Bench137.78—
HumanEval+73.8%—
MBPP+61.9%—

Agentic & Tool Use Not comparable

Codestral: —, Phi-4: 22.6 (#120)

Agentic & Tool Use benchmarks
BenchmarkCodestralPhi-4
Berkeley Function Calling Leaderboard—28.8%
BALROG—11.6%

Reasoning Codestral leads

Codestral: 19.1 (#244), Phi-4: 17.0 (#287)

Reasoning benchmarks
BenchmarkCodestralPhi-4
Kagi LLM Benchmark32.5%—
Chess Puzzles—1%
LiveBench Reasoning—47.8%
LMArena Hard Prompts—1220
LiveBench Data Analysis—45.2%
Epoch Capabilities Index—130.43
LiveBench—41.6%

Math Not comparable

Codestral: —, Phi-4: 19.6 (#279)

Math benchmarks
BenchmarkCodestralPhi-4
OTIS Mock AIME 2024-2025—13.8%
LiveBench Math—42%
LMArena Math—1246
MATH Level 5—64.9%

Knowledge Not comparable

Codestral: —, Phi-4: 32.5 (#204)

Knowledge benchmarks
BenchmarkCodestralPhi-4
GPQA Diamond—56.1%
Confabulations—29.4%
Vectara Hallucination Rate—3.7%
LMArena Expert—1203
MMLU—84.8%

Multilingual Not comparable

Codestral: —, Phi-4: 37.4 (#232)

Multilingual benchmarks
BenchmarkCodestralPhi-4
LMArena Non-English—1197
LMArena Chinese—1211
LMArena French—1223
LMArena German—1222
LMArena Japanese—1158
LMArena Korean—1151
LMArena Russian—1209
LMArena Spanish—1234

Instruction Following Not comparable

Codestral: —, Phi-4: 60.6 (#246)

Instruction Following benchmarks
BenchmarkCodestralPhi-4
LiveBench Instruction Following—58.4%
LMArena Instruction Following—1201

Long Context Not comparable

Codestral: —, Phi-4: 36.9 (#221)

Long Context benchmarks
BenchmarkCodestralPhi-4
LMArena Longer Query—1217

Writing & Preference Not comparable

Codestral: —, Phi-4: 40.7 (#239)

Writing & Preference benchmarks
BenchmarkCodestralPhi-4
LMArena Text—1217
LMArena Creative Writing—1182
Short-Story Creative Writing—62.6%
LMArena Multi-Turn—1206
LiveBench Language—25.6%

Frequently asked questions

Is Codestral better than Phi-4?

Codestral and Phi-4 score almost the same on the Noometry Index (30.1 vs 30.9), so choose on price, context window or the category you care about most.

Which is cheaper, Codestral or Phi-4?

Phi-4 is cheaper. It lists at $0.07 per million input tokens and $0.14 per million output tokens; Codestral lists at $0.30 and $0.90.

Is Codestral or Phi-4 better for coding?

Phi-4 scores higher on coding benchmarks: 33.8 versus 26.9 in the Noometry coding category.

Which has the bigger context window?

Codestral does, with 256K tokens against 128K.

How many benchmarks do Codestral and Phi-4 share?

2 benchmarks have published results for both models. Codestral has 7 scored results on Noometry and Phi-4 has 37.

Related comparisons

Go deeper