ModelsCompareBest forBenchmarksStatusPricingAPI
Compare / head-to-head

CodestralvsPhi-4

Codestral leads 1 of 1 shared benchmark. Codestral has the larger context window (256K tokens).

Benchmarks from cited public sources; pricing from official pages; status from official provider feeds.

Shared benchmarks
1 – 0
Codestral leads
Cheaper per token
list price, input + output
Larger context
Codestral
256K tokens
Provider uptime (30d)
100% · —
Mistral AI · Microsoft
Codestral
Mistral AI · released 2025-01-13
text
Context
256K
Max out
Input /1M
$0.3
Output /1M
$0.9
Cached /1M
$0.03
Scores
1 · 1 core
Phi-4
Microsoft · released 2024-12-12
text
Context
16K
Max out
16K
Input /1M
Output /1M
Cached /1M
Scores
11 · 7 core
Quality

Benchmark matrix

BenchmarkCodestralPhi-4ΔEdge
Reported by both · 1
HumanEval86.6% 82.6% +4 ptCodestral
Only Codestral reports · 0
Codestral reports nothing Phi-4 does not.
Only Phi-4 reports · 9
GPQA Diamondnot reported56.1%
MMLUnot reported84.8%
MMLU-Pronot reported70.4%
LMArena Elonot reported1216.6
ArenaHardnot reported75.4%
HumanEval+not reported82.8%
IFEvalnot reported63%
MATHnot reported80.4%
OTIS Mock AIME 2024-2025 (Epoch AI run)not reported13.8% epoch
Scores tagged "epoch" or "matharena" are independent runs, used only where the lab has not published its own; ⚠ marks rows MathArena flags as released after the competition. Higher is better on every row. Δ is Codestral minus Phi-4 in the benchmark's own unit. "Not reported" means the lab has not published that figure; it is not a zero. ↗ opens the source.
Specs & pricing

Side by side

SpecCodestralPhi-4Edge
Context window256K tokens16K tokensCodestral
Max output16K tokens
Input price / 1M$0.3
Output price / 1M$0.9
Cached input / 1M$0.03
Input + output / 1M
Lower is cheaper. List prices; batch, tool and regional fees excluded.
$1.2
ModalitiestexttextTie
Released2025-01-132024-12-12
Cited benchmark scores111
Reliability

Provider status

All providers
Built by Respan
Which one wins on your data?

Public benchmarks are a starting point. Run Codestral and Phi-4 on your own prompts with Respan evals, or route to either through one gateway key with automatic failover.