The AI arena is free today

Open Superagent

Codestral-22B vs GPT-4

Codestral-22B and GPT-4 are closely matched at 0.0 and 3.0 on the LLM Stats Score.

Mistral AI · OpenAI · Updated for 2026

Which is better?

Codestral-22B and GPT-4 are closely matched on the overall LLM Stats Score at 0.0 and 3.0.

In the 1 individual benchmarks reported for both models, Codestral-22B 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 value its reported benchmark strengths — it wins 1 of 1 exact shared results
  • you want the most recent training data — it shipped May 2024
  • you need open weights you can self-host or fine-tune

Choose GPT-4

  • you want predictable pricing at $30.00/M input and $60.00/M output

At a glance

The differences that matter most.

Core performance indexes
0.0
#325
3.0
#309
-0.1
#317
3.0
#301
2.5
#224
-5.2
#259
Cost, coverage & limits
Benchmark wins
1 of 1
0 of 1
Input price
— / M
$30.00 / M
Output price
— / M
$60.00 / M
Context window
32,768

Individual benchmarks

7 reported for Codestral-22B · 12 for GPT-4

1 shared

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

Codestral-22B significantly outperforms across most benchmarks.

Sun Sep 13 2026 • llm-stats.com

Human preference

Blind head-to-head votes and playground preference scores

Context Window

Maximum input and output token capacity

Only GPT-4 specifies input context (32,768 tokens). Only GPT-4 specifies output context (32,768 tokens).

Mistral AI
Codestral-22B
Input- tokens
Output- tokens
OpenAI
GPT-4
Input32,768 tokens
Output32,768 tokens
Sun Sep 13 2026 • llm-stats.com

Input capabilities

Documented input modalities across available providers

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

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

Codestral-22B

Text
Images
Audio
Video

GPT-4

Text
Images
Audio
Video

License

Usage and distribution terms

Codestral-22B is licensed under MNPL-0.1, while GPT-4 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-4

Proprietary

Closed source

Release Timeline

When each model was launched

Codestral-22B was released on 2024-05-29, while GPT-4 was released on 2023-06-13.

Codestral-22B is 12 months newer than GPT-4.

Codestral-22B

May 29, 2024

2.3 years ago

11mo newer
GPT-4

Jun 13, 2023

3.3 years ago

Knowledge Cutoff

When training data ends

GPT-4 has a documented knowledge cutoff of 2022-12-31, while Codestral-22B's cutoff date is not specified.

We can confirm GPT-4's training data extends to 2022-12-31, but cannot make a direct comparison without Codestral-22B's cutoff date.

Codestral-22B

GPT-4

Dec 2022

Outputs Comparison

Notice missing or incorrect data?Start an Issue discussion

Judge for yourself.

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

Codestral-22B
✓ Preferred
GPT-4
Open in Playground

FAQ

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

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

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

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

Codestral-22B scores HumanEvalFIM-Average: 91.6%, HumanEval: 81.1%, MBPP: 78.2%, Spider: 63.5%, HumanEval-Average: 61.5%. GPT-4 scores AI2 Reasoning Challenge (ARC): 96.3%, HellaSwag: 95.3%, Uniform Bar Exam: 90.0%, SAT Math: 89.0%, LSAT: 88.0%.

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

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

Key differences include LLM Stats Score (0.0 vs 3.0), 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-4?

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