Enter opens the highlighted result. Esc closes.

Phi 4 vs o4 Mini

o4 Mini leads Phi 4 on the Artificial Analysis Intelligence Index, 16.7 to 5.9, and Phi 4 costs 31.4x less per output token ($0.14 vs $4.40 per million). Updated October 22, 2026; 44 benchmarks have a result for both.

Phi 4Microsoft
Coding
No data
Overall
24.7
Output $/M
$0.14
0
o4 MiniOpenAI
Coding
No data
Overall
43.0
Output $/M
$4.40
44
vs boards won of 44 shared

Phi 4 or o4 Mini: which to pick

Neither model has a coding score yet, so the two cannot be ranked on coding.

Pick Phi 4 for output tokens 31.4x cheaper ($0.14 vs $4.40 per million) and work measured by LiveCodeBench (Artificial Analysis run) or Terminal-Bench Hard (Artificial Analysis run), where it leads.

Shared results
44
Phi 4 only
2
o4 Mini only
54
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.

At a glance

Coding index
Phi 4 not benchmarked, o4 Mini not benchmarked.
Widest category
Math, 48.5 points apart on average over 6 shared benchmarks.
Widest single gap
AA Math Index: Phi 4 18.0 against o4 Mini 90.7, 72.7 points apart on a 0 to 100 scale.
Output price
Phi 4 $0.14 against o4 Mini $4.40 per million output tokens, 31.4x apart.
Context window
Phi 4 takes 16K tokens, o4 Mini 200K.

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
CategoryPhi 4Barso4 MiniTies
Coding04
Intelligence02
Agentic work02
Reasoning06
Math06
Knowledge05
General019
All shared boards044
CodingLike-for-likeSix of these boards feed the Vibe Coding Index04
Coding benchmarks for Phi 4 and o4 Mini
BenchmarkPhi 4o4 MiniLeader
Aider polyglotNot measured72.0%Only o4 Mini measured
SWE-bench VerifiedNot measured64.6%Only o4 Mini measured
SWE-bench MultimodalNot measured33.9%Only o4 Mini measured
LiveCodeBench (Vals AI)Not measured82.2%Only o4 Mini measured
LiveCodeBench (Artificial Analysis run)23.1%85.9%o4 Mini
Terminal-Bench Hard (Artificial Analysis run)3.8%15.2%o4 Mini
GSO-BenchNot measured3.6%Only o4 Mini measured
WeirdMLNot measured52.6%Only o4 Mini measured
LMArena Text: coding12311368o4 Mini
LMArena Text: software and IT12281367o4 Mini
SciCodeNot measured10.8%Only o4 Mini measured
Neither model has a result on the other 28 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Phi 4 and o4 Mini
BenchmarkPhi 4o4 MiniLeader
AA Intelligence Index5.916.7o4 Mini
Epoch Capabilities Index130.5145.5o4 Mini
Agentic workLike-for-likePublic boards, shown as published, kept out of the index02
Agentic work benchmarks for Phi 4 and o4 Mini
BenchmarkPhi 4o4 MiniLeader
τ²-Bench Telecom0.0%55.6%o4 Mini
METR time horizonsNot measured63.9%Only o4 Mini measured
BALROG11.6%Not measuredOnly Phi 4 measured
Berkeley Function Calling Leaderboard (BFCL)28.8%53.2%o4 Mini
Neither model has a result on the other 37 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index06
Reasoning benchmarks for Phi 4 and o4 Mini
BenchmarkPhi 4o4 MiniLeader
GPQA DiamondNot measured74.5%Only o4 Mini measured
MMMU Pro (Vals AI)Not measured79.7%Only o4 Mini measured
GPQA Diamond (Artificial Analysis run)57.5%78.4%o4 Mini
Humanity's Last Exam (Artificial Analysis run)3.8%16.5%o4 Mini
GPQA Diamond (Epoch AI run)56.1%79.6%o4 Mini
ARC-AGINot measured58.7%Only o4 Mini measured
ARC-AGI-2Not measured6.1%Only o4 Mini measured
SimpleBenchNot measured38.7%Only o4 Mini measured
Chess puzzlesNot measured22.0%Only o4 Mini measured
Mystery game puzzlesNot measured5.0%Only o4 Mini measured
VPCTNot measured57.5%Only o4 Mini measured
LMArena Text: hard prompts12201351o4 Mini
LMArena Text: expert12031343o4 Mini
LMArena Text: hard prompts in English12301366o4 Mini
LMArena Vision: diagramsNot measured1197Only o4 Mini measured
LMArena Vision: homeworkNot measured1234Only o4 Mini measured
Kagi LLM BenchmarkNot measured67.6%Only o4 Mini measured
Neither model has a result on the other 5 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index06
Math benchmarks for Phi 4 and o4 Mini
BenchmarkPhi 4o4 MiniLeader
AIMENot measured83.7%Only o4 Mini measured
MATH 500 (Vals AI)Not measured94.2%Only o4 Mini measured
MGSM (Vals AI)Not measured93.4%Only o4 Mini measured
AA Math Index18.090.7o4 Mini
AIME 2025 (Artificial Analysis run)18.0%90.7%o4 Mini
OTIS Mock AIME13.8%81.7%o4 Mini
FrontierMath, tiers 1 to 3Not measured36.1%Only o4 Mini measured
FrontierMath, tier 4Not measured4.9%Only o4 Mini measured
MATH level 564.9%97.8%o4 Mini
LMArena Text: math12461389o4 Mini
LMArena Text: mathematical work12541379o4 Mini
Neither model has a result on the other 2 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index05
Knowledge benchmarks for Phi 4 and o4 Mini
BenchmarkPhi 4o4 MiniLeader
MMLU ProNot measured80.6%Only o4 Mini measured
LegalBench (Vals AI)Not measured79.2%Only o4 Mini measured
CorpFin (Vals AI)Not measured59.0%Only o4 Mini measured
TaxEval (Vals AI)Not measured74.8%Only o4 Mini measured
MortgageTax (Vals AI)Not measured64.8%Only o4 Mini measured
MedQA (Vals AI)Not measured96.0%Only o4 Mini measured
MedCode (Vals AI)Not measured33.8%Only o4 Mini measured
MMLU Pro (Artificial Analysis run)71.4%83.2%o4 Mini
SimpleQA VerifiedNot measured19.6%Only o4 Mini measured
MMLU84.8%Not measuredOnly Phi 4 measured
GeoBenchNot measured64.0%Only o4 Mini measured
LMArena Text: science12061354o4 Mini
LMArena Text: medicine and healthcare12021361o4 Mini
LMArena Text: legal and government12411350o4 Mini
LMArena Text: business and finance11991325o4 Mini
FACTS Benchmark SuiteNot measured28.1%Only o4 Mini measured
Neither model has a result on the other 2 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
Web design benchmarks for Phi 4 and o4 Mini
BenchmarkPhi 4o4 MiniLeader
Design Arena: websitesNot measured985Only o4 Mini measured
Design Arena: UI componentsNot measured983Only o4 Mini measured
Design Arena: game devNot measured1003Only o4 Mini measured
Design Arena: data vizNot measured991Only o4 Mini measured
Design Arena: 3DNot measured854Only o4 Mini measured
Design Arena: all code categoriesNot measured976Only o4 Mini measured
Neither model has a result on the other 3 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index019
General benchmarks for Phi 4 and o4 Mini
BenchmarkPhi 4o4 MiniLeader
SAGE (Vals AI)Not measured41.1%Only o4 Mini measured
MedScribe (Vals AI)Not measured69.1%Only o4 Mini measured
IFBench23.5%68.7%o4 Mini
Long context reasoning (AA-LCR)0.0%61.0%o4 Mini
DTBenchNot measured77.6%Only o4 Mini measured
LMCANot measured26.5%Only o4 Mini measured
Fiction.LiveBenchNot measured77.8%Only o4 Mini measured
Creative writing (Lech Mazur)62.6%75.0%o4 Mini
LMArena Text12171353o4 Mini
LMArena Text: instruction following12011320o4 Mini
LMArena Text: creative writing11811294o4 Mini
LMArena VisionNot measured1194Only o4 Mini measured
LMArena Text: English12311367o4 Mini
LMArena Text: non-English11971337o4 Mini
LMArena Text: Chinese12121354o4 Mini
LMArena Text: German12221336o4 Mini
LMArena Text: Japanese11581308o4 Mini
LMArena Text: Korean11511312o4 Mini
LMArena Text: French12241364o4 Mini
LMArena Text: Spanish12341346o4 Mini
LMArena Text: Russian12091334o4 Mini
LMArena Text: PolishNot measured1358Only o4 Mini measured
LMArena Text: multi-turn12061350o4 Mini
LMArena Text: longer queries12171315o4 Mini
LMArena Text: writing and language11981316o4 Mini
LMArena Text: entertainment and media11621308o4 Mini
LMArena Vision: EnglishNot measured1200Only o4 Mini measured
LMArena Vision: ChineseNot measured1218Only o4 Mini measured
LMArena Vision: reading textNot measured1197Only o4 Mini measured
LMArena Vision: humorNot measured1199Only o4 Mini measured
LMArena Vision: captioningNot measured1204Only o4 Mini measured
LMArena Vision: recognizing thingsNot measured1218Only o4 Mini measured
LMArena Vision: creative writingNot measured1166Only o4 Mini measured
Neither model has a result on the other 13 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Phi 4 and o4 Mini
BenchmarkPhi 4o4 MiniLeader
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$0.0001Fits in one request
o4 Mini$0.0033Fits in one request

Phi 4 costs less

Repository review

50K input + 3K output tokens

Phi 4$0.0039Exceeds the context window
o4 Mini$0.068Fits in one request

Phi 4 costs less

Agent loop

200K input + 10K output tokens

Phi 4$0.015Exceeds the context window
o4 Mini$0.264Exceeds the context window

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.

Specifications of Phi 4 and o4 Mini
SpecificationMicrosoft Phi 4OpenAI o4 Mini
MakerMicrosoftOpenAI
WeightsOpen weightsNo public weights listed
ReleasedJanuary 10, 2025April 16, 2025
Context window16K200K
Input $/Mtok$0.07$1.10
Output $/Mtok$0.14$4.40
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it00
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Phi 4 better than o4 Mini for coding?

Neither model has a coding score yet, so the two cannot be ranked on coding. Pick Phi 4 for output tokens 31.4x cheaper ($0.14 vs $4.40 per million) and work measured by LiveCodeBench (Artificial Analysis run) or Terminal-Bench Hard (Artificial Analysis run), where it leads.

Which is cheaper, Phi 4 or o4 Mini?

Phi 4 costs $0.07 per million input tokens and $0.14 per million output tokens; o4 Mini costs $1.10 and $4.40. Cost per solved task is known for neither of them.

Which has the bigger context window, Phi 4 or o4 Mini?

o4 Mini, with 200K tokens against 16K.

How many benchmarks is the Phi 4 vs o4 Mini comparison based on?

44 benchmarks have a result for both models as of October 22, 2026. Phi 4's coding index rests on 0 independent benchmarks and o4 Mini's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next