Model Comparison

Codestral-22B vs GPT-4o miniWhich is better in 2026?

GPT-4o mini significantly outperforms across most benchmarks.

Verdict: Codestral-22B vs GPT-4o mini — which is better?

Codestral-22B (by Mistral AI) and GPT-4o mini (by OpenAI) are two of the AI models people compare most. Here is how they stack up on benchmarks, price and capabilities, and which one to pick in 2026.

Codestral-22B outperforms in 0 benchmarks, while GPT-4o mini is better at 1 benchmark (HumanEval). GPT-4o mini significantly outperforms across most benchmarks.

Choose Codestral-22B if…

  • you need open weights you can self-host or fine-tune

Choose GPT-4o mini if…

  • you want the strongest raw capability — it leads on 1 of 1 shared benchmarks
  • you want the most recent training data — it shipped Jul 2024

Performance Benchmarks

Comparative analysis across standard metrics

1 benchmarks

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

GPT-4o mini significantly outperforms across most benchmarks.

Sat Jun 13 2026 • llm-stats.com

Arena Performance

Human preference votes

Context Window

Maximum input and output token capacity

Only GPT-4o mini specifies input context (128,000 tokens). Only GPT-4o mini specifies output context (16,384 tokens).

Mistral AI
Codestral-22B
Input- tokens
Output- tokens
OpenAI
GPT-4o mini
Input128,000 tokens
Output16,384 tokens
Sat Jun 13 2026 • llm-stats.com

Input Capabilities

Supported data types and modalities

GPT-4o mini supports multimodal inputs, whereas Codestral-22B does not.

GPT-4o mini can handle both text and other forms of data like images, making it suitable for multimodal applications.

Codestral-22B

Text
Images
Audio
Video

GPT-4o mini

Text
Images
Audio
Video

License

Usage and distribution terms

Codestral-22B is licensed under MNPL-0.1, while GPT-4o mini uses a proprietary license.

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

Codestral-22B

MNPL-0.1

Open weights

GPT-4o mini

Proprietary

Closed source

Release Timeline

When each model was launched

Codestral-22B was released on 2024-05-29, while GPT-4o mini was released on 2024-07-18.

GPT-4o mini is 2 months newer than Codestral-22B.

Codestral-22B

May 29, 2024

2.0 years ago

GPT-4o mini

Jul 18, 2024

1.9 years ago

1mo newer

Knowledge Cutoff

When training data ends

GPT-4o mini has a documented knowledge cutoff of 2023-10-01, while Codestral-22B's cutoff date is not specified.

We can confirm GPT-4o mini's training data extends to 2023-10-01, but cannot make a direct comparison without Codestral-22B's cutoff date.

Codestral-22B

GPT-4o mini

Oct 2023

Outputs Comparison

Notice missing or incorrect data?Start an Issue discussion

Key Takeaways

Has open weights
Larger context window (128,000 tokens)
Supports multimodal inputs
Higher HumanEval score (87.2% vs 81.1%)

Detailed Comparison

AI Model Comparison Table
Feature
Mistral AI
Codestral-22B
OpenAI
GPT-4o mini

FAQ

Common questions about Codestral-22B vs GPT-4o mini.

Which is better, Codestral-22B or GPT-4o mini?

GPT-4o mini significantly outperforms across most benchmarks. Codestral-22B is made by Mistral AI and GPT-4o mini is made by OpenAI. The best choice depends on your use case — compare their benchmark scores, pricing, and capabilities above.

How does Codestral-22B compare to GPT-4o mini in benchmarks?

Codestral-22B scores HumanEvalFIM-Average: 91.6%, HumanEval: 81.1%, MBPP: 78.2%, Spider: 63.5%, HumanEval-Average: 61.5%. GPT-4o mini scores HumanEval: 87.2%, MGSM: 87.0%, MMLU: 82.0%, DROP: 79.7%, MATH: 70.2%.

What are the context window sizes for Codestral-22B and GPT-4o mini?

Codestral-22B supports an unknown number of tokens and GPT-4o mini supports 128K 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 GPT-4o mini?

Key differences include multimodal support (no vs yes), licensing (MNPL-0.1 vs Proprietary). See the full comparison above for benchmark-by-benchmark results.

Who makes Codestral-22B and GPT-4o mini?

Codestral-22B is developed by Mistral AI and GPT-4o mini is developed by OpenAI.