The AI arena is free today

Open Superagent

GPT-4.1 vs GPT-5.1 Codex Mini

GPT-4.1 leads the LLM Stats Score 17.5 to -3.1. GPT-5.1 Codex Mini is 5.1x cheaper per token.

OpenAI · OpenAI · Updated for 2026

Which is better?

GPT-4.1 leads the overall LLM Stats Score 17.5 to -3.1, ranking #242 overall.

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

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 LLM Stats indexes, shared benchmarks, pricing, and model metadata for 2026.

Choose GPT-4.1

  • overall performance matters — it scores 17.5 and ranks #242 on LLM Stats
  • your work emphasizes reasoning — it leads those capability indexes
  • you value its reported benchmark strengths — it wins 1 of 1 exact shared results
  • 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.

Core performance indexes
17.5
#242
-3.1
#366
17.9
#233
-3.0
#358
Cost, coverage & limits
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

Individual benchmarks

29 reported for GPT-4.1 · 1 for GPT-5.1 Codex Mini

1 shared

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.

Fri Oct 23 2026 • llm-stats.com

Human preference

Blind head-to-head votes and playground 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
Fri Oct 23 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?

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
Fri Oct 23 2026 • llm-stats.com

Input capabilities

Documented input modalities across available providers

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.5 years ago

GPT-5.1 Codex Mini

Nov 12, 2025

11 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?

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 leads the LLM Stats Score 17.5 to -3.1. 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 capability indexes, individual benchmarks, pricing, and limits 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 LLM Stats Score (17.5 vs -3.1), context window (1.0M vs 400K), input pricing ($2.00 vs $0.25/M). See the full comparison above for benchmark-by-benchmark results.