The AI arena is free today

Open Superagent

GPT-4.1 vs GPT-5.1 Codex Mini

GPT-4.1 significantly outperforms across most benchmarks. GPT-5.1 Codex Mini is 5.1x cheaper per token.

OpenAI · OpenAI · Updated for 2026

Which is better?

GPT-4.1 outperforms in 1 benchmarks (AIME 2025), while GPT-5.1 Codex Mini is better at 0 benchmarks. GPT-4.1 significantly outperforms across most benchmarks.

On price, GPT-5.1 Codex Mini is roughly 5.1x cheaper per token on a blended 3:1 input/output basis, which adds up quickly at production volume.

GPT-4.1 also accepts a larger context window (1,047,576 input tokens), making it the stronger choice for long documents and large codebases.

Based on current benchmark, pricing, and model metadata for 2026.

Choose GPT-4.1

  • you want the strongest raw capability — it leads on 1 of 1 shared benchmarks
  • you process long inputs — it offers a 1,047,576 token context window

Choose GPT-5.1 Codex Mini

  • cost matters — it's about 5.1x cheaper per token
  • you want the most recent training data — it shipped Nov 2025

At a glance

The differences that matter most.

Benchmark wins
1 of 1
0 of 1
Input price
$2.00 / M
$0.25 / M
Output price
$8.00 / M
$2.00 / M
Context window
1,047,576
400,000
Released
Apr 2025
Nov 2025
License
Proprietary
Proprietary

Performance Benchmarks

Comparative analysis across standard metrics

1 benchmarks

GPT-4.1 outperforms in 1 benchmarks (AIME 2025), while GPT-5.1 Codex Mini is better at 0 benchmarks.

GPT-4.1 significantly outperforms across most benchmarks.

Wed Aug 26 2026 • llm-stats.com

Arena Performance

Playground indexes and blind preference scores

Pricing Analysis

Price comparison per million tokens

GPT-5.1 Codex Mini costs less

For input processing, GPT-4.1 ($2.00/1M tokens) is 8.0x more expensive than GPT-5.1 Codex Mini ($0.25/1M tokens).

For output processing, GPT-4.1 ($8.00/1M tokens) is 4.0x more expensive than GPT-5.1 Codex Mini ($2.00/1M tokens).

In conclusion, GPT-4.1 is more expensive than GPT-5.1 Codex Mini.*

* Using a 3:1 ratio of input to output tokens

Lowest available price from all providers
Wed Aug 26 2026 • llm-stats.com
OpenAI
GPT-4.1
Input tokens$2.00
Output tokens$8.00
Best providerOpenAI
OpenAI
GPT-5.1 Codex Mini
Input tokens$0.25
Output tokens$2.00
Best providerOpenAI
Notice missing or incorrect data?Start an Issue

Context Window

Maximum input and output token capacity

GPT-4.1 accepts 1,047,576 input tokens compared to GPT-5.1 Codex Mini's 400,000 tokens. GPT-5.1 Codex Mini can generate longer responses up to 128,000 tokens, while GPT-4.1 is limited to 32,768 tokens.

OpenAI
GPT-4.1
Input1,047,576 tokens
Output32,768 tokens
OpenAI
GPT-5.1 Codex Mini
Input400,000 tokens
Output128,000 tokens
Wed Aug 26 2026 • llm-stats.com

Input Capabilities

Supported data types and modalities

Both GPT-4.1 and GPT-5.1 Codex Mini support multimodal inputs.

They are both capable of processing various types of data, offering versatility in application.

GPT-4.1

Text
Images
Audio
Video

GPT-5.1 Codex Mini

Text
Images
Audio
Video

License

Usage and distribution terms

Both models are licensed under proprietary licenses.

Both models have usage restrictions defined by their respective organizations.

GPT-4.1

Proprietary

Closed source

GPT-5.1 Codex Mini

Proprietary

Closed source

Release Timeline

When each model was launched

GPT-4.1 was released on 2025-04-14, while GPT-5.1 Codex Mini was released on 2025-11-12.

GPT-5.1 Codex Mini is 7 months newer than GPT-4.1.

GPT-4.1

Apr 14, 2025

1.4 years ago

GPT-5.1 Codex Mini

Nov 12, 2025

9 months ago

7mo newer

Knowledge Cutoff

When training data ends

GPT-4.1 has a documented knowledge cutoff of 2024-06-01, while GPT-5.1 Codex Mini'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 GPT-5.1 Codex Mini's cutoff date.

GPT-4.1

Jun 2024

GPT-5.1 Codex Mini

Provider Availability

GPT-4.1 is available from OpenAI. GPT-5.1 Codex Mini is available from OpenAI.

GPT-4.1

openai logo
OpenAI
Input Price:Input: $2.00/1MOutput Price:Output: $8.00/1M

GPT-5.1 Codex Mini

openai logo
OpenAI
Input Price:Input: $0.25/1MOutput Price:Output: $2.00/1M
* Prices shown are per million tokens

Outputs Comparison

Notice missing or incorrect data?Start an Issue discussion

Judge for yourself.

Run your own prompts against GPT-4.1 and GPT-5.1 Codex Mini side-by-side, then vote on the output you prefer.

GPT-4.1
✓ Preferred
GPT-5.1 Codex Mini
Open in Playground

FAQ

Common questions about GPT-4.1 vs GPT-5.1 Codex Mini.

Which is better, GPT-4.1 or GPT-5.1 Codex Mini?

GPT-4.1 significantly outperforms across most benchmarks. GPT-4.1 is made by OpenAI and GPT-5.1 Codex Mini is made by OpenAI. The best choice depends on your use case — compare their benchmark scores, pricing, and capabilities above.

How does GPT-4.1 compare to GPT-5.1 Codex Mini in benchmarks?

GPT-4.1 scores MMLU: 90.2%, CharXiv-D: 87.9%, IFEval: 87.4%, MMMLU: 87.3%, MMMU: 74.8%. GPT-5.1 Codex Mini scores AIME 2025: 42.1%.

Is GPT-4.1 cheaper than GPT-5.1 Codex Mini?

GPT-5.1 Codex Mini is 8.0x cheaper for input tokens. GPT-4.1 costs $2.00/M input and $8.00/M output via openai. GPT-5.1 Codex Mini costs $0.25/M input and $2.00/M output via openai.

What are the context window sizes for GPT-4.1 and GPT-5.1 Codex Mini?

GPT-4.1 supports 1.0M tokens and GPT-5.1 Codex Mini supports 400K tokens. A larger context window lets you process longer documents, conversations, or codebases in a single request.

What are the main differences between GPT-4.1 and GPT-5.1 Codex Mini?

Key differences include context window (1.0M vs 400K), input pricing ($2.00 vs $0.25/M). See the full comparison above for benchmark-by-benchmark results.