Enter opens the highlighted result. Esc closes.

GPT-5.1 vs GPT-5.2-Codex

GPT-5.2-Codex leads GPT-5.1 on coding, 45.4 to 40.4 on the Vibe Coding Index, and GPT-5.1 costs 1.4x less per output token ($10.00 vs $14.00 per million). Updated October 22, 2026; 15 benchmarks have a result for both.

GPT-5.1OpenAI
Coding
40.4
Overall
55.0
Output $/M
$10.00
3
GPT-5.2-CodexOpenAI
Coding
45.4
Overall
No data
Output $/M
$14.00
12
vs boards won of 15 shared

GPT-5.1 or GPT-5.2-Codex: which to pick

Pick GPT-5.2-Codex for coding: it scores 45.4 on the Vibe Coding Index against 40.4 for GPT-5.1.

Pick GPT-5.1 for output tokens 1.4x cheaper ($10.00 vs $14.00 per million) and work measured by LMArena WebDev or Terminal-Bench Hard (Artificial Analysis run), where it leads.

Shared results
15
GPT-5.1 only
86
GPT-5.2-Codex only
7
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-5.1 40.4 from 3 benchmarks, GPT-5.2-Codex 45.4 from 3 benchmarks.
Widest category
Agentic work, 10.2 points apart on average over 1 shared benchmark.
Widest single gap
Terminal-Bench: GPT-5.1 47.6% against GPT-5.2-Codex 66.5%, 18.9 points apart on a 0 to 100 scale.
Output price
GPT-5.1 $10.00 against GPT-5.2-Codex $14.00 per million output tokens, 1.4x apart.
Context window
Both take 400K tokens.

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-5.1BarsGPT-5.2-CodexTies
Coding36
Intelligence01
Agentic work01
Reasoning02
General02
All shared boards312
CodingLike-for-likeSix of these boards feed the Vibe Coding Index36
Coding benchmarks for GPT-5.1 and GPT-5.2-Codex
BenchmarkGPT-5.1GPT-5.2-CodexLeader
SWE-bench Verified66.0%72.8%GPT-5.2-Codex
SWE-bench MultilingualNot measured66.3%Only GPT-5.2-Codex measured
LMArena WebDev13961339GPT-5.1
AA Coding Index49.4Not measuredOnly GPT-5.1 measured
LiveCodeBench (Vals AI)86.5%88.0%GPT-5.2-Codex
SWE-bench Verified (Vals AI)69.8%72.4%GPT-5.2-Codex
Vibe Code Bench (Vals AI)24.6%37.9%GPT-5.2-Codex
LiveCodeBench (Artificial Analysis run)86.8%Not measuredOnly GPT-5.1 measured
Terminal-Bench Hard (Artificial Analysis run)45.5%37.1%GPT-5.1
Terminal-Bench47.6%66.5%GPT-5.2-Codex
GSO-Bench13.7%Not measuredOnly GPT-5.1 measured
WeirdML60.8%Not measuredOnly GPT-5.1 measured
ALE-BenchNot measured1299.9Only GPT-5.2-Codex measured
LMArena Text: coding1453Not measuredOnly GPT-5.1 measured
LMArena Text: software and IT1454Not measuredOnly GPT-5.1 measured
LMArena WebDev: React13071329GPT-5.2-Codex
LMArena WebDev: HTML14051348GPT-5.1
LMArena WebDev: from an image1421Not measuredOnly GPT-5.1 measured
Neither model has a result on the other 21 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for GPT-5.1 and GPT-5.2-Codex
BenchmarkGPT-5.1GPT-5.2-CodexLeader
AA Intelligence Index24.728.5GPT-5.2-Codex
Epoch Capabilities Index149.8Not measuredOnly GPT-5.1 measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index01
Agentic work benchmarks for GPT-5.1 and GPT-5.2-Codex
BenchmarkGPT-5.1GPT-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 Telecom81.9%92.1%GPT-5.2-Codex
DeepResearch Bench42.8%Not measuredOnly GPT-5.1 measured
Vending-Bench 2$1,473Not measuredOnly GPT-5.1 measured
Neither model has a result on the other 33 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index02
Reasoning benchmarks for GPT-5.1 and GPT-5.2-Codex
BenchmarkGPT-5.1GPT-5.2-CodexLeader
GPQA Diamond86.6%Not measuredOnly GPT-5.1 measured
MMMU Pro (Vals AI)83.2%Not measuredOnly GPT-5.1 measured
GPQA Diamond (Artificial Analysis run)87.3%89.9%GPT-5.2-Codex
Humanity's Last Exam (Artificial Analysis run)28.5%35.7%GPT-5.2-Codex
GPQA Diamond (Epoch AI run)87.6%Not measuredOnly GPT-5.1 measured
ARC-AGI72.8%Not measuredOnly GPT-5.1 measured
ARC-AGI-217.6%Not measuredOnly GPT-5.1 measured
SimpleBench53.2%Not measuredOnly GPT-5.1 measured
Chess puzzles42.0%Not measuredOnly GPT-5.1 measured
Mystery game puzzles19.0%Not measuredOnly GPT-5.1 measured
VPCT58.7%Not measuredOnly GPT-5.1 measured
LMArena Text: hard prompts1457Not measuredOnly GPT-5.1 measured
LMArena Text: expert1470Not measuredOnly GPT-5.1 measured
LMArena Text: hard prompts in English1462Not measuredOnly GPT-5.1 measured
LMArena Vision: diagrams1264Not measuredOnly GPT-5.1 measured
LMArena Vision: homework1272Not measuredOnly GPT-5.1 measured
Neither model has a result on the other 6 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index7 boards, none shared
Math benchmarks for GPT-5.1 and GPT-5.2-Codex
BenchmarkGPT-5.1GPT-5.2-CodexLeader
AIME93.3%Not measuredOnly GPT-5.1 measured
MGSM (Vals AI)93.0%Not measuredOnly GPT-5.1 measured
AA Math Index94.0Not measuredOnly GPT-5.1 measured
AIME 2025 (Artificial Analysis run)94.0%Not measuredOnly GPT-5.1 measured
OTIS Mock AIME88.6%Not measuredOnly GPT-5.1 measured
LMArena Text: math1446Not measuredOnly GPT-5.1 measured
LMArena Text: mathematical work1449Not measuredOnly GPT-5.1 measured
Neither model has a result on the other 6 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index15 boards, none shared
Knowledge benchmarks for GPT-5.1 and GPT-5.2-Codex
BenchmarkGPT-5.1GPT-5.2-CodexLeader
MMLU Pro86.4%Not measuredOnly GPT-5.1 measured
LegalBench (Vals AI)85.7%Not measuredOnly GPT-5.1 measured
CaseLaw (Vals AI)73.4%Not measuredOnly GPT-5.1 measured
CorpFin (Vals AI)63.8%Not measuredOnly GPT-5.1 measured
TaxEval (Vals AI)74.9%Not measuredOnly GPT-5.1 measured
MortgageTax (Vals AI)61.4%Not measuredOnly GPT-5.1 measured
MedQA (Vals AI)96.4%Not measuredOnly GPT-5.1 measured
MedCode (Vals AI)52.7%Not measuredOnly GPT-5.1 measured
MMLU Pro (Artificial Analysis run)87.0%Not measuredOnly GPT-5.1 measured
SimpleQA Verified48.0%Not measuredOnly GPT-5.1 measured
LMArena Text: science1459Not measuredOnly GPT-5.1 measured
LMArena Text: medicine and healthcare1456Not measuredOnly GPT-5.1 measured
LMArena Text: legal and government1459Not measuredOnly GPT-5.1 measured
LMArena Text: business and finance1431Not measuredOnly GPT-5.1 measured
FACTS Benchmark Suite45.0%Not measuredOnly GPT-5.1 measured
Neither model has a result on the other 3 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for GPT-5.1 and GPT-5.2-Codex
BenchmarkGPT-5.1GPT-5.2-CodexLeader
Design Arena: websites1187Not measuredOnly GPT-5.1 measured
Design Arena: UI components1163Not measuredOnly GPT-5.1 measured
Design Arena: game dev1178Not measuredOnly GPT-5.1 measured
Design Arena: data viz1204Not measuredOnly GPT-5.1 measured
Design Arena: 3D1060Not measuredOnly GPT-5.1 measured
Design Arena: all code categories1170Not measuredOnly GPT-5.1 measured
Design Arena: SVG1149Not measuredOnly GPT-5.1 measured
Design Arena: ASCII art1119Not measuredOnly GPT-5.1 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index02
General benchmarks for GPT-5.1 and GPT-5.2-Codex
BenchmarkGPT-5.1GPT-5.2-CodexLeader
SAGE (Vals AI)43.2%Not measuredOnly GPT-5.1 measured
MedScribe (Vals AI)88.1%Not measuredOnly GPT-5.1 measured
IFBench72.9%77.6%GPT-5.2-Codex
Long context reasoning (AA-LCR)80.0%82.3%GPT-5.2-Codex
DTBench90.1%Not measuredOnly GPT-5.1 measured
LMCA43.9%Not measuredOnly GPT-5.1 measured
CL-bench23.7%Not measuredOnly GPT-5.1 measured
CL-bench Life17.3%Not measuredOnly GPT-5.1 measured
LMArena Text1443Not measuredOnly GPT-5.1 measured
LMArena Text: instruction following1443Not measuredOnly GPT-5.1 measured
LMArena Text: creative writing1427Not measuredOnly GPT-5.1 measured
LMArena Vision1250Not measuredOnly GPT-5.1 measured
LMArena Text: English1451Not measuredOnly GPT-5.1 measured
LMArena Text: non-English1431Not measuredOnly GPT-5.1 measured
LMArena Text: Chinese1495Not measuredOnly GPT-5.1 measured
LMArena Text: German1438Not measuredOnly GPT-5.1 measured
LMArena Text: Japanese1453Not measuredOnly GPT-5.1 measured
LMArena Text: Korean1401Not measuredOnly GPT-5.1 measured
LMArena Text: French1450Not measuredOnly GPT-5.1 measured
LMArena Text: Spanish1433Not measuredOnly GPT-5.1 measured
LMArena Text: Russian1435Not measuredOnly GPT-5.1 measured
LMArena Text: Polish1440Not measuredOnly GPT-5.1 measured
LMArena Text: multi-turn1450Not measuredOnly GPT-5.1 measured
LMArena Text: longer queries1448Not measuredOnly GPT-5.1 measured
LMArena Text: writing and language1428Not measuredOnly GPT-5.1 measured
LMArena Text: entertainment and media1415Not measuredOnly GPT-5.1 measured
LMArena Vision: English1252Not measuredOnly GPT-5.1 measured
LMArena Vision: Chinese1270Not measuredOnly GPT-5.1 measured
LMArena Vision: reading text1255Not measuredOnly GPT-5.1 measured
LMArena Vision: humor1263Not measuredOnly GPT-5.1 measured
LMArena Vision: captioning1252Not measuredOnly GPT-5.1 measured
LMArena Vision: recognizing things1232Not measuredOnly GPT-5.1 measured
LMArena Vision: creative writing1266Not measuredOnly GPT-5.1 measured
LMArena Document1403Not measuredOnly GPT-5.1 measured
Neither model has a result on the other 12 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GPT-5.1 and GPT-5.2-Codex
BenchmarkGPT-5.1GPT-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-5.1$0.0063Fits in one request
GPT-5.2-Codex$0.0088Fits in one request

