Enter opens the highlighted result. Esc closes.

GPT-5.1-Codex vs gpt-oss-20b

Updated October 21, 2026. 16 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

GPT-5.1-CodexOpenAI
Coding
15.3
Overall
23.7
Output $/M
$10.00
16
gpt-oss-20bOpenAI
Coding
No data
Overall
10.0
Output $/M
$0.15
0
vs boards won of 16 shared

Decision reading

Only GPT-5.1-Codex has a coding score, 15.3 on the Vibe Coding Index; gpt-oss-20b has none, so the two cannot be ranked on coding.

gpt-oss-20b has the edge where output tokens cost 66.7x less.

Shared results
16
GPT-5.1-Codex only
10
gpt-oss-20b only
44
Like-for-like categories
8 of 9

Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.

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-Codex 15.3 from 2 benchmarks, gpt-oss-20b not benchmarked.
Widest category
Web design, 36.8 points apart on average over 2 shared benchmarks.
Widest single gap
Terminal-Bench: GPT-5.1-Codex 57.8% against gpt-oss-20b 3.4%, 54.4 points apart on a 0 to 100 scale.
Output price
GPT-5.1-Codex $10.00 against gpt-oss-20b $0.15 per million output tokens, 66.7x apart.
Context window
GPT-5.1-Codex takes 400K tokens, gpt-oss-20b 131K.

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.1-CodexBarsgpt-oss-20bTies
Coding50
Intelligence10
Agentic work10
Reasoning20
Math20
Knowledge10
Web design20
General20
All shared boards160
CodingLike-for-likeSix of these boards feed the Vibe Coding Index50
Coding benchmarks for GPT-5.1-Codex and gpt-oss-20b
BenchmarkGPT-5.1-Codexgpt-oss-20bLeader
SWE-bench Verified66.0%Not measuredOnly GPT-5.1-Codex measured
LMArena WebDev1337Not measuredOnly GPT-5.1-Codex measured
LiveCodeBench (Vals AI)85.5%80.4%GPT-5.1-Codex
Vibe Code Bench (Vals AI)13.1%Not measuredOnly GPT-5.1-Codex measured
LiveCodeBench (Artificial Analysis run)84.9%77.7%GPT-5.1-Codex
SciCodeNot measured38.9%Only gpt-oss-20b measured
Terminal-Bench Hard (Artificial Analysis run)34.8%10.6%GPT-5.1-Codex
Terminal-Bench57.8%3.4%GPT-5.1-Codex
WeirdMLNot measured40.9%Only gpt-oss-20b measured
ALE-Bench1244.9566.0GPT-5.1-Codex
LMArena Text: codingNot measured1307Only gpt-oss-20b measured
LMArena Text: software and ITNot measured1311Only gpt-oss-20b measured
LMArena WebDev: HTML1346Not measuredOnly GPT-5.1-Codex measured
Neither model has a result on the other 25 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for GPT-5.1-Codex and gpt-oss-20b
BenchmarkGPT-5.1-Codexgpt-oss-20bLeader
AA Intelligence Index23.710.0GPT-5.1-Codex
Epoch Capabilities IndexNot measured137.7Only gpt-oss-20b measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GPT-5.1-Codex and gpt-oss-20b
BenchmarkGPT-5.1-Codexgpt-oss-20bLeader
Design Arena: agents building web apps1018Not measuredOnly GPT-5.1-Codex measured
Design Arena: agents building full-stack apps1086Not measuredOnly GPT-5.1-Codex measured
Design Arena: agents building mobile apps1191Not measuredOnly GPT-5.1-Codex measured
τ²-Bench Telecom83.0%60.2%GPT-5.1-Codex
Neither model has a result on the other 35 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index20
Reasoning benchmarks for GPT-5.1-Codex and gpt-oss-20b
BenchmarkGPT-5.1-Codexgpt-oss-20bLeader
GPQA DiamondNot measured68.9%Only gpt-oss-20b measured
GPQA Diamond (Artificial Analysis run)86.0%68.8%GPT-5.1-Codex
Humanity's Last Exam (Artificial Analysis run)25.7%11.0%GPT-5.1-Codex
GPQA Diamond (Epoch AI run)Not measured60.8%Only gpt-oss-20b measured
LMArena Text: hard promptsNot measured1274Only gpt-oss-20b measured
LMArena Text: expertNot measured1258Only gpt-oss-20b measured
LMArena Text: hard prompts in EnglishNot measured1292Only gpt-oss-20b measured
Neither model has a result on the other 14 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index20
Math benchmarks for GPT-5.1-Codex and gpt-oss-20b
BenchmarkGPT-5.1-Codexgpt-oss-20bLeader
AIMENot measured86.0%Only gpt-oss-20b measured
MATH 500 (Vals AI)Not measured94.2%Only gpt-oss-20b measured
MGSM (Vals AI)Not measured89.0%Only gpt-oss-20b measured
AA Math Index95.789.3GPT-5.1-Codex
AIME 2025 (Artificial Analysis run)95.7%89.3%GPT-5.1-Codex
OTIS Mock AIMENot measured65.3%Only gpt-oss-20b measured
LMArena Text: mathNot measured1317Only gpt-oss-20b measured
LMArena Text: mathematical workNot measured1305Only gpt-oss-20b measured
Neither model has a result on the other 5 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index10
Knowledge benchmarks for GPT-5.1-Codex and gpt-oss-20b
BenchmarkGPT-5.1-Codexgpt-oss-20bLeader
MMLU ProNot measured71.6%Only gpt-oss-20b measured
LegalBench (Vals AI)Not measured70.8%Only gpt-oss-20b measured
CaseLaw (Vals AI)Not measured43.8%Only gpt-oss-20b measured
CorpFin (Vals AI)Not measured53.1%Only gpt-oss-20b measured
TaxEval (Vals AI)Not measured63.7%Only gpt-oss-20b measured
MedQA (Vals AI)Not measured82.9%Only gpt-oss-20b measured
MMLU Pro (Artificial Analysis run)86.0%74.8%GPT-5.1-Codex
LMArena Text: scienceNot measured1296Only gpt-oss-20b measured
LMArena Text: medicine and healthcareNot measured1310Only gpt-oss-20b measured
LMArena Text: legal and governmentNot measured1280Only gpt-oss-20b measured
LMArena Text: business and financeNot measured1284Only gpt-oss-20b measured
Neither model has a result on the other 6 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index20
Web design benchmarks for GPT-5.1-Codex and gpt-oss-20b
BenchmarkGPT-5.1-Codexgpt-oss-20bLeader
Design Arena: websites1162853GPT-5.1-Codex
Design Arena: UI components1237Not measuredOnly GPT-5.1-Codex measured
Design Arena: game dev1138Not measuredOnly GPT-5.1-Codex measured
Design Arena: data viz1213933GPT-5.1-Codex
Design Arena: all code categories1152Not measuredOnly GPT-5.1-Codex measured
Neither model has a result on the other 4 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index20
General benchmarks for GPT-5.1-Codex and gpt-oss-20b
BenchmarkGPT-5.1-Codexgpt-oss-20bLeader
IFBench70.0%65.1%GPT-5.1-Codex
Long context reasoning (AA-LCR)69.3%34.7%GPT-5.1-Codex
DTBenchNot measured68.0%Only gpt-oss-20b measured
LMCANot measured14.5%Only gpt-oss-20b measured
LMArena TextNot measured1288Only gpt-oss-20b measured
LMArena Text: instruction followingNot measured1236Only gpt-oss-20b measured
LMArena Text: creative writingNot measured1201Only gpt-oss-20b measured
LMArena Text: EnglishNot measured1303Only gpt-oss-20b measured
LMArena Text: non-EnglishNot measured1269Only gpt-oss-20b measured
LMArena Text: ChineseNot measured1315Only gpt-oss-20b measured
LMArena Text: GermanNot measured1255Only gpt-oss-20b measured
LMArena Text: JapaneseNot measured1244Only gpt-oss-20b measured
LMArena Text: KoreanNot measured1236Only gpt-oss-20b measured
LMArena Text: SpanishNot measured1267Only gpt-oss-20b measured
LMArena Text: RussianNot measured1278Only gpt-oss-20b measured
LMArena Text: PolishNot measured1252Only gpt-oss-20b measured
LMArena Text: multi-turnNot measured1268Only gpt-oss-20b measured
LMArena Text: longer queriesNot measured1250Only gpt-oss-20b measured
LMArena Text: writing and languageNot measured1238Only gpt-oss-20b measured
LMArena Text: entertainment and mediaNot measured1216Only gpt-oss-20b measured
Neither model has a result on the other 26 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GPT-5.1-Codex and gpt-oss-20b
BenchmarkGPT-5.1-Codexgpt-oss-20bLeader
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-Codex$0.0063Fits in one request
gpt-oss-20b$0.0001Fits in one request

