Model comparison

GPT-4.1 mini vs GPT-5.1-Codex

GPT-5.1-Codex is the stronger model overall, scoring 38.6 to 33.6 on the Noometry Index. GPT-4.1 mini costs 4.9× less per token, which makes it the better buy when GPT-5.1-Codex's lead doesn't matter for your workload.

Last verified . 1 shared benchmarks.

GPT-4.1 mini OpenAI

33.6

Rank #240 Confirmed

GPT-5.1-Codex OpenAI

38.6

Rank #186 Reported

Summary

  • They share 1 benchmark with published results for both. GPT-4.1 mini scores higher in 0 categories and GPT-5.1-Codex in 3 categories; 3 gaps are clear of the uncertainty.
  • The widest gap is in coding, where GPT-5.1-Codex leads 41.9 to 30.6.
  • The biggest single-benchmark swing is SWE-bench Verified (bash only): 23.9% for GPT-4.1 mini and 66% for GPT-5.1-Codex.
  • GPT-4.1 mini is cheaper at $0.40 / $1.60 per million input/output tokens, against $1.25 / $10 for GPT-5.1-Codex.
  • GPT-4.1 mini accepts more context: 1.05M tokens versus 400K.

Side by side

GPT-4.1 mini and GPT-5.1-Codex specifications
GPT-4.1 miniGPT-5.1-Codex
ProviderOpenAIOpenAI
Noometry Index33.638.6
Released2025-04-142025-11-12
WeightsProprietaryProprietary
Context window1.05M400K
Max output33K128K
Input $ / M tokens$0.40$1.25
Output $ / M tokens$1.60$10
Results tracked476

Sponsored placements are available on pages like this one. Advertise on Noometry

Category by category

Coding GPT-5.1-Codex leads

GPT-4.1 mini: 30.6 (#293), GPT-5.1-Codex: 41.9 (#116)

Coding benchmarks
BenchmarkGPT-4.1 miniGPT-5.1-Codex
SWE-bench Verified (bash only)23.9%66%
Aider Polyglot32.4%—
LMArena WebDev—1337
SciCode40.4%—
WeirdML37.6%—
BigCodeBench Instruct48.9%—
LMArena Coding1367—
CadEval16%—
ALE-Bench—1,245

Agentic & Tool Use GPT-5.1-Codex leads

GPT-4.1 mini: 33.3 (#55), GPT-5.1-Codex: 38.0 (#33)

Agentic & Tool Use benchmarks
BenchmarkGPT-4.1 miniGPT-5.1-Codex
Terminal-Bench—60.4%
Berkeley Function Calling Leaderboard50.5%—
METR Time Horizons—70.8%

Reasoning Not comparable

GPT-4.1 mini: 10.8 (#340), GPT-5.1-Codex: —

Reasoning benchmarks
BenchmarkGPT-4.1 miniGPT-5.1-Codex
ARC-AGI-20%—
Kagi LLM Benchmark48.6%—
ARC-AGI-13.5%—
CritPt0%—
Chess Puzzles7%—
LMArena Hard Prompts1349—
Mystery Game Puzzles7%—
DTBench68.8%—
LMCA21.1%—
Epoch Capabilities Index135.01—

Math GPT-5.1-Codex leads

GPT-4.1 mini: 24.1 (#270), GPT-5.1-Codex: 30.3 (#235)

Math benchmarks
BenchmarkGPT-4.1 miniGPT-5.1-Codex
FrontierMath (Tiers 1-3)6.7%—
OTIS Mock AIME 2024-202544.7%—
ProofBench—9%
Omni-MATH49.1%—
LMArena Math1343—
MATH Level 587.3%—
FrontierMath (Feb 2025 set)4.5%—

Knowledge Not comparable

GPT-4.1 mini: 34.7 (#194), GPT-5.1-Codex: —

Knowledge benchmarks
BenchmarkGPT-4.1 miniGPT-5.1-Codex
GPQA Diamond65.8%—
SimpleQA Verified12.7%—
MMLU-Pro78.3%—
GPQA (HELM)61.4%—
LMArena Expert1338—

Multimodal Not comparable

GPT-4.1 mini: 35.8 (#82), GPT-5.1-Codex: —

Multimodal benchmarks
BenchmarkGPT-4.1 miniGPT-5.1-Codex
LMArena Vision1181—

Multilingual Not comparable

GPT-4.1 mini: 45.7 (#166), GPT-5.1-Codex: —

Multilingual benchmarks
BenchmarkGPT-4.1 miniGPT-5.1-Codex
LMArena Non-English1318—
LMArena Chinese1329—
LMArena French1358—
LMArena German1351—
LMArena Japanese1290—
LMArena Korean1298—
LMArena Russian1324—
LMArena Spanish1319—

Instruction Following Not comparable

GPT-4.1 mini: 73.7 (#118), GPT-5.1-Codex: —

Instruction Following benchmarks
BenchmarkGPT-4.1 miniGPT-5.1-Codex
IFEval90.4%—
LMArena Instruction Following1333—

Long Context Not comparable

GPT-4.1 mini: 31.8 (#275), GPT-5.1-Codex: —

Long Context benchmarks
BenchmarkGPT-4.1 miniGPT-5.1-Codex
Fiction.LiveBench44.4%—
LMArena Longer Query1344—

Writing & Preference Not comparable

GPT-4.1 mini: 48.6 (#199), GPT-5.1-Codex: —

Writing & Preference benchmarks
BenchmarkGPT-4.1 miniGPT-5.1-Codex
LMArena Text1340—
LMArena Creative Writing1300—
EQ-Bench Creative Writing1147—
WildBench83.8%—
LMArena Multi-Turn1354—

Frequently asked questions

Is GPT-4.1 mini better than GPT-5.1-Codex?

GPT-5.1-Codex is the stronger model overall, scoring 38.6 to 33.6 on the Noometry Index. GPT-4.1 mini costs 4.9× less per token, which makes it the better buy when GPT-5.1-Codex's lead doesn't matter for your workload.

Which is cheaper, GPT-4.1 mini or GPT-5.1-Codex?

GPT-4.1 mini is cheaper. It lists at $0.40 per million input tokens and $1.60 per million output tokens; GPT-5.1-Codex lists at $1.25 and $10.

Is GPT-4.1 mini or GPT-5.1-Codex better for coding?

GPT-5.1-Codex scores higher on coding benchmarks: 41.9 versus 30.6 in the Noometry coding category.

Which has the bigger context window?

GPT-4.1 mini does, with 1.05M tokens against 400K.

How many benchmarks do GPT-4.1 mini and GPT-5.1-Codex share?

1 benchmark has published results for both models. GPT-4.1 mini has 47 scored results on Noometry and GPT-5.1-Codex has 6.

Related comparisons

Go deeper