Enter opens the highlighted result. Esc closes.

GPT-4.1 Mini vs GPT-5.2-Codex

GPT-5.2-Codex leads GPT-4.1 Mini on the Artificial Analysis Intelligence Index, 28.5 to 10.2, and GPT-4.1 Mini costs 8.8x less per output token ($1.60 vs $14.00 per million). Updated October 21, 2026; 9 benchmarks have a result for both.

GPT-4.1 MiniOpenAI
Coding
No data
Overall
31.9
Output $/M
$1.60
0
GPT-5.2-CodexOpenAI
Coding
45.4
Overall
No data
Output $/M
$14.00
9
vs boards won of 9 shared

GPT-4.1 Mini or GPT-5.2-Codex: which to pick

Only GPT-5.2-Codex has a coding score, 45.4 on the Vibe Coding Index; GPT-4.1 Mini has none, so the two cannot be ranked on coding.

Pick GPT-4.1 Mini for output tokens 8.8x cheaper ($1.60 vs $14.00 per million) and a larger context window (1.05M against 400K tokens).

Shared results
9
GPT-4.1 Mini only
77
GPT-5.2-Codex only
13
Like-for-like categories
5 of 9

Only benchmarks that tested both models count toward a pick; a result only one model has is shown but not compared.

Which one for your work

Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.

At a glance

Coding index
GPT-4.1 Mini not benchmarked, GPT-5.2-Codex 45.4 from 3 benchmarks.
Widest category
Agentic work, 39.2 points apart on average over 1 shared benchmark.
Widest single gap
SWE-bench Verified: GPT-4.1 Mini 23.9% against GPT-5.2-Codex 72.8%, 48.9 points apart on a 0 to 100 scale.
Output price
GPT-4.1 Mini $1.60 against GPT-5.2-Codex $14.00 per million output tokens, 8.8x apart.
Context window
GPT-4.1 Mini takes 1.05M tokens, GPT-5.2-Codex 400K.

Benchmark by benchmark

First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.

