Model comparison

GPT-4.1 vs GPT-5.1-Codex

GPT-5.1-Codex is the stronger model overall, scoring 38.6 to 35.9 on the Noometry Index.

Last verified . 2 shared benchmarks.

GPT-4.1 OpenAI

35.9

Rank #219 Confirmed

GPT-5.1-Codex OpenAI

38.6

Rank #186 Reported

Summary

  • They share 2 benchmarks with published results for both. GPT-4.1 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 math, where GPT-5.1-Codex leads 30.3 to 22.3.
  • The biggest single-benchmark swing is SWE-bench Verified (bash only): 39.6% for GPT-4.1 and 66% for GPT-5.1-Codex.
  • Both cost about the same: $2 input and $8 output per million tokens.
  • GPT-4.1 accepts more context: 1.05M tokens versus 400K.

Side by side

GPT-4.1 and GPT-5.1-Codex specifications
GPT-4.1GPT-5.1-Codex
ProviderOpenAIOpenAI
Noometry Index35.938.6
Released2025-04-142025-11-12
WeightsProprietaryProprietary
Context window1.05M400K
Max output33K128K
Input $ / M tokens$2$1.25
Output $ / M tokens$8$10
Results tracked526

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

Category by category

Coding GPT-5.1-Codex leads

GPT-4.1: 34.4 (#238), GPT-5.1-Codex: 41.9 (#116)

Coding benchmarks
BenchmarkGPT-4.1GPT-5.1-Codex
SWE-bench Verified (bash only)39.6%66%
ALE-Bench558.11,245
SWE-bench Verified48.5%—
Aider Polyglot52.4%—
LMArena WebDev—1337
WeirdML39%—
LMArena Coding1391—
CadEval42%—

Agentic & Tool Use GPT-5.1-Codex leads

GPT-4.1: 34.7 (#43), GPT-5.1-Codex: 38.0 (#33)

Agentic & Tool Use benchmarks
BenchmarkGPT-4.1GPT-5.1-Codex
Terminal-Bench—60.4%
Berkeley Function Calling Leaderboard54%—
METR Time Horizons—70.8%

Reasoning Not comparable

GPT-4.1: 11.7 (#339), GPT-5.1-Codex: —

Reasoning benchmarks
BenchmarkGPT-4.1GPT-5.1-Codex
ARC-AGI-20.4%—
SimpleBench27%—
Kagi LLM Benchmark52.3%—
ARC-AGI-15.5%—
Chess Puzzles6%—
EnigmaEval2.2%—
LMArena Hard Prompts1384—
DTBench68.3%—
LMCA25.6%—
Epoch Capabilities Index136.78—
ForecastBench61.5—

Math GPT-5.1-Codex leads

GPT-4.1: 22.3 (#280), GPT-5.1-Codex: 30.3 (#235)

Math benchmarks
BenchmarkGPT-4.1GPT-5.1-Codex
FrontierMath (Tiers 1-3)6%—
OTIS Mock AIME 2024-202538.3%—
ProofBench—9%
Omni-MATH47.1%—
LMArena Math1370—
MATH Level 583%—
FrontierMath (Feb 2025 set)5.5%—
FrontierMath Tier 4 (v1)0%—

Knowledge Not comparable

GPT-4.1: 37.1 (#160), GPT-5.1-Codex: —

Knowledge benchmarks
BenchmarkGPT-4.1GPT-5.1-Codex
GPQA Diamond66.9%—
Humanity's Last Exam5.4%—
SimpleQA Verified31.1%—
MMLU-Pro81.1%—
Vectara Hallucination Rate5.6%—
GPQA (HELM)65.9%—
LMArena Expert1364—

Multimodal Not comparable

GPT-4.1: 38.2 (#67), GPT-5.1-Codex: —

Multimodal benchmarks
BenchmarkGPT-4.1GPT-5.1-Codex
LMArena Vision1211—
GeoBench72%—

Multilingual Not comparable

GPT-4.1: 49.4 (#133), GPT-5.1-Codex: —

Multilingual benchmarks
BenchmarkGPT-4.1GPT-5.1-Codex
LMArena Non-English1370—
LMArena Chinese1382—
LMArena French1382—
LMArena German1381—
LMArena Japanese1319—
LMArena Korean1339—
LMArena Russian1377—
LMArena Spanish1376—

Instruction Following Not comparable

GPT-4.1: 71.3 (#153), GPT-5.1-Codex: —

Instruction Following benchmarks
BenchmarkGPT-4.1GPT-5.1-Codex
IFEval83.8%—
LMArena Instruction Following1367—

Long Context Not comparable

GPT-4.1: 40.0 (#163), GPT-5.1-Codex: —

Long Context benchmarks
BenchmarkGPT-4.1GPT-5.1-Codex
Fiction.LiveBench63.9%—
LMArena Longer Query1385—

Writing & Preference Not comparable

GPT-4.1: 57.6 (#125), GPT-5.1-Codex: —

Writing & Preference benchmarks
BenchmarkGPT-4.1GPT-5.1-Codex
LMArena Text1383—
LMArena Creative Writing1363—
EQ-Bench Creative Writing1420—
WildBench85.4%—
LMArena Multi-Turn1398—

Frequently asked questions

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

GPT-5.1-Codex is the stronger model overall, scoring 38.6 to 35.9 on the Noometry Index.

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

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

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

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

Which has the bigger context window?

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

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

2 benchmarks have published results for both models. GPT-4.1 has 52 scored results on Noometry and GPT-5.1-Codex has 6.

Related comparisons

Go deeper