gpt-oss-20b costs less

Repository review

50K input + 3K output tokens

GPT-5.1-Codex$0.092Fits in one request
gpt-oss-20b$0.0019Fits in one request

gpt-oss-20b costs less

Agent loop

200K input + 10K output tokens

GPT-5.1-Codex$0.350Fits in one request
gpt-oss-20b$0.0075Exceeds the context window

gpt-oss-20b 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-Codex and gpt-oss-20b
SpecificationOpenAI GPT-5.1-CodexOpenAI gpt-oss-20b
MakerOpenAIOpenAI
WeightsNo public weights listedOpen weights
ReleasedNovember 13, 2025August 5, 2025
Context window400K131K
Input $/Mtok$1.25$0.03
Output $/Mtok$10.00$0.15
Coding index15.3Not benchmarked
Independent measurements behind it20
Cost per solved task$0.892Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is GPT-5.1-Codex better than gpt-oss-20b for coding?

Only GPT-5.1-Codex has a coding score, 15.3 on the Vibe Coding Index; gpt-oss-20b has none, so the two cannot be ranked on coding. gpt-oss-20b has the edge where output tokens cost 66.7x less.

Which is cheaper, GPT-5.1-Codex or gpt-oss-20b?

GPT-5.1-Codex costs $1.25 per million input tokens and $10.00 per million output tokens; gpt-oss-20b costs $0.03 and $0.15. Cost per solved task is known for GPT-5.1-Codex only.

Which has the bigger context window, GPT-5.1-Codex or gpt-oss-20b?

GPT-5.1-Codex, with 400K tokens against 131K.

How many benchmarks is the GPT-5.1-Codex vs gpt-oss-20b comparison based on?

16 benchmarks have a result for both models as of October 21, 2026. GPT-5.1-Codex's coding index rests on 2 independent benchmarks and gpt-oss-20b's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next