Boards won, where both have a result
CategoryGPT-4.1 MiniBarsGPT-5.2-CodexTies
Coding03
Intelligence01
Agentic work01
Reasoning02
General02
All shared boards09
CodingLike-for-likeSix of these boards feed the Vibe Coding Index03
Coding benchmarks for GPT-4.1 Mini and GPT-5.2-Codex
BenchmarkGPT-4.1 MiniGPT-5.2-CodexLeader
Aider polyglot32.4%Not measuredOnly GPT-4.1 Mini measured
SWE-bench Verified23.9%72.8%GPT-5.2-Codex
SWE-bench MultilingualNot measured66.3%Only GPT-5.2-Codex measured
LMArena WebDevNot measured1339Only GPT-5.2-Codex measured
AA Coding Index20.2Not measuredOnly GPT-4.1 Mini measured
LiveCodeBench (Vals AI)58.2%88.0%GPT-5.2-Codex
SWE-bench Verified (Vals AI)Not measured72.4%Only GPT-5.2-Codex measured
Vibe Code Bench (Vals AI)Not measured37.9%Only GPT-5.2-Codex measured
LiveCodeBench (Artificial Analysis run)48.3%Not measuredOnly GPT-4.1 Mini measured
Terminal-Bench Hard (Artificial Analysis run)7.6%37.1%GPT-5.2-Codex
Terminal-BenchNot measured66.5%Only GPT-5.2-Codex measured
WeirdML37.6%Not measuredOnly GPT-4.1 Mini measured
ALE-BenchNot measured1299.9Only GPT-5.2-Codex measured
LMArena Text: coding1367Not measuredOnly GPT-4.1 Mini measured
LMArena Text: software and IT1360Not measuredOnly GPT-4.1 Mini measured
LMArena WebDev: ReactNot measured1329Only GPT-5.2-Codex measured
LMArena WebDev: HTMLNot measured1348Only GPT-5.2-Codex measured
Neither model has a result on the other 22 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for GPT-4.1 Mini and GPT-5.2-Codex
BenchmarkGPT-4.1 MiniGPT-5.2-CodexLeader
AA Intelligence Index10.228.5GPT-5.2-Codex
Epoch Capabilities Index134.9Not measuredOnly GPT-4.1 Mini measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index01
Agentic work benchmarks for GPT-4.1 Mini and GPT-5.2-Codex
BenchmarkGPT-4.1 MiniGPT-5.2-CodexLeader
Design Arena: agents building web appsNot measured1051Only GPT-5.2-Codex measured
Design Arena: agents building full-stack appsNot measured993Only GPT-5.2-Codex measured
Design Arena: agents building mobile appsNot measured1090Only GPT-5.2-Codex measured
Design Arena: agents building Android appsNot measured1176Only GPT-5.2-Codex measured
Design Arena: agents building Godot gamesNot measured1142Only GPT-5.2-Codex measured
τ²-Bench Telecom52.9%92.1%GPT-5.2-Codex
Berkeley Function Calling Leaderboard (BFCL)50.4%Not measuredOnly GPT-4.1 Mini measured
Neither model has a result on the other 34 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index02
Reasoning benchmarks for GPT-4.1 Mini and GPT-5.2-Codex
BenchmarkGPT-4.1 MiniGPT-5.2-CodexLeader
GPQA Diamond67.9%Not measuredOnly GPT-4.1 Mini measured
MMMU Pro (Vals AI)70.5%Not measuredOnly GPT-4.1 Mini measured
GPQA Diamond (Artificial Analysis run)66.4%89.9%GPT-5.2-Codex
Humanity's Last Exam (Artificial Analysis run)5.0%35.7%GPT-5.2-Codex
GPQA Diamond (Epoch AI run)65.8%Not measuredOnly GPT-4.1 Mini measured
ARC-AGI3.5%Not measuredOnly GPT-4.1 Mini measured
ARC-AGI-20.0%Not measuredOnly GPT-4.1 Mini measured
Chess puzzles1.0%Not measuredOnly GPT-4.1 Mini measured
Mystery game puzzles7.0%Not measuredOnly GPT-4.1 Mini measured
LMArena Text: hard prompts1349Not measuredOnly GPT-4.1 Mini measured
LMArena Text: expert1338Not measuredOnly GPT-4.1 Mini measured
LMArena Text: hard prompts in English1362Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: diagrams1182Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: homework1214Not measuredOnly GPT-4.1 Mini measured
Kagi LLM Benchmark48.6%Not measuredOnly GPT-4.1 Mini measured
Neither model has a result on the other 7 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index10 boards, none shared
Math benchmarks for GPT-4.1 Mini and GPT-5.2-Codex
BenchmarkGPT-4.1 MiniGPT-5.2-CodexLeader
AIME49.4%Not measuredOnly GPT-4.1 Mini measured
MATH 500 (Vals AI)88.0%Not measuredOnly GPT-4.1 Mini measured
MGSM (Vals AI)87.8%Not measuredOnly GPT-4.1 Mini measured
AA Math Index46.3Not measuredOnly GPT-4.1 Mini measured
AIME 2025 (Artificial Analysis run)46.3%Not measuredOnly GPT-4.1 Mini measured
OTIS Mock AIME44.7%Not measuredOnly GPT-4.1 Mini measured
FrontierMath, tiers 1 to 36.7%Not measuredOnly GPT-4.1 Mini measured
MATH level 587.3%Not measuredOnly GPT-4.1 Mini measured
LMArena Text: math1343Not measuredOnly GPT-4.1 Mini measured
LMArena Text: mathematical work1347Not measuredOnly GPT-4.1 Mini measured
Neither model has a result on the other 3 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index12 boards, none shared
Knowledge benchmarks for GPT-4.1 Mini and GPT-5.2-Codex
BenchmarkGPT-4.1 MiniGPT-5.2-CodexLeader
MMLU Pro77.2%Not measuredOnly GPT-4.1 Mini measured
LegalBench (Vals AI)78.0%Not measuredOnly GPT-4.1 Mini measured
CorpFin (Vals AI)57.9%Not measuredOnly GPT-4.1 Mini measured
TaxEval (Vals AI)71.9%Not measuredOnly GPT-4.1 Mini measured
MortgageTax (Vals AI)65.5%Not measuredOnly GPT-4.1 Mini measured
MedQA (Vals AI)84.6%Not measuredOnly GPT-4.1 Mini measured
MMLU Pro (Artificial Analysis run)78.1%Not measuredOnly GPT-4.1 Mini measured
SimpleQA Verified12.7%Not measuredOnly GPT-4.1 Mini measured
LMArena Text: science1328Not measuredOnly GPT-4.1 Mini measured
LMArena Text: medicine and healthcare1324Not measuredOnly GPT-4.1 Mini measured
LMArena Text: legal and government1343Not measuredOnly GPT-4.1 Mini measured
LMArena Text: business and finance1322Not measuredOnly GPT-4.1 Mini measured
Neither model has a result on the other 6 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
Web design benchmarks for GPT-4.1 Mini and GPT-5.2-Codex
BenchmarkGPT-4.1 MiniGPT-5.2-CodexLeader
Design Arena: websites997Not measuredOnly GPT-4.1 Mini measured
Design Arena: UI components961Not measuredOnly GPT-4.1 Mini measured
Design Arena: game dev1071Not measuredOnly GPT-4.1 Mini measured
Design Arena: data viz1034Not measuredOnly GPT-4.1 Mini measured
Design Arena: 3D837Not measuredOnly GPT-4.1 Mini measured
Design Arena: all code categories994Not measuredOnly GPT-4.1 Mini measured
Neither model has a result on the other 3 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index02
General benchmarks for GPT-4.1 Mini and GPT-5.2-Codex
BenchmarkGPT-4.1 MiniGPT-5.2-CodexLeader
IFBench38.3%77.6%GPT-5.2-Codex
Long context reasoning (AA-LCR)44.0%82.3%GPT-5.2-Codex
DTBench68.8%Not measuredOnly GPT-4.1 Mini measured
LMCA21.1%Not measuredOnly GPT-4.1 Mini measured
Fiction.LiveBench44.4%Not measuredOnly GPT-4.1 Mini measured
LMArena Text1341Not measuredOnly GPT-4.1 Mini measured
LMArena Text: instruction following1333Not measuredOnly GPT-4.1 Mini measured
LMArena Text: creative writing1299Not measuredOnly GPT-4.1 Mini measured
LMArena Vision1181Not measuredOnly GPT-4.1 Mini measured
LMArena Text: English1356Not measuredOnly GPT-4.1 Mini measured
LMArena Text: non-English1318Not measuredOnly GPT-4.1 Mini measured
LMArena Text: Chinese1329Not measuredOnly GPT-4.1 Mini measured
LMArena Text: German1350Not measuredOnly GPT-4.1 Mini measured
LMArena Text: Japanese1290Not measuredOnly GPT-4.1 Mini measured
LMArena Text: Korean1298Not measuredOnly GPT-4.1 Mini measured
LMArena Text: French1358Not measuredOnly GPT-4.1 Mini measured
LMArena Text: Spanish1319Not measuredOnly GPT-4.1 Mini measured
LMArena Text: Russian1324Not measuredOnly GPT-4.1 Mini measured
LMArena Text: Polish1326Not measuredOnly GPT-4.1 Mini measured
LMArena Text: multi-turn1354Not measuredOnly GPT-4.1 Mini measured
LMArena Text: longer queries1344Not measuredOnly GPT-4.1 Mini measured
LMArena Text: writing and language1319Not measuredOnly GPT-4.1 Mini measured
LMArena Text: entertainment and media1300Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: English1191Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: Chinese1186Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: reading text1188Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: humor1182Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: captioning1174Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: recognizing things1187Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: creative writing1182Not measuredOnly GPT-4.1 Mini measured
Neither model has a result on the other 16 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GPT-4.1 Mini and GPT-5.2-Codex
BenchmarkGPT-4.1 MiniGPT-5.2-CodexLeader
Neither model has a result on 5 boards here

