GPT-4.1 mini vs GPT-5.1 Codex Mini
GPT-4.1 mini and GPT-5.1 Codex Mini are closely matched at 13.5 and -3.1 on the LLM Stats Score. GPT-5.1 Codex Mini is 1.0x cheaper per token.
OpenAI · OpenAI · Updated for 2026
Which is better?
GPT-4.1 mini and GPT-5.1 Codex Mini are closely matched on the overall LLM Stats Score at 13.5 and -3.1.
In the 1 individual benchmarks reported for both models, GPT-5.1 Codex Mini wins 1; this is a narrower head-to-head signal than the composite indexes.
GPT-4.1 mini 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 mini
- you process long inputs — it offers a 1,047,576 token context window
Choose GPT-5.1 Codex Mini
- you value its reported benchmark strengths — it wins 1 of 1 exact shared results
- you want the most recent training data — it shipped Nov 2025
At a glance
The differences that matter most.
Individual benchmarks
28 reported for GPT-4.1 mini · 1 for GPT-5.1 Codex Mini
GPT-4.1 mini outperforms in 0 benchmarks, while GPT-5.1 Codex Mini is better at 1 benchmark (AIME 2025).
GPT-5.1 Codex Mini significantly outperforms across most benchmarks.
Human preference
Blind head-to-head votes and playground preference scores
Pricing Analysis
Price comparison per million tokens
For input processing, GPT-4.1 mini ($0.40/1M tokens) is 1.6x more expensive than GPT-5.1 Codex Mini ($0.25/1M tokens).
For output processing, GPT-4.1 mini ($1.60/1M tokens) is 1.3x cheaper than GPT-5.1 Codex Mini ($2.00/1M tokens).
In conclusion, GPT-4.1 mini is more expensive than GPT-5.1 Codex Mini.*
* Using a 3:1 ratio of input to output tokens
Context Window
Maximum input and output token capacity
GPT-4.1 mini 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 mini is limited to 32,768 tokens.
Input capabilities
Documented input modalities across available providers
Both GPT-4.1 mini 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 mini
GPT-5.1 Codex Mini
License
Usage and distribution terms
Both models are licensed under proprietary licenses.
Both models have usage restrictions defined by their respective organizations.
Proprietary
Closed source
Proprietary
Closed source
Release Timeline
When each model was launched
GPT-4.1 mini 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 mini.
Apr 14, 2025
1.5 years ago
Nov 12, 2025
11 months ago
7mo newerKnowledge Cutoff
When training data ends
GPT-4.1 mini has a documented knowledge cutoff of 2024-05-31, while GPT-5.1 Codex Mini's cutoff date is not specified.
We can confirm GPT-4.1 mini's training data extends to 2024-05-31, but cannot make a direct comparison without GPT-5.1 Codex Mini's cutoff date.
May 2024
—
Provider Availability
GPT-4.1 mini is available from OpenAI. GPT-5.1 Codex Mini is available from OpenAI.
GPT-4.1 mini
GPT-5.1 Codex Mini
Outputs Comparison
Judge for yourself.
Run your own prompts against GPT-4.1 mini and GPT-5.1 Codex Mini side-by-side, then vote on the output you prefer.
FAQ
Common questions about GPT-4.1 mini vs GPT-5.1 Codex Mini.