GPT-4.1 Mini vs Phi 4
Updated October 21, 2026. 42 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-4.1 Mini has the edge where the context window is larger, 1.05M against 16K tokens.
- Shared results
- 42
- GPT-4.1 Mini only
- 42
- Phi 4 only
- 3
- 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-4.1 Mini
GPT-4.1 Mini leads, 10.2 against 5.9.
Same board, both measured
Reasoning
GPQA Diamond
No call
Only GPT-4.1 Mini has a GPQA Diamond result, 67.9%.
Directional only
Math
AIME
No call
Only GPT-4.1 Mini has a AIME result, 49.4%.
Directional only
Knowledge
MMLU Pro
No call
Only GPT-4.1 Mini has a MMLU Pro result, 77.2%.
Directional only
Web design
Design Arena: websites
No call
Only GPT-4.1 Mini has a Design Arena: websites result, 997.
Directional only
Long documents
Listed context window
GPT-4.1 Mini
GPT-4.1 Mini takes 1.05M tokens against 16K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Phi 4
GPT-4.1 Mini $0.0012, Phi 4 $0.0001 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only GPT-4.1 Mini has the number, $1.818.
Directional only
At a glance
- Coding index
- GPT-4.1 Mini not benchmarked, Phi 4 not benchmarked.
- Widest category
- Agentic work, 52.9 points apart on average over 1 shared benchmark.
- Widest single gap
- τ²-Bench Telecom: GPT-4.1 Mini 52.9% against Phi 4 0.0%, 52.9 points apart on a 0 to 100 scale.
- Output price
- GPT-4.1 Mini $1.60 against Phi 4 $0.14 per million output tokens, 11.4x apart.
- Context window
- GPT-4.1 Mini takes 1.05M 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-4.1 Mini | Bars | Phi 4 | Ties |
|---|---|---|---|---|
| Coding | 4 | 0 | ||
| Intelligence | 2 | 0 | ||
| Agentic work | 1 | 0 | ||
| Reasoning | 6 | 0 | ||
| Math | 6 | 0 | ||
| Knowledge | 5 | 0 | ||
| General | 18 | 0 | ||
| All shared boards | 42 | 0 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index40
| Benchmark | GPT-4.1 Mini | Phi 4 | Leader |
|---|---|---|---|
| Aider polyglot | 32.4% | Not measured | Only GPT-4.1 Mini measured |
| SWE-bench Verified | 23.9% | Not measured | Only GPT-4.1 Mini measured |
| AA Coding Index | 20.2 | Not measured | Only GPT-4.1 Mini measured |
| LiveCodeBench (Vals AI) | 58.2% | Not measured | Only GPT-4.1 Mini measured |
| LiveCodeBench (Artificial Analysis run) | 48.3% | 23.1% | GPT-4.1 Mini |
| Terminal-Bench Hard (Artificial Analysis run) | 7.6% | 3.8% | GPT-4.1 Mini |
| WeirdML | 37.6% | Not measured | Only GPT-4.1 Mini measured |
| LMArena Text: coding | 1367 | 1231 | GPT-4.1 Mini |
| LMArena Text: software and IT | 1360 | 1228 | GPT-4.1 Mini |
| 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-4.1 Mini | Phi 4 | Leader |
|---|---|---|---|
| AA Intelligence Index | 10.2 | 5.9 | GPT-4.1 Mini |
| Epoch Capabilities Index | 134.9 | 130.5 | GPT-4.1 Mini |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | GPT-4.1 Mini | Phi 4 | Leader |
|---|---|---|---|
| τ²-Bench Telecom | 52.9% | 0.0% | GPT-4.1 Mini |
| 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-4.1 Mini | Phi 4 | Leader |
|---|---|---|---|
| GPQA Diamond | 67.9% | Not measured | Only GPT-4.1 Mini measured |
| MMMU Pro (Vals AI) | 70.5% | Not measured | Only GPT-4.1 Mini measured |
| GPQA Diamond (Artificial Analysis run) | 66.4% | 57.5% | GPT-4.1 Mini |
| Humanity's Last Exam (Artificial Analysis run) | 5.0% | 3.8% | GPT-4.1 Mini |
| GPQA Diamond (Epoch AI run) | 65.8% | 56.1% | GPT-4.1 Mini |
| ARC-AGI | 3.5% | Not measured | Only GPT-4.1 Mini measured |
| ARC-AGI-2 | 0.0% | Not measured | Only GPT-4.1 Mini measured |
| Chess puzzles | 1.0% | Not measured | Only GPT-4.1 Mini measured |
| Mystery game puzzles | 7.0% | Not measured | Only GPT-4.1 Mini measured |
| LMArena Text: hard prompts | 1349 | 1220 | GPT-4.1 Mini |
| LMArena Text: expert | 1338 | 1203 | GPT-4.1 Mini |
| LMArena Text: hard prompts in English | 1362 | 1230 | GPT-4.1 Mini |
| LMArena Vision: diagrams | 1182 | Not measured | Only GPT-4.1 Mini measured |
| LMArena Vision: homework | 1214 | Not measured | Only GPT-4.1 Mini measured |
| Neither model has a result on the other 7 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index60
| Benchmark | GPT-4.1 Mini | Phi 4 | Leader |
|---|---|---|---|
| AIME | 49.4% | Not measured | Only GPT-4.1 Mini measured |
| MATH 500 (Vals AI) | 88.0% | Not measured | Only GPT-4.1 Mini measured |
| MGSM (Vals AI) | 87.8% | Not measured | Only GPT-4.1 Mini measured |
| AA Math Index | 46.3 | 18.0 | GPT-4.1 Mini |
| AIME 2025 (Artificial Analysis run) | 46.3% | 18.0% | GPT-4.1 Mini |
| OTIS Mock AIME | 44.7% | 13.8% | GPT-4.1 Mini |
| FrontierMath, tiers 1 to 3 | 6.7% | Not measured | Only GPT-4.1 Mini measured |
| MATH level 5 | 87.3% | 64.9% | GPT-4.1 Mini |
| LMArena Text: math | 1343 | 1246 | GPT-4.1 Mini |
| LMArena Text: mathematical work | 1347 | 1254 | GPT-4.1 Mini |
| Neither model has a result on the other 3 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index50
| Benchmark | GPT-4.1 Mini | Phi 4 | Leader |
|---|---|---|---|
| MMLU Pro | 77.2% | Not measured | Only GPT-4.1 Mini measured |
| LegalBench (Vals AI) | 78.0% | Not measured | Only GPT-4.1 Mini measured |
| CorpFin (Vals AI) | 57.9% | Not measured | Only GPT-4.1 Mini measured |
| TaxEval (Vals AI) | 71.9% | Not measured | Only GPT-4.1 Mini measured |
| MortgageTax (Vals AI) | 65.5% | Not measured | Only GPT-4.1 Mini measured |
| MedQA (Vals AI) | 84.6% | Not measured | Only GPT-4.1 Mini measured |
| MMLU Pro (Artificial Analysis run) | 78.1% | 71.4% | GPT-4.1 Mini |
| SimpleQA Verified | 12.7% | Not measured | Only GPT-4.1 Mini measured |
| MMLU | Not measured | 84.8% | Only Phi 4 measured |
| LMArena Text: science | 1328 | 1206 | GPT-4.1 Mini |
| LMArena Text: medicine and healthcare | 1324 | 1202 | GPT-4.1 Mini |
| LMArena Text: legal and government | 1343 | 1241 | GPT-4.1 Mini |
| LMArena Text: business and finance | 1322 | 1199 | GPT-4.1 Mini |
| Neither model has a result on the other 4 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
| Benchmark | GPT-4.1 Mini | Phi 4 | Leader |
|---|---|---|---|
| Design Arena: websites | 997 | Not measured | Only GPT-4.1 Mini measured |
| Design Arena: UI components | 961 | Not measured | Only GPT-4.1 Mini measured |
| Design Arena: game dev | 1071 | Not measured | Only GPT-4.1 Mini measured |
| Design Arena: data viz | 1034 | Not measured | Only GPT-4.1 Mini measured |
| Design Arena: 3D | 837 | Not measured | Only GPT-4.1 Mini measured |
| Design Arena: all code categories | 994 | Not measured | Only 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 index180
| Benchmark | GPT-4.1 Mini | Phi 4 | Leader |
|---|---|---|---|
| IFBench | 38.3% | 23.5% | GPT-4.1 Mini |
| Long context reasoning (AA-LCR) | 44.0% | 0.0% | GPT-4.1 Mini |
| DTBench | 68.8% | Not measured | Only GPT-4.1 Mini measured |
| LMCA | 21.1% | Not measured | Only GPT-4.1 Mini measured |
| Fiction.LiveBench | 44.4% | Not measured | Only GPT-4.1 Mini measured |
| Creative writing (Lech Mazur) | Not measured | 62.6% | Only Phi 4 measured |
| LMArena Text | 1341 | 1217 | GPT-4.1 Mini |
| LMArena Text: instruction following | 1333 | 1201 | GPT-4.1 Mini |
| LMArena Text: creative writing | 1299 | 1181 | GPT-4.1 Mini |
| LMArena Vision | 1181 | Not measured | Only GPT-4.1 Mini measured |
| LMArena Text: English | 1356 | 1231 | GPT-4.1 Mini |
| LMArena Text: non-English | 1318 | 1197 | GPT-4.1 Mini |
| LMArena Text: Chinese | 1329 | 1212 | GPT-4.1 Mini |
| LMArena Text: German | 1350 | 1222 | GPT-4.1 Mini |
| LMArena Text: Japanese | 1290 | 1158 | GPT-4.1 Mini |
| LMArena Text: Korean | 1298 | 1151 | GPT-4.1 Mini |
| LMArena Text: French | 1358 | 1224 | GPT-4.1 Mini |
| LMArena Text: Spanish | 1319 | 1234 | GPT-4.1 Mini |
| LMArena Text: Russian | 1324 | 1209 | GPT-4.1 Mini |
| LMArena Text: Polish | 1326 | Not measured | Only GPT-4.1 Mini measured |
| LMArena Text: multi-turn | 1354 | 1206 | GPT-4.1 Mini |
| LMArena Text: longer queries | 1344 | 1217 | GPT-4.1 Mini |
| LMArena Text: writing and language | 1319 | 1198 | GPT-4.1 Mini |
| LMArena Text: entertainment and media | 1300 | 1162 | GPT-4.1 Mini |
| LMArena Vision: English | 1191 | Not measured | Only GPT-4.1 Mini measured |
| LMArena Vision: Chinese | 1186 | Not measured | Only GPT-4.1 Mini measured |
| LMArena Vision: reading text | 1188 | Not measured | Only GPT-4.1 Mini measured |
| LMArena Vision: humor | 1182 | Not measured | Only GPT-4.1 Mini measured |
| LMArena Vision: captioning | 1174 | Not measured | Only GPT-4.1 Mini measured |
| LMArena Vision: recognizing things | 1187 | Not measured | Only GPT-4.1 Mini measured |
| LMArena Vision: creative writing | 1182 | Not measured | Only GPT-4.1 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-4.1 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-4.1 Mini | Microsoft Phi 4 |
|---|---|---|
| Maker | OpenAI | Microsoft |
| Weights | No public weights listed | Open weights |
| Released | April 14, 2025 | January 10, 2025 |
| Context window | 1.05M | 16K |
| Input $/Mtok | $0.40 | $0.07 |
| Output $/Mtok | $1.60 | $0.14 |
| Coding index | Not benchmarked | Not benchmarked |
| Independent measurements behind it | 0 | 0 |
| Cost per solved task | $1.818 | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GPT-4.1 Mini better than Phi 4 for coding?
Neither model has a coding score yet, so the two cannot be ranked on coding. GPT-4.1 Mini has the edge where the context window is larger, 1.05M against 16K tokens.
Which is cheaper, GPT-4.1 Mini or Phi 4?
GPT-4.1 Mini costs $0.40 per million input tokens and $1.60 per million output tokens; Phi 4 costs $0.07 and $0.14. Cost per solved task is known for GPT-4.1 Mini only.
Which has the bigger context window, GPT-4.1 Mini or Phi 4?
GPT-4.1 Mini, with 1.05M tokens against 16K.
How many benchmarks is the GPT-4.1 Mini vs Phi 4 comparison based on?
42 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 Phi 4's on 0. Where only one model has a result, the page says so instead of naming a winner.