What each workload costs

Three fixed token mixes at each model's listed price, so per-token rates become a bill.

Chat turn

1K input + 500 output tokens

GPT-4.1 Mini$0.0012Fits in one request
GPT-5.2-Codex$0.0088Fits in one request

GPT-4.1 Mini costs less

Repository review

50K input + 3K output tokens

GPT-4.1 Mini$0.025Fits in one request
GPT-5.2-Codex$0.130Fits in one request

GPT-4.1 Mini costs less

Agent loop

200K input + 10K output tokens

GPT-4.1 Mini$0.096Fits in one request
GPT-5.2-Codex$0.490Fits in one request

GPT-4.1 Mini costs less

Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.

Specification differences

The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.

Specifications of GPT-4.1 Mini and GPT-5.2-Codex
SpecificationOpenAI GPT-4.1 MiniOpenAI GPT-5.2-Codex
MakerOpenAIOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedApril 14, 2025January 14, 2026
Context window1.05M400K
Input $/Mtok$0.40$1.75
Output $/Mtok$1.60$14.00
Coding indexNot benchmarked45.4
Independent measurements behind it03
Cost per solved task$1.818$0.43
SourceOpenRouter listingOpenRouter listing

Questions

Is GPT-4.1 Mini better than GPT-5.2-Codex for coding?

Only GPT-5.2-Codex has a coding score, 45.4 on the Vibe Coding Index; GPT-4.1 Mini has none, so the two cannot be ranked on coding. Pick GPT-4.1 Mini for output tokens 8.8x cheaper ($1.60 vs $14.00 per million) and a larger context window (1.05M against 400K tokens).

Which is cheaper, GPT-4.1 Mini or GPT-5.2-Codex?

GPT-4.1 Mini costs $0.40 per million input tokens and $1.60 per million output tokens; GPT-5.2-Codex costs $1.75 and $14.00. Per solved SWE-bench Verified task, GPT-4.1 Mini costs $1.818 and GPT-5.2-Codex $0.43.

Which has the bigger context window, GPT-4.1 Mini or GPT-5.2-Codex?

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

How many benchmarks is the GPT-4.1 Mini vs GPT-5.2-Codex comparison based on?

9 benchmarks have a result for both models as of October 21, 2026. GPT-4.1 Mini's coding index rests on 0 independent benchmarks and GPT-5.2-Codex's on 3. Where only one model has a result, the page says so instead of naming a winner.

Compare next