The AI arena is free today

Open Superagent

Codestral-22B vs GPT-4.1

GPT-4.1 leads the LLM Stats Score 18.3 to 0.2.

Mistral AI · OpenAI · Updated for 2026

Which is better?

GPT-4.1 leads the overall LLM Stats Score 18.3 to 0.2, ranking #202 overall.

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

Choose Codestral-22B

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

Choose GPT-4.1

  • overall performance matters — it scores 18.3 and ranks #202 on LLM Stats
  • your work emphasizes reasoning — it leads those capability indexes
  • you want the most recent training data — it shipped Apr 2025

At a glance

The differences that matter most.

Core performance indexes
0.2
#313
18.3
#202
0.1
#306
18.7
#194
2.5
#217
5.3
#194
Cost, coverage & limits
Benchmark wins
Input price
— / M
$2.00 / M
Output price
— / M
$8.00 / M
Context window
1,047,576

Individual benchmarks

7 reported for Codestral-22B · 29 for GPT-4.1

No common benchmarks found

Codestral-22B and GPT-4.1don't have any common benchmark datasets to compare. They may have been evaluated on different testing suites.

Human preference

Blind head-to-head votes and playground preference scores

Context Window

Maximum input and output token capacity

Only GPT-4.1 specifies input context (1,047,576 tokens). Only GPT-4.1 specifies output context (32,768 tokens).

Mistral AI
Codestral-22B
Input- tokens
Output- tokens
OpenAI
GPT-4.1
Input1,047,576 tokens
Output32,768 tokens
Thu Sep 03 2026 • llm-stats.com

Input capabilities

Documented input modalities across available providers

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

GPT-4.1 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.1

Text
Images
Audio
Video

License

Usage and distribution terms

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

Proprietary

Closed source

Release Timeline

When each model was launched

Codestral-22B was released on 2024-05-29, while GPT-4.1 was released on 2025-04-14.

GPT-4.1 is 11 months newer than Codestral-22B.

Codestral-22B

May 29, 2024

2.3 years ago

GPT-4.1

Apr 14, 2025

1.4 years ago

10mo newer

Knowledge Cutoff

When training data ends

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

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

Codestral-22B

GPT-4.1

Jun 2024

Outputs Comparison

Notice missing or incorrect data?Start an Issue discussion

Judge for yourself.

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

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

FAQ

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

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

GPT-4.1 leads the LLM Stats Score 18.3 to 0.2. Codestral-22B is made by Mistral AI and GPT-4.1 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.1 in benchmarks?

Codestral-22B scores HumanEvalFIM-Average: 91.6%, HumanEval: 81.1%, MBPP: 78.2%, Spider: 63.5%, HumanEval-Average: 61.5%. GPT-4.1 scores MMLU: 90.2%, CharXiv-D: 87.9%, IFEval: 87.4%, MMMLU: 87.3%, MMMU: 74.8%.

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

Codestral-22B supports an unknown number of tokens and GPT-4.1 supports 1.0M 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.1?

Key differences include LLM Stats Score (0.2 vs 18.3), 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.1?

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