GPT-5.1 costs less

Repository review

50K input + 3K output tokens

GPT-5.1$0.092Fits in one request
GPT-5.2-Codex$0.130Fits in one request

GPT-5.1 costs less

Agent loop

200K input + 10K output tokens

GPT-5.1$0.350Fits in one request
GPT-5.2-Codex$0.490Fits in one request

GPT-5.1 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-5.1 and GPT-5.2-Codex
SpecificationOpenAI GPT-5.1OpenAI GPT-5.2-Codex
MakerOpenAIOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedNovember 13, 2025January 14, 2026
Context window400K400K
Input $/Mtok$1.25$1.75
Output $/Mtok$10.00$14.00
Coding index40.445.4
Independent measurements behind it33
Cost per solved task$1.02$0.43
SourceOpenRouter listingOpenRouter listing

Questions

Is GPT-5.1 better than GPT-5.2-Codex for coding?

Pick GPT-5.2-Codex for coding: it scores 45.4 on the Vibe Coding Index against 40.4 for GPT-5.1. Pick GPT-5.1 for output tokens 1.4x cheaper ($10.00 vs $14.00 per million) and work measured by LMArena WebDev or Terminal-Bench Hard (Artificial Analysis run), where it leads.

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

GPT-5.1 costs $1.25 per million input tokens and $10.00 per million output tokens; GPT-5.2-Codex costs $1.75 and $14.00. Per solved SWE-bench Verified task, GPT-5.1 costs $1.02 and GPT-5.2-Codex $0.43.

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

Neither: both take 400K tokens.

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

15 benchmarks have a result for both models as of October 22, 2026. GPT-5.1's coding index rests on 3 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

Embed this comparison on your site

Free under CC BY 4.0, while the source link stays visible. Preview the frame · Terms and other embeds

<iframe src="https://llmbenchmark.ai/embed/compare/gpt-5-1-vs-gpt-5-2-codex" title="GPT-5.1 vs GPT-5.2-Codex, LLMBenchmark.ai" width="100%" height="360" style="border:0;max-width:100%" loading="lazy"></iframe>
<p style="font:13px/1.4 sans-serif;margin:6px 0 0">Source: <a href="https://llmbenchmark.ai/compare/gpt-5-1-vs-gpt-5-2-codex">LLMBenchmark.ai, GPT-5.1 vs GPT-5.2-Codex</a></p>