gpt-oss-20b vs Phi 4
Updated October 21, 2026. 40 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.
Decision reading
Neither model has a coding score yet, so the two cannot be ranked on coding.
gpt-oss-20b has the edge where the context window is larger, 131K against 16K tokens.
- Shared results
- 40
- gpt-oss-20b only
- 20
- Phi 4 only
- 5
- Like-for-like categories
- 7 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.
Coding
Vibe Coding Index, six public coding benchmarks
No call
Neither has a coding score yet.
One side not measured
Intelligence
AA Intelligence Index
gpt-oss-20b
gpt-oss-20b leads, 10.0 against 5.9.
Same board, both measured
Reasoning
GPQA Diamond
No call
Only gpt-oss-20b has a GPQA Diamond result, 68.9%.
Directional only
Math
AIME
No call
Only gpt-oss-20b has a AIME result, 86.0%.
Directional only
Knowledge
MMLU Pro
No call
Only gpt-oss-20b has a MMLU Pro result, 71.6%.
Directional only
Web design
Design Arena: websites
No call
Only gpt-oss-20b has a Design Arena: websites result, 853.
Directional only
Long documents
Listed context window
gpt-oss-20b
gpt-oss-20b takes 131K tokens against 16K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
gpt-oss-20b
gpt-oss-20b $0.0001, Phi 4 $0.0001 per turn.
List prices
At a glance
- Coding index
- gpt-oss-20b not benchmarked, Phi 4 not benchmarked.
- Widest category
- Agentic work, 60.2 points apart on average over 1 shared benchmark.
- Widest single gap
- AIME 2025 (Artificial Analysis run): gpt-oss-20b 89.3% against Phi 4 18.0%, 71.3 points apart on a 0 to 100 scale.
- Output price
- gpt-oss-20b $0.15 against Phi 4 $0.14 per million output tokens, 1.1x apart.
- Context window
- gpt-oss-20b takes 131K tokens, Phi 4 16K.
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.
| Category | gpt-oss-20b | Bars | Phi 4 | Ties |
|---|---|---|---|---|
| Coding | 4 | 0 | ||
| Intelligence | 2 | 0 | ||
| Agentic work | 1 | 0 | ||
| Reasoning | 6 | 0 | ||
| Math | 5 | 0 | ||
| Knowledge | 5 | 0 | ||
| General | 17 | 0 | ||
| All shared boards | 40 | 0 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index40
| Benchmark | gpt-oss-20b | Phi 4 | Leader |
|---|---|---|---|
| LiveCodeBench (Vals AI) | 80.4% | Not measured | Only gpt-oss-20b measured |
| LiveCodeBench (Artificial Analysis run) | 77.7% | 23.1% | gpt-oss-20b |
| SciCode | 38.9% | Not measured | Only gpt-oss-20b measured |
| Terminal-Bench Hard (Artificial Analysis run) | 10.6% | 3.8% | gpt-oss-20b |
| Terminal-Bench | 3.4% | Not measured | Only gpt-oss-20b measured |
| WeirdML | 40.9% | Not measured | Only gpt-oss-20b measured |
| ALE-Bench | 566.0 | Not measured | Only gpt-oss-20b measured |
| LMArena Text: coding | 1307 | 1231 | gpt-oss-20b |
| LMArena Text: software and IT | 1311 | 1228 | gpt-oss-20b |
| Neither model has a result on the other 29 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
| Benchmark | gpt-oss-20b | Phi 4 | Leader |
|---|---|---|---|
| AA Intelligence Index | 10.0 | 5.9 | gpt-oss-20b |
| Epoch Capabilities Index | 137.7 | 130.5 | gpt-oss-20b |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | gpt-oss-20b | Phi 4 | Leader |
|---|---|---|---|
| τ²-Bench Telecom | 60.2% | 0.0% | gpt-oss-20b |
| BALROG | Not measured | 11.6% | Only Phi 4 measured |
| Neither model has a result on the other 37 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index60
| Benchmark | gpt-oss-20b | Phi 4 | Leader |
|---|---|---|---|
| GPQA Diamond | 68.9% | Not measured | Only gpt-oss-20b measured |
| GPQA Diamond (Artificial Analysis run) | 68.8% | 57.5% | gpt-oss-20b |
| Humanity's Last Exam (Artificial Analysis run) | 11.0% | 3.8% | gpt-oss-20b |
| GPQA Diamond (Epoch AI run) | 60.8% | 56.1% | gpt-oss-20b |
| LMArena Text: hard prompts | 1274 | 1220 | gpt-oss-20b |
| LMArena Text: expert | 1258 | 1203 | gpt-oss-20b |
| LMArena Text: hard prompts in English | 1292 | 1230 | gpt-oss-20b |
| Neither model has a result on the other 14 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index50
| Benchmark | gpt-oss-20b | Phi 4 | Leader |
|---|---|---|---|
| AIME | 86.0% | Not measured | Only gpt-oss-20b measured |
| MATH 500 (Vals AI) | 94.2% | Not measured | Only gpt-oss-20b measured |
| MGSM (Vals AI) | 89.0% | Not measured | Only gpt-oss-20b measured |
| AA Math Index | 89.3 | 18.0 | gpt-oss-20b |
| AIME 2025 (Artificial Analysis run) | 89.3% | 18.0% | gpt-oss-20b |
| OTIS Mock AIME | 65.3% | 13.8% | gpt-oss-20b |
| MATH level 5 | Not measured | 64.9% | Only Phi 4 measured |
| LMArena Text: math | 1317 | 1246 | gpt-oss-20b |
| LMArena Text: mathematical work | 1305 | 1254 | gpt-oss-20b |
| Neither model has a result on the other 4 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index50
| Benchmark | gpt-oss-20b | Phi 4 | Leader |
|---|---|---|---|
| MMLU Pro | 71.6% | Not measured | Only gpt-oss-20b measured |
| LegalBench (Vals AI) | 70.8% | Not measured | Only gpt-oss-20b measured |
| CaseLaw (Vals AI) | 43.8% | Not measured | Only gpt-oss-20b measured |
| CorpFin (Vals AI) | 53.1% | Not measured | Only gpt-oss-20b measured |
| TaxEval (Vals AI) | 63.7% | Not measured | Only gpt-oss-20b measured |
| MedQA (Vals AI) | 82.9% | Not measured | Only gpt-oss-20b measured |
| MMLU Pro (Artificial Analysis run) | 74.8% | 71.4% | gpt-oss-20b |
| MMLU | Not measured | 84.8% | Only Phi 4 measured |
| LMArena Text: science | 1296 | 1206 | gpt-oss-20b |
| LMArena Text: medicine and healthcare | 1310 | 1202 | gpt-oss-20b |
| LMArena Text: legal and government | 1280 | 1241 | gpt-oss-20b |
| LMArena Text: business and finance | 1284 | 1199 | gpt-oss-20b |
| Neither model has a result on the other 5 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index2 boards, none shared
| Benchmark | gpt-oss-20b | Phi 4 | Leader |
|---|---|---|---|
| Design Arena: websites | 853 | Not measured | Only gpt-oss-20b measured |
| Design Arena: data viz | 933 | Not measured | Only gpt-oss-20b measured |
| Neither model has a result on the other 7 boards here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index170
| Benchmark | gpt-oss-20b | Phi 4 | Leader |
|---|---|---|---|
| IFBench | 65.1% | 23.5% | gpt-oss-20b |
| Long context reasoning (AA-LCR) | 34.7% | 0.0% | gpt-oss-20b |
| DTBench | 68.0% | Not measured | Only gpt-oss-20b measured |
| LMCA | 14.5% | Not measured | Only gpt-oss-20b measured |
| Creative writing (Lech Mazur) | Not measured | 62.6% | Only Phi 4 measured |
| LMArena Text | 1288 | 1217 | gpt-oss-20b |
| LMArena Text: instruction following | 1236 | 1201 | gpt-oss-20b |
| LMArena Text: creative writing | 1201 | 1181 | gpt-oss-20b |
| LMArena Text: English | 1303 | 1231 | gpt-oss-20b |
| LMArena Text: non-English | 1269 | 1197 | gpt-oss-20b |
| LMArena Text: Chinese | 1315 | 1212 | gpt-oss-20b |
| LMArena Text: German | 1255 | 1222 | gpt-oss-20b |
| LMArena Text: Japanese | 1244 | 1158 | gpt-oss-20b |
| LMArena Text: Korean | 1236 | 1151 | gpt-oss-20b |
| LMArena Text: French | Not measured | 1224 | Only Phi 4 measured |
| LMArena Text: Spanish | 1267 | 1234 | gpt-oss-20b |
| LMArena Text: Russian | 1278 | 1209 | gpt-oss-20b |
| LMArena Text: Polish | 1252 | Not measured | Only gpt-oss-20b measured |
| LMArena Text: multi-turn | 1268 | 1206 | gpt-oss-20b |
| LMArena Text: longer queries | 1250 | 1217 | gpt-oss-20b |
| LMArena Text: writing and language | 1238 | 1198 | gpt-oss-20b |
| LMArena Text: entertainment and media | 1216 | 1162 | gpt-oss-20b |
| Neither model has a result on the other 24 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | gpt-oss-20b | Phi 4 | Leader |
|---|---|---|---|
| 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-oss-20b costs less
Repository review
50K input + 3K output tokens
gpt-oss-20b costs less
Agent loop
200K input + 10K output tokens
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.
| Specification | OpenAI gpt-oss-20b | Microsoft Phi 4 |
|---|---|---|
| Maker | OpenAI | Microsoft |
| Weights | Open weights | Open weights |
| Released | August 5, 2025 | January 10, 2025 |
| Context window | 131K | 16K |
| Input $/Mtok | $0.03 | $0.07 |
| Output $/Mtok | $0.15 | $0.14 |
| Coding index | Not benchmarked | Not benchmarked |
| Independent measurements behind it | 0 | 0 |
| Cost per solved task | Not computable | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is gpt-oss-20b better than Phi 4 for coding?
Neither model has a coding score yet, so the two cannot be ranked on coding. gpt-oss-20b has the edge where the context window is larger, 131K against 16K tokens.
Which is cheaper, gpt-oss-20b or Phi 4?
gpt-oss-20b costs $0.03 per million input tokens and $0.15 per million output tokens; Phi 4 costs $0.07 and $0.14. Cost per solved task is known for neither of them.
Which has the bigger context window, gpt-oss-20b or Phi 4?
gpt-oss-20b, with 131K tokens against 16K.
How many benchmarks is the gpt-oss-20b vs Phi 4 comparison based on?
40 benchmarks have a result for both models as of October 21, 2026. gpt-oss-20b's coding index rests on 0 independent benchmarks and Phi 4's on 0. Where only one model has a result, the page says so instead of naming a winner.