GPT-5.4 Mini vs Phi 4
GPT-5.4 Mini leads Phi 4 on the Artificial Analysis Intelligence Index, 24.1 to 5.9, and Phi 4 costs 32.1x less per output token ($0.14 vs $4.50 per million). Updated October 21, 2026; 37 benchmarks have a result for both.
GPT-5.4 Mini or Phi 4: which to pick
Only GPT-5.4 Mini has a coding score, 35.8 on the Vibe Coding Index; Phi 4 has none, so the two cannot be ranked on coding.
Pick Phi 4 for output tokens 32.1x cheaper ($0.14 vs $4.50 per million).
- Shared results
- 37
- GPT-5.4 Mini only
- 52
- Phi 4 only
- 9
- Like-for-like categories
- 7 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.
Coding
Vibe Coding Index, six public coding benchmarks
No call
Only GPT-5.4 Mini has a coding score, so no call is made.
One side not measured
Intelligence
AA Intelligence Index
GPT-5.4 Mini
GPT-5.4 Mini leads, 24.1 against 5.9.
Same board, both measured
Agentic work
AA Agentic Index
No call
Only GPT-5.4 Mini has a AA Agentic Index result, 17.9.
Directional only
Reasoning
GPQA Diamond
No call
Only GPT-5.4 Mini has a GPQA Diamond result, 83.1%.
Directional only
Math
AIME
No call
Only GPT-5.4 Mini has a AIME result, 95.6%.
Directional only
Knowledge
MMLU Pro
No call
Only GPT-5.4 Mini has a MMLU Pro result, 84.5%.
Directional only
Long documents
Listed context window
GPT-5.4 Mini
GPT-5.4 Mini takes 400K tokens against 16K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Phi 4
GPT-5.4 Mini $0.0030, Phi 4 $0.0001 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only GPT-5.4 Mini has the number, $0.70.
Directional only
At a glance
- Coding index
- GPT-5.4 Mini 35.8 from 5 benchmarks, Phi 4 not benchmarked.
- Widest category
- Agentic work, 83.3 points apart on average over 1 shared benchmark.
- Widest single gap
- τ²-Bench Telecom: GPT-5.4 Mini 83.3% against Phi 4 0.0%, 83.3 points apart on a 0 to 100 scale.
- Output price
- GPT-5.4 Mini $4.50 against Phi 4 $0.14 per million output tokens, 32.1x apart.
- Context window
- GPT-5.4 Mini takes 400K 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-5.4 Mini | Bars | Phi 4 | Ties |
|---|---|---|---|---|
| Coding | 3 | 0 | ||
| Intelligence | 2 | 0 | ||
| Agentic work | 1 | 0 | ||
| Reasoning | 6 | 0 | ||
| Math | 3 | 0 | ||
| Knowledge | 4 | 0 | ||
| General | 18 | 0 | ||
| All shared boards | 37 | 0 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index30
| Benchmark | GPT-5.4 Mini | Phi 4 | Leader |
|---|---|---|---|
| LMArena WebDev | 1397 | Not measured | Only GPT-5.4 Mini measured |
| AA Coding Index | 56.1 | Not measured | Only GPT-5.4 Mini measured |
| LiveCodeBench (Vals AI) | 81.5% | Not measured | Only GPT-5.4 Mini measured |
| SWE-bench Verified (Vals AI) | 73.0% | Not measured | Only GPT-5.4 Mini measured |
| Terminal-Bench 4 (Vals AI) | 2.5% | Not measured | Only GPT-5.4 Mini measured |
| Vibe Code Bench (Vals AI) | 48.0% | Not measured | Only GPT-5.4 Mini measured |
| Code migration (Vals AI) | 12.9% | Not measured | Only GPT-5.4 Mini measured |
| ProgramBench (Vals AI) | 0.0% | Not measured | Only GPT-5.4 Mini measured |
| Terminal-Bench 2.1 (Vals AI) | 54.7% | Not measured | Only GPT-5.4 Mini measured |
| LiveCodeBench (Artificial Analysis run) | Not measured | 23.1% | Only Phi 4 measured |
| SciCode | 52.1% | Not measured | Only GPT-5.4 Mini measured |
| Terminal-Bench Hard (Artificial Analysis run) | 52.3% | 3.8% | GPT-5.4 Mini |
| FrontierCode | 27.0% | Not measured | Only GPT-5.4 Mini measured |
| WeirdML | 60.3% | Not measured | Only GPT-5.4 Mini measured |
| ALE-Bench | 1188.6 | Not measured | Only GPT-5.4 Mini measured |
| LMArena Text: coding | 1438 | 1231 | GPT-5.4 Mini |
| LMArena Text: software and IT | 1436 | 1228 | GPT-5.4 Mini |
| LMArena WebDev: React | 1386 | Not measured | Only GPT-5.4 Mini measured |
| LMArena WebDev: HTML | 1419 | Not measured | Only GPT-5.4 Mini measured |
| Neither model has a result on the other 20 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
| Benchmark | GPT-5.4 Mini | Phi 4 | Leader |
|---|---|---|---|
| AA Intelligence Index | 24.1 | 5.9 | GPT-5.4 Mini |
| Epoch Capabilities Index | 148.7 | 130.5 | GPT-5.4 Mini |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | GPT-5.4 Mini | Phi 4 | Leader |
|---|---|---|---|
| AA Agentic Index | 17.9 | Not measured | Only GPT-5.4 Mini measured |
| Finance Agent (Vals AI) | 45.4% | Not measured | Only GPT-5.4 Mini measured |
| Tax Agent Bench (Vals AI) | 8.8% | Not measured | Only GPT-5.4 Mini measured |
| Legal Research Bench (Vals AI) | 12.5% | Not measured | Only GPT-5.4 Mini measured |
| Excel Modeling Benchmark (Vals AI) | 45.4% | Not measured | Only GPT-5.4 Mini measured |
| τ²-Bench Telecom | 83.3% | 0.0% | GPT-5.4 Mini |
| BALROG | Not measured | 11.6% | Only Phi 4 measured |
| DeepResearch Bench | 36.3% | Not measured | Only GPT-5.4 Mini measured |
| Berkeley Function Calling Leaderboard (BFCL) | Not measured | 28.8% | Only Phi 4 measured |
| Neither model has a result on the other 32 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index60
| Benchmark | GPT-5.4 Mini | Phi 4 | Leader |
|---|---|---|---|
| GPQA Diamond | 83.1% | Not measured | Only GPT-5.4 Mini measured |
| MMMU Pro (Vals AI) | 79.3% | Not measured | Only GPT-5.4 Mini measured |
| GPQA Diamond (Artificial Analysis run) | 87.5% | 57.5% | GPT-5.4 Mini |
| Humanity's Last Exam (Artificial Analysis run) | 28.1% | 3.8% | GPT-5.4 Mini |
| GPQA Diamond (Epoch AI run) | 86.9% | 56.1% | GPT-5.4 Mini |
| ARC-AGI | 63.7% | Not measured | Only GPT-5.4 Mini measured |
| ARC-AGI-2 | 18.9% | Not measured | Only GPT-5.4 Mini measured |
| Chess puzzles | 23.0% | Not measured | Only GPT-5.4 Mini measured |
| Mystery game puzzles | 11.0% | Not measured | Only GPT-5.4 Mini measured |
| LMArena Text: hard prompts | 1424 | 1220 | GPT-5.4 Mini |
| LMArena Text: expert | 1435 | 1203 | GPT-5.4 Mini |
| LMArena Text: hard prompts in English | 1420 | 1230 | GPT-5.4 Mini |
| LMArena Vision: diagrams | 1266 | Not measured | Only GPT-5.4 Mini measured |
| LMArena Vision: homework | 1285 | Not measured | Only GPT-5.4 Mini measured |
| Kagi LLM Benchmark | 37.9% | Not measured | Only GPT-5.4 Mini measured |
| Neither model has a result on the other 7 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index30
| Benchmark | GPT-5.4 Mini | Phi 4 | Leader |
|---|---|---|---|
| AIME | 95.6% | Not measured | Only GPT-5.4 Mini measured |
| AA Math Index | Not measured | 18.0 | Only Phi 4 measured |
| AIME 2025 (Artificial Analysis run) | Not measured | 18.0% | Only Phi 4 measured |
| OTIS Mock AIME | 88.9% | 13.8% | GPT-5.4 Mini |
| FrontierMath, tiers 1 to 3 | 51.2% | Not measured | Only GPT-5.4 Mini measured |
| FrontierMath, tier 4 | 9.8% | Not measured | Only GPT-5.4 Mini measured |
| ProofBench | 21.0% | Not measured | Only GPT-5.4 Mini measured |
| MATH level 5 | Not measured | 64.9% | Only Phi 4 measured |
| LMArena Text: math | 1418 | 1246 | GPT-5.4 Mini |
| LMArena Text: mathematical work | 1429 | 1254 | GPT-5.4 Mini |
| Neither model has a result on the other 3 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index40
| Benchmark | GPT-5.4 Mini | Phi 4 | Leader |
|---|---|---|---|
| MMLU Pro | 84.5% | Not measured | Only GPT-5.4 Mini measured |
| CaseLaw (Vals AI) | 51.7% | Not measured | Only GPT-5.4 Mini measured |
| CorpFin (Vals AI) | 60.9% | Not measured | Only GPT-5.4 Mini measured |
| TaxEval (Vals AI) | 71.2% | Not measured | Only GPT-5.4 Mini measured |
| MortgageTax (Vals AI) | 63.5% | Not measured | Only GPT-5.4 Mini measured |
| MMLU Pro (Artificial Analysis run) | Not measured | 71.4% | Only Phi 4 measured |
| SimpleQA Verified | 29.4% | Not measured | Only GPT-5.4 Mini measured |
| MMLU | Not measured | 84.8% | Only Phi 4 measured |
| LMArena Text: science | 1417 | 1206 | GPT-5.4 Mini |
| LMArena Text: medicine and healthcare | 1395 | 1202 | GPT-5.4 Mini |
| LMArena Text: legal and government | 1414 | 1241 | GPT-5.4 Mini |
| LMArena Text: business and finance | 1418 | 1199 | GPT-5.4 Mini |
| Neither model has a result on the other 6 boards here | |||
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GPT-5.4 Mini | Phi 4 | Leader |
|---|---|---|---|
| Neither model has a result on 9 boards here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index180
| Benchmark | GPT-5.4 Mini | Phi 4 | Leader |
|---|---|---|---|
| SAGE (Vals AI) | 50.8% | Not measured | Only GPT-5.4 Mini measured |
| Vals Multimodal Index | 54.2% | Not measured | Only GPT-5.4 Mini measured |
| IFBench | 73.3% | 23.5% | GPT-5.4 Mini |
| Long context reasoning (AA-LCR) | 77.0% | 0.0% | GPT-5.4 Mini |
| DTBench | 80.0% | Not measured | Only GPT-5.4 Mini measured |
| LMCA | 40.8% | Not measured | Only GPT-5.4 Mini measured |
| Creative writing (Lech Mazur) | Not measured | 62.6% | Only Phi 4 measured |
| LMArena Text | 1412 | 1217 | GPT-5.4 Mini |
| LMArena Text: instruction following | 1405 | 1201 | GPT-5.4 Mini |
| LMArena Text: creative writing | 1370 | 1181 | GPT-5.4 Mini |
| LMArena Vision | 1245 | Not measured | Only GPT-5.4 Mini measured |
| LMArena Text: English | 1412 | 1231 | GPT-5.4 Mini |
| LMArena Text: non-English | 1405 | 1197 | GPT-5.4 Mini |
| LMArena Text: Chinese | 1446 | 1212 | GPT-5.4 Mini |
| LMArena Text: German | 1408 | 1222 | GPT-5.4 Mini |
| LMArena Text: Japanese | 1375 | 1158 | GPT-5.4 Mini |
| LMArena Text: Korean | 1370 | 1151 | GPT-5.4 Mini |
| LMArena Text: French | 1441 | 1224 | GPT-5.4 Mini |
| LMArena Text: Spanish | 1405 | 1234 | GPT-5.4 Mini |
| LMArena Text: Russian | 1417 | 1209 | GPT-5.4 Mini |
| LMArena Text: Polish | 1415 | Not measured | Only GPT-5.4 Mini measured |
| LMArena Text: multi-turn | 1429 | 1206 | GPT-5.4 Mini |
| LMArena Text: longer queries | 1408 | 1217 | GPT-5.4 Mini |
| LMArena Text: writing and language | 1393 | 1198 | GPT-5.4 Mini |
| LMArena Text: entertainment and media | 1373 | 1162 | GPT-5.4 Mini |
| LMArena Vision: English | 1244 | Not measured | Only GPT-5.4 Mini measured |
| LMArena Vision: Chinese | 1286 | Not measured | Only GPT-5.4 Mini measured |
| LMArena Vision: reading text | 1253 | Not measured | Only GPT-5.4 Mini measured |
| LMArena Vision: humor | 1235 | Not measured | Only GPT-5.4 Mini measured |
| LMArena Vision: recognizing things | 1218 | Not measured | Only GPT-5.4 Mini measured |
| LMArena Vision: creative writing | 1222 | Not measured | Only GPT-5.4 Mini measured |
| Neither model has a result on the other 15 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GPT-5.4 Mini | 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
Phi 4 costs less
Repository review
50K input + 3K output tokens
Phi 4 costs less
Agent loop
200K input + 10K output tokens
Phi 4 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-5.4 Mini | Microsoft Phi 4 |
|---|---|---|
| Maker | OpenAI | Microsoft |
| Weights | No public weights listed | Open weights |
| Released | March 17, 2026 | January 10, 2025 |
| Context window | 400K | 16K |
| Input $/Mtok | $0.75 | $0.07 |
| Output $/Mtok | $4.50 | $0.14 |
| Coding index | 35.8 | Not benchmarked |
| Independent measurements behind it | 5 | 0 |
| Cost per solved task | $0.70 | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GPT-5.4 Mini better than Phi 4 for coding?
Only GPT-5.4 Mini has a coding score, 35.8 on the Vibe Coding Index; Phi 4 has none, so the two cannot be ranked on coding. Pick Phi 4 for output tokens 32.1x cheaper ($0.14 vs $4.50 per million).
Which is cheaper, GPT-5.4 Mini or Phi 4?
GPT-5.4 Mini costs $0.75 per million input tokens and $4.50 per million output tokens; Phi 4 costs $0.07 and $0.14. Cost per solved task is known for GPT-5.4 Mini only.
Which has the bigger context window, GPT-5.4 Mini or Phi 4?
GPT-5.4 Mini, with 400K tokens against 16K.
How many benchmarks is the GPT-5.4 Mini vs Phi 4 comparison based on?
37 benchmarks have a result for both models as of October 21, 2026. GPT-5.4 Mini's coding index rests on 5 independent benchmarks and Phi 4's on 0. Where only one model has a result, the page says so instead of naming a winner.