GPT-4o-mini (2024-07-18) vs Phi 4
Phi 4 costs 4.3x less per output token than GPT-4o-mini (2024-07-18) ($0.14 vs $0.60 per million). Updated October 21, 2026; 33 benchmarks have a result for both.
GPT-4o-mini (2024-07-18) or Phi 4: which to pick
Neither model has a coding score yet, so the two cannot be ranked on coding.
Pick GPT-4o-mini (2024-07-18) for a larger context window (128K against 16K tokens) and work measured by GPQA Diamond (Epoch AI run) or OTIS Mock AIME, where it leads.
- Shared results
- 33
- GPT-4o-mini (2024-07-18) only
- 13
- Phi 4 only
- 13
- Like-for-like categories
- 6 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
Neither has a coding score yet.
One side not measured
Intelligence
AA Intelligence Index
No call
Only Phi 4 has a AA Intelligence Index result, 5.9.
Directional only
Long documents
Listed context window
GPT-4o-mini (2024-07-18)
GPT-4o-mini (2024-07-18) takes 128K tokens against 16K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Phi 4
GPT-4o-mini (2024-07-18) $0.0004, Phi 4 $0.0001 per turn.
List prices
At a glance
- Coding index
- GPT-4o-mini (2024-07-18) not benchmarked, Phi 4 not benchmarked.
- Widest category
- Knowledge, 11.3 points apart on average over 5 shared benchmarks.
- Widest single gap
- GPQA Diamond (Epoch AI run): GPT-4o-mini (2024-07-18) 37.7% against Phi 4 56.1%, 18.3 points apart on a 0 to 100 scale.
- Output price
- GPT-4o-mini (2024-07-18) $0.60 against Phi 4 $0.14 per million output tokens, 4.3x apart.
- Context window
- GPT-4o-mini (2024-07-18) takes 128K 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-4o-mini (2024-07-18) | Bars | Phi 4 | Ties |
|---|---|---|---|---|
| Coding | 2 | 0 | ||
| Agentic work | 1 | 0 | ||
| Reasoning | 3 | 1 | ||
| Math | 2 | 2 | ||
| Knowledge | 4 | 1 | ||
| General | 17 | 0 | ||
| All shared boards | 29 | 4 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index20
| Benchmark | GPT-4o-mini (2024-07-18) | Phi 4 | Leader |
|---|---|---|---|
| Aider polyglot | 3.6% | Not measured | Only GPT-4o-mini (2024-07-18) measured |
| LiveCodeBench (Artificial Analysis run) | Not measured | 23.1% | Only Phi 4 measured |
| Terminal-Bench Hard (Artificial Analysis run) | Not measured | 3.8% | Only Phi 4 measured |
| WeirdML | 11.8% | Not measured | Only GPT-4o-mini (2024-07-18) measured |
| LMArena Text: coding | 1290 | 1231 | GPT-4o-mini (2024-07-18) |
| LMArena Text: software and IT | 1291 | 1228 | GPT-4o-mini (2024-07-18) |
| Neither model has a result on the other 33 boards here | |||
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index2 boards, none shared
| Benchmark | GPT-4o-mini (2024-07-18) | Phi 4 | Leader |
|---|---|---|---|
| AA Intelligence Index | Not measured | 5.9 | Only Phi 4 measured |
| Epoch Capabilities Index | Not measured | 130.5 | Only Phi 4 measured |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | GPT-4o-mini (2024-07-18) | Phi 4 | Leader |
|---|---|---|---|
| τ²-Bench Telecom | Not measured | 0.0% | Only Phi 4 measured |
| BALROG | 17.4% | 11.6% | GPT-4o-mini (2024-07-18) |
| Berkeley Function Calling Leaderboard (BFCL) | Not measured | 28.8% | Only Phi 4 measured |
| Neither model has a result on the other 38 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index31
| Benchmark | GPT-4o-mini (2024-07-18) | Phi 4 | Leader |
|---|---|---|---|
| GPQA Diamond (Artificial Analysis run) | Not measured | 57.5% | Only Phi 4 measured |
| Humanity's Last Exam (Artificial Analysis run) | Not measured | 3.8% | Only Phi 4 measured |
| GPQA Diamond (Epoch AI run) | 37.7% | 56.1% | Phi 4 |
| SimpleBench | 10.7% | Not measured | Only GPT-4o-mini (2024-07-18) measured |
| Chess puzzles | 3.0% | Not measured | Only GPT-4o-mini (2024-07-18) measured |
| Mystery game puzzles | 12.0% | Not measured | Only GPT-4o-mini (2024-07-18) measured |
| VPCT | 34.0% | Not measured | Only GPT-4o-mini (2024-07-18) measured |
| LMArena Text: hard prompts | 1267 | 1220 | GPT-4o-mini (2024-07-18) |
| LMArena Text: expert | 1234 | 1203 | GPT-4o-mini (2024-07-18) |
| LMArena Text: hard prompts in English | 1278 | 1230 | GPT-4o-mini (2024-07-18) |
| Neither model has a result on the other 12 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index22
| Benchmark | GPT-4o-mini (2024-07-18) | Phi 4 | Leader |
|---|---|---|---|
| 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 | 6.9% | 13.8% | Phi 4 |
| FrontierMath, tiers 1 to 3 | 0.7% | Not measured | Only GPT-4o-mini (2024-07-18) measured |
| MATH level 5 | 52.6% | 64.9% | Phi 4 |
| LMArena Text: math | 1267 | 1246 | GPT-4o-mini (2024-07-18) |
| LMArena Text: mathematical work | 1271 | 1254 | GPT-4o-mini (2024-07-18) |
| Neither model has a result on the other 6 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index41
| Benchmark | GPT-4o-mini (2024-07-18) | Phi 4 | Leader |
|---|---|---|---|
| MMLU Pro (Artificial Analysis run) | Not measured | 71.4% | Only Phi 4 measured |
| SimpleQA Verified | 8.3% | Not measured | Only GPT-4o-mini (2024-07-18) measured |
| MMLU | 76.7% | 84.8% | Phi 4 |
| GeoBench | 64.0% | Not measured | Only GPT-4o-mini (2024-07-18) measured |
| LMArena Text: science | 1286 | 1206 | GPT-4o-mini (2024-07-18) |
| LMArena Text: medicine and healthcare | 1282 | 1202 | GPT-4o-mini (2024-07-18) |
| LMArena Text: legal and government | 1305 | 1241 | GPT-4o-mini (2024-07-18) |
| LMArena Text: business and finance | 1265 | 1199 | GPT-4o-mini (2024-07-18) |
| Neither model has a result on the other 10 boards here | |||
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GPT-4o-mini (2024-07-18) | Phi 4 | Leader |
|---|---|---|---|
| Neither model has a result on 9 boards here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index170
| Benchmark | GPT-4o-mini (2024-07-18) | Phi 4 | Leader |
|---|---|---|---|
| IFBench | Not measured | 23.5% | Only Phi 4 measured |
| Long context reasoning (AA-LCR) | Not measured | 0.0% | Only Phi 4 measured |
| Creative writing (Lech Mazur) | 67.2% | 62.6% | GPT-4o-mini (2024-07-18) |
| LMArena Text | 1286 | 1217 | GPT-4o-mini (2024-07-18) |
| LMArena Text: instruction following | 1258 | 1201 | GPT-4o-mini (2024-07-18) |
| LMArena Text: creative writing | 1268 | 1181 | GPT-4o-mini (2024-07-18) |
| LMArena Vision | 1066 | Not measured | Only GPT-4o-mini (2024-07-18) measured |
| LMArena Text: English | 1301 | 1231 | GPT-4o-mini (2024-07-18) |
| LMArena Text: non-English | 1266 | 1197 | GPT-4o-mini (2024-07-18) |
| LMArena Text: Chinese | 1265 | 1212 | GPT-4o-mini (2024-07-18) |
| LMArena Text: German | 1272 | 1222 | GPT-4o-mini (2024-07-18) |
| LMArena Text: Japanese | 1216 | 1158 | GPT-4o-mini (2024-07-18) |
| LMArena Text: Korean | 1195 | 1151 | GPT-4o-mini (2024-07-18) |
| LMArena Text: French | 1297 | 1224 | GPT-4o-mini (2024-07-18) |
| LMArena Text: Spanish | 1276 | 1234 | GPT-4o-mini (2024-07-18) |
| LMArena Text: Russian | 1275 | 1209 | GPT-4o-mini (2024-07-18) |
| LMArena Text: Polish | 1244 | Not measured | Only GPT-4o-mini (2024-07-18) measured |
| LMArena Text: multi-turn | 1285 | 1206 | GPT-4o-mini (2024-07-18) |
| LMArena Text: longer queries | 1289 | 1217 | GPT-4o-mini (2024-07-18) |
| LMArena Text: writing and language | 1282 | 1198 | GPT-4o-mini (2024-07-18) |
| LMArena Text: entertainment and media | 1253 | 1162 | GPT-4o-mini (2024-07-18) |
| LMArena Vision: English | 1072 | Not measured | Only GPT-4o-mini (2024-07-18) measured |
| LMArena Vision: Chinese | 1033 | Not measured | Only GPT-4o-mini (2024-07-18) measured |
| Neither model has a result on the other 23 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GPT-4o-mini (2024-07-18) | 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-4o-mini (2024-07-18) | Microsoft Phi 4 |
|---|---|---|
| Maker | OpenAI | Microsoft |
| Weights | No public weights listed | Open weights |
| Released | July 18, 2024 | January 10, 2025 |
| Context window | 128K | 16K |
| Input $/Mtok | $0.15 | $0.07 |
| Output $/Mtok | $0.60 | $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-4o-mini (2024-07-18) better than Phi 4 for coding?
Neither model has a coding score yet, so the two cannot be ranked on coding. Pick GPT-4o-mini (2024-07-18) for a larger context window (128K against 16K tokens) and work measured by GPQA Diamond (Epoch AI run) or OTIS Mock AIME, where it leads.
Which is cheaper, GPT-4o-mini (2024-07-18) or Phi 4?
GPT-4o-mini (2024-07-18) costs $0.15 per million input tokens and $0.60 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-4o-mini (2024-07-18) or Phi 4?
GPT-4o-mini (2024-07-18), with 128K tokens against 16K.
How many benchmarks is the GPT-4o-mini (2024-07-18) vs Phi 4 comparison based on?
33 benchmarks have a result for both models as of October 21, 2026. GPT-4o-mini (2024-07-18)'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.