The AI arena is free today

Open Superagent

Codestral-22B vs Phi 4

Codestral-22B and Phi 4 are closely matched at -0.5 and 4.8 on the LLM Stats Score.

Mistral AI · Microsoft · Updated for 2026

Which is better?

Codestral-22B and Phi 4 are closely matched on the overall LLM Stats Score at -0.5 and 4.8.

In the 1 individual benchmarks reported for both models, Phi 4 wins 1; this is a narrower head-to-head signal than the composite indexes.

Based on current LLM Stats indexes, shared benchmarks, pricing, and model metadata for 2026.

Choose Codestral-22B

  • you are already invested in the Mistral AI ecosystem

Choose Phi 4

  • you value its reported benchmark strengths — it wins 1 of 1 exact shared results
  • you want the most recent training data — it shipped Dec 2024

At a glance

The differences that matter most.

Core performance indexes
-0.5
#382
4.8
#351
-0.6
#373
6.0
#340
2.3
#276
3.3
#266
Cost, coverage & limits
Benchmark wins
0 of 1
1 of 1
Input price
— / M
$0.07 / M
Output price
— / M
$0.14 / M
Context window
—
16,384

Individual benchmarks

7 reported for Codestral-22B · 13 for Phi 4

1 shared

Codestral-22B outperforms in 0 benchmarks, while Phi 4 is better at 1 benchmark (HumanEval).

Phi 4 significantly outperforms across most benchmarks.

Fri Dec 04 2026 • llm-stats.com

Human preference

Blind head-to-head votes and playground preference scores

Model Size

Parameter count comparison

7.5B diff

Codestral-22B has 7.5B more parameters than Phi 4, making it 51.0% larger.

Mistral AI
Codestral-22B
22.2Bparameters
Microsoft
Phi 4
14.7Bparameters
22.2B
Codestral-22B
14.7B
Phi 4

Context Window

Maximum input and output token capacity

Only Phi 4 specifies input context (16,384 tokens). Only Phi 4 specifies output context (16,384 tokens).

Mistral AI
Codestral-22B
Input- tokens
Output- tokens
Microsoft
Phi 4
Input16,384 tokens
Output16,384 tokens
Fri Dec 04 2026 • llm-stats.com

License

Usage and distribution terms

Codestral-22B is licensed under MNPL-0.1, while Phi 4 uses MIT.

License differences may affect how you can use these models in commercial or open-source projects.

Codestral-22B

MNPL-0.1

Open weights

Phi 4

MIT

Open weights

Release Timeline

When each model was launched

Codestral-22B was released on 2024-05-29, while Phi 4 was released on 2024-12-12.

Phi 4 is 7 months newer than Codestral-22B.

Codestral-22B

May 29, 2024

2.5 years ago

Phi 4

Dec 12, 2024

2.0 years ago

6mo newer

Knowledge Cutoff

When training data ends

Phi 4 has a documented knowledge cutoff of 2024-06-01, while Codestral-22B's cutoff date is not specified.

We can confirm Phi 4's training data extends to 2024-06-01, but cannot make a direct comparison without Codestral-22B's cutoff date.

Codestral-22B

—

Phi 4

Jun 2024

Outputs Comparison

Notice missing or incorrect data?

Judge for yourself.

Run your own prompts against Codestral-22B and Phi 4 side-by-side, then vote on the output you prefer.

Codestral-22B
✓ Preferred
Phi 4
Open in Playground

FAQ

Common questions about Codestral-22B vs Phi 4.

Which is better, Codestral-22B or Phi 4?

Codestral-22B and Phi 4 are closely matched on the LLM Stats Score at -0.5 and 4.8. Codestral-22B is made by Mistral AI and Phi 4 is made by Microsoft. The best choice depends on your use case — compare their capability indexes, individual benchmarks, pricing, and limits above.

How does Codestral-22B compare to Phi 4 in benchmarks?

Codestral-22B scores HumanEvalFIM-Average: 91.6%, HumanEval: 81.1%, MBPP: 78.2%, Spider: 63.5%, HumanEval-Average: 61.5%. Phi 4 scores MMLU: 84.8%, HumanEval+: 82.8%, HumanEval: 82.6%, MGSM: 80.6%, MATH: 80.4%.

What are the context window sizes for Codestral-22B and Phi 4?

Codestral-22B supports an unknown number of tokens and Phi 4 supports 16K tokens. A larger context window lets you process longer documents, conversations, or codebases in a single request.

What are the main differences between Codestral-22B and Phi 4?

Key differences include LLM Stats Score (-0.5 vs 4.8), licensing (MNPL-0.1 vs MIT). See the full comparison above for benchmark-by-benchmark results.

Who makes Codestral-22B and Phi 4?

Codestral-22B is developed by Mistral AI and Phi 4 is developed by Microsoft.
Browse all model comparisons