Key Takeaways
GPT-4.1 wins:
- Cheaper output tokens
- Larger context window
GPT-5 Codex wins:
- Cheaper input tokens
- Faster response time
- Higher intelligence benchmark
- Better at coding
- Better at math
- Has reasoning mode
Price Advantage
GPT-4.1
Benchmark Advantage
GPT-5 Codex
Context Window
GPT-4.1
Speed
GPT-5 Codex
Pricing Comparison
Price Comparison
| Metric | GPT-4.1 | GPT-5 Codex | Winner |
|---|---|---|---|
| Input (per 1M tokens) | $2.00 | $1.25 | GPT-5 Codex |
| Output (per 1M tokens) | $8.00 | $10.00 | GPT-4.1 |
| Cache Read (per 1M) | $0.50 | $0.13 | GPT-5 Codex |
Using a 3:1 input/output ratio, GPT-5 Codex is 2% cheaper overall.
GPT-4.1 Providers
No provider data available
GPT-5 Codex Providers
No provider data available
Benchmark Comparison
8
Benchmarks Compared
0
GPT-4.1 Wins
6
GPT-5 Codex Wins
Benchmark Scores
| Benchmark | GPT-4.1 | GPT-5 Codex | Winner |
|---|---|---|---|
Intelligence Index Overall intelligence score | 26.3 | 44.6 | |
Coding Index Code generation & understanding | 21.8 | 38.9 | |
Math Index Mathematical reasoning | 34.7 | 98.7 | |
MMLU Pro Academic knowledge | 80.6 | 86.5 | |
GPQA Graduate-level science | 66.6 | 83.7 | |
LiveCodeBench Competitive programming | 45.7 | 84.0 | |
Aider Real-world code editing | 52.4 | - | - |
AIME Competition math | 43.7 | - | - |
GPT-5 Codex significantly outperforms in coding benchmarks.
Cost vs Quality
X-axis:
Y-axis:
Loading chart...
GPT-4.1
Other models
Context & Performance
Context Window
GPT-4.1
1,047,576
tokens
GPT-5 Codex
400,000
tokens
GPT-4.1 has a 62% larger context window.
Speed Performance
| Metric | GPT-4.1 | GPT-5 Codex | Winner |
|---|---|---|---|
| Tokens/second | 72.5 tok/s | 171.4 tok/s | |
| Time to First Token | 0.53s | 6.68s |
GPT-5 Codex responds 137% faster on average.
Capabilities
Feature Comparison
| Feature | GPT-4.1 | GPT-5 Codex |
|---|---|---|
| Vision (Image Input) | ||
| Tool/Function Calls | ||
| Reasoning Mode | ||
| Audio Input | ||
| Audio Output | ||
| PDF Input | ||
| Prompt Caching | ||
| Web Search |
License & Release
| Property | GPT-4.1 | GPT-5 Codex |
|---|---|---|
| License | Proprietary | Proprietary |
| Author | OpenAI | OpenAI |
| Released | Apr 2025 | Sep 2025 |
GPT-4.1 Modalities
Input
imagetextfile
Output
text
GPT-5 Codex Modalities
Input
textimage
Output
text