LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

Microsoft Phi 4

As of October 20, 2026, Microsoft Phi 4 ranks #201 of 213 models overall with 5.9 on the Artificial Analysis Intelligence Index. Its strongest category is knowledge, where it ranks #118 of 147. Microsoft Phi 4 costs $0.07 per million input tokens and $0.14 per million output tokens. It was released on January 10, 2025.

Its output price ranks 21 of 349 priced models, counting from the cheapest.

  • Coding index Not benchmarked No benchmark coverage
  • Cost per solved task Not computable No published attempt cost
  • Output, per million tokens $0.14 21 of 349 from the cheapest
  • Input, per million tokens $0.07 OpenRouter list price
  • Context window 16K Tokens per request
  • Downloads, 30 days 366.1K Hugging Face

About and specs

[Microsoft Research](/microsoft) Phi-4 is designed to perform well in complex reasoning tasks and can operate efficiently in situations with limited memory or where quick responses are needed. At 14 billion...

API model id microsoft/phi-4
  • Tool callingNot listed
  • Structured outputsListed
  • JSON modeListed
  • Reasoning modeNot listed
  • Web searchNot listed
Takes in
Text
Gives back
Text
Context window
16K tokens
Max output
15K tokens
Knowledge cutoff
June 30, 2024
Cached input $/Mtok
No cache price listed
Cache write $/Mtok
No cache write price listed
Reasoning $/Mtok
Not priced apart
Web search, per request
No search price listed
Tokenizer
Not named
Requests moderated
No
Withdrawn on
No date announced
Parameters
14.7B, per its Hugging Face weights
Downloads, all time
14.7M on Hugging Face
Training compute
9.3e23 FLOP, Epoch AI estimate
Output speed
45 tokens/s
Time to first token
1.0 s
Speed on OpenRouter
Not measured
First token on OpenRouter
Not measured

Benchmarks: 45 of 190 measured

The tick on a coding bar is the median of every model measured on it. Outside coding, the place is this model's rank on that board. A board that never ran the model says so.

Coding index

Not benchmarked
  • Aider polyglot Not measured
  • SWE-bench Verified Not measured
  • LiveBench coding Not measured
  • LMArena WebDev Elo, scaled from 1200 to 1900 Not measured

No coding benchmark has measured this model, so there is no index. We do not estimate one from its price, its maker or its siblings. How it is weighted

Other public boards

All rankings

Best placings

  1. MMLU#5 of 23
  2. MATH level 5#17 of 28
  3. MMLU Pro (Artificial Analysis run)#57 of 86
  4. AA Math Index#54 of 72

Lowest placings

  1. IFBench#130 of 131
  2. τ²-Bench Telecom#127 of 129
  3. LMArena Text: Spanish#121 of 123

Coding4 of 34 boards

Not measured on SWE-bench Lite, SWE-bench (full test set), SWE-bench Multimodal, SWE-bench Multilingual, AA Coding Index, LiveCodeBench (Vals AI), SWE-bench Verified (Vals AI), Terminal-Bench 4 (Vals AI), Vibe Code Bench (Vals AI), Code migration (Vals AI), ProgramBench (Vals AI), IOI (Vals AI), Terminal-Bench 2.1 (Vals AI), SWE-bench Multimodal (Vals AI), Vibe Code Bench 1-100 (Vals AI), SkillsBench (Vals AI), CyberBench (Vals AI), SciCode, Terminal-Bench, DeepSWE, FrontierCode, FrontierSWE, GSO-Bench, WeirdML, MirrorCode, Cybench, ALE-Bench, LMArena WebDev: React, LMArena WebDev: HTML, LMArena WebDev: from an image

Intelligence2 of 2 boards

Agentic work2 of 39 boards

Not measured on AA Agentic Index, Design Arena: agents building web apps, Design Arena: agents building full-stack apps, Design Arena: agents building mobile apps, Design Arena: agents building Android apps, Design Arena: agents building Godot games, Design Arena: agents building games, Design Arena: HTML slides, Design Arena: PowerPoint slides, Design Arena: spreadsheets, LiveBench research, LiveBench browser, LiveBench long agentic, SREBench (Vals AI), Finance Agent (Vals AI), Tax Agent Bench (Vals AI), Legal Research Bench (Vals AI), Harvey's Legal Agent Benchmark (Vals AI), Excel Modeling Benchmark (Vals AI), BioMysteryBench (Vals AI), Terminal-Bench-Science (Vals AI), Vals Science Index, Time Horizon Index (Vals AI), CUA-bench (Vals AI), Robo-bench (Vals AI), APEX-Agents, METR time horizons, Remote Labor Index, GDPval, OSWorld 2.0, DeepResearch Bench, PostTrainBench, TheAgentCompany, OSWorld, SpireClimb, Vending-Bench 2, LMArena Search

Reasoning6 of 21 boards

Not measured on GPQA Diamond, LiveBench reasoning, MysteryMechanism (Vals AI), MMMU Pro (Vals AI), ARC-AGI, ARC-AGI-2, Humanity's Last Exam, SimpleBench, Chess puzzles, Mystery game puzzles, EBR-bench, VPCT, BIG-Bench Hard, LMArena Vision: diagrams, LMArena Vision: homework

Math6 of 13 boards

Not measured on AIME, MATH 500 (Vals AI), MGSM (Vals AI), FrontierMath, tiers 1 to 3, FrontierMath, tier 4, ProofBench, GSM8K

Knowledge6 of 17 boards

Not measured on MMLU Pro, LegalBench (Vals AI), CaseLaw (Vals AI), CorpFin (Vals AI), TaxEval (Vals AI), MortgageTax (Vals AI), MedQA (Vals AI), MedCode (Vals AI), SimpleQA Verified, GeoBench, AI2 Reasoning Challenge

Web design0 of 9 boards

Not measured on Design Arena: websites, Design Arena: UI components, Design Arena: game dev, Design Arena: data viz, Design Arena: 3D, Design Arena: all code categories, Design Arena: SVG, Design Arena: ASCII art, LiveBench design

General19 of 46 boards

13 more general boards

Not measured on Vals Index, LiveBench data analysis, Public Benefits Bench (Vals AI), SAGE (Vals AI), MedScribe (Vals AI), Vals Multimodal Index, DTBench, LMCA, Fiction.LiveBench, CL-bench, Surface Evolver Bench, Furniture assembly, ExploitBench, HellaSwag, WinoGrande, PIQA, CL-bench Life, LMArena Vision, LMArena Text: Polish, LMArena Vision: English, LMArena Vision: Chinese, LMArena Vision: reading text, LMArena Vision: humor, LMArena Vision: captioning, LMArena Vision: recognizing things, LMArena Vision: creative writing, LMArena Document

Image generation0 of 5 boards

Not measured on Design Arena: images, Design Arena: graphic design, Design Arena: logos, LMArena Text to Image, LMArena Image Edit

Public boards shown as published (Vals AI, Artificial Analysis, Design Arena) and kept out of the coding index. Each links to its source on the benchmark page.

All 190 benchmarks as a table
Benchmark results for Microsoft Phi 4
BenchmarkResultIndex weight
Aider polyglotCoding Not measured 35%
SWE-bench VerifiedCoding Not measured 30%
SWE-bench LiteCoding Not measured Not in index
SWE-bench (full test set)Coding Not measured Not in index
SWE-bench MultimodalCoding Not measured Not in index
SWE-bench MultilingualCoding Not measured Not in index
LiveBench codingCoding Not measured 20%
LMArena WebDevCoding Not measured 15%
Vals IndexGeneral Not measured Not in index
GPQA DiamondReasoning Not measured Not in index
AIMEMath Not measured Not in index
MMLU ProKnowledge Not measured Not in index
AA Intelligence IndexIntelligence 5.9 Not in index
AA Coding IndexCoding Not measured Not in index
AA Agentic IndexAgentic work Not measured Not in index
Design Arena: websitesWeb design Not measured Not in index
Design Arena: UI componentsWeb design Not measured Not in index
Design Arena: game devWeb design Not measured Not in index
Design Arena: data vizWeb design Not measured Not in index
Design Arena: 3DWeb design Not measured Not in index
Design Arena: all code categoriesWeb design Not measured Not in index
Design Arena: SVGWeb design Not measured Not in index
Design Arena: ASCII artWeb design Not measured Not in index
Design Arena: agents building web appsAgentic work Not measured Not in index
Design Arena: agents building full-stack appsAgentic work Not measured Not in index
Design Arena: agents building mobile appsAgentic work Not measured Not in index
Design Arena: agents building Android appsAgentic work Not measured Not in index
Design Arena: agents building Godot gamesAgentic work Not measured Not in index
Design Arena: agents building gamesAgentic work Not measured Not in index
Design Arena: HTML slidesAgentic work Not measured Not in index
Design Arena: PowerPoint slidesAgentic work Not measured Not in index
Design Arena: spreadsheetsAgentic work Not measured Not in index
Design Arena: imagesImage generation Not measured Not in index
Design Arena: graphic designImage generation Not measured Not in index
Design Arena: logosImage generation Not measured Not in index
LiveBench reasoningReasoning Not measured Not in index
LiveBench data analysisGeneral Not measured Not in index
LiveBench researchAgentic work Not measured Not in index
LiveBench browserAgentic work Not measured Not in index
LiveBench long agenticAgentic work Not measured Not in index
LiveBench designWeb design Not measured Not in index
LiveCodeBench (Vals AI)Coding Not measured Not in index
SWE-bench Verified (Vals AI)Coding Not measured Not in index
Terminal-Bench 4 (Vals AI)Coding Not measured Not in index
Vibe Code Bench (Vals AI)Coding Not measured Not in index
Code migration (Vals AI)Coding Not measured Not in index
ProgramBench (Vals AI)Coding Not measured Not in index
SREBench (Vals AI)Agentic work Not measured Not in index
IOI (Vals AI)Coding Not measured Not in index
Terminal-Bench 2.1 (Vals AI)Coding Not measured Not in index
SWE-bench Multimodal (Vals AI)Coding Not measured Not in index
Vibe Code Bench 1-100 (Vals AI)Coding Not measured Not in index
SkillsBench (Vals AI)Coding Not measured Not in index
CyberBench (Vals AI)Coding Not measured Not in index
Finance Agent (Vals AI)Agentic work Not measured Not in index
Tax Agent Bench (Vals AI)Agentic work Not measured Not in index
Legal Research Bench (Vals AI)Agentic work Not measured Not in index
Harvey's Legal Agent Benchmark (Vals AI)Agentic work Not measured Not in index
Excel Modeling Benchmark (Vals AI)Agentic work Not measured Not in index
BioMysteryBench (Vals AI)Agentic work Not measured Not in index
Terminal-Bench-Science (Vals AI)Agentic work Not measured Not in index
Vals Science IndexAgentic work Not measured Not in index
Time Horizon Index (Vals AI)Agentic work Not measured Not in index
CUA-bench (Vals AI)Agentic work Not measured Not in index
Robo-bench (Vals AI)Agentic work Not measured Not in index
Public Benefits Bench (Vals AI)General Not measured Not in index
MysteryMechanism (Vals AI)Reasoning Not measured Not in index
MMMU Pro (Vals AI)Reasoning Not measured Not in index
MATH 500 (Vals AI)Math Not measured Not in index
MGSM (Vals AI)Math Not measured Not in index
SAGE (Vals AI)General Not measured Not in index
LegalBench (Vals AI)Knowledge Not measured Not in index
CaseLaw (Vals AI)Knowledge Not measured Not in index
CorpFin (Vals AI)Knowledge Not measured Not in index
TaxEval (Vals AI)Knowledge Not measured Not in index
MortgageTax (Vals AI)Knowledge Not measured Not in index
MedQA (Vals AI)Knowledge Not measured Not in index
MedCode (Vals AI)Knowledge Not measured Not in index
MedScribe (Vals AI)General Not measured Not in index
Vals Multimodal IndexGeneral Not measured Not in index
AA Math IndexMath 18.0 Not in index
GPQA Diamond (Artificial Analysis run)Reasoning 57.5% Not in index
Humanity's Last Exam (Artificial Analysis run)Reasoning 3.8% Not in index
MMLU Pro (Artificial Analysis run)Knowledge 71.4% Not in index
LiveCodeBench (Artificial Analysis run)Coding 23.1% Not in index
SciCodeCoding Not measured Not in index
Terminal-Bench Hard (Artificial Analysis run)Coding 3.8% Not in index
IFBenchGeneral 23.5% Not in index
Long context reasoning (AA-LCR)General 0.0% Not in index
τ²-Bench TelecomAgentic work 0.0% Not in index
AIME 2025 (Artificial Analysis run)Math 18.0% Not in index
Terminal-BenchCoding Not measured Not in index
DeepSWECoding Not measured Not in index
FrontierCodeCoding Not measured Not in index
FrontierSWECoding Not measured Not in index
GSO-BenchCoding Not measured Not in index
WeirdMLCoding Not measured Not in index
MirrorCodeCoding Not measured Not in index
APEX-AgentsAgentic work Not measured Not in index
METR time horizonsAgentic work Not measured Not in index
Remote Labor IndexAgentic work Not measured Not in index
GDPvalAgentic work Not measured Not in index
OSWorld 2.0Agentic work Not measured Not in index
BALROGAgentic work 11.6% Not in index
DeepResearch BenchAgentic work Not measured Not in index
PostTrainBenchAgentic work Not measured Not in index
GPQA Diamond (Epoch AI run)Reasoning 56.1% Not in index
ARC-AGIReasoning Not measured Not in index
ARC-AGI-2Reasoning Not measured Not in index
Humanity's Last ExamReasoning Not measured Not in index
SimpleBenchReasoning Not measured Not in index
Chess puzzlesReasoning Not measured Not in index
Mystery game puzzlesReasoning Not measured Not in index
EBR-benchReasoning Not measured Not in index
OTIS Mock AIMEMath 13.8% Not in index
FrontierMath, tiers 1 to 3Math Not measured Not in index
FrontierMath, tier 4Math Not measured Not in index
ProofBenchMath Not measured Not in index
MATH level 5Math 64.9% Not in index
GSM8KMath Not measured Not in index
SimpleQA VerifiedKnowledge Not measured Not in index
MMLUKnowledge 84.8% Not in index
GeoBenchKnowledge Not measured Not in index
DTBenchGeneral Not measured Not in index
LMCAGeneral Not measured Not in index
Fiction.LiveBenchGeneral Not measured Not in index
Creative writing (Lech Mazur)General 62.6% Not in index
CL-benchGeneral Not measured Not in index
Surface Evolver BenchGeneral Not measured Not in index
Furniture assemblyGeneral Not measured Not in index
ExploitBenchGeneral Not measured Not in index
CybenchCoding Not measured Not in index
TheAgentCompanyAgentic work Not measured Not in index
OSWorldAgentic work Not measured Not in index
SpireClimbAgentic work Not measured Not in index
VPCTReasoning Not measured Not in index
BIG-Bench HardReasoning Not measured Not in index
AI2 Reasoning ChallengeKnowledge Not measured Not in index
HellaSwagGeneral Not measured Not in index
WinoGrandeGeneral Not measured Not in index
PIQAGeneral Not measured Not in index
CL-bench LifeGeneral Not measured Not in index
ALE-BenchCoding Not measured Not in index
Vending-Bench 2Agentic work Not measured Not in index
Epoch Capabilities IndexIntelligence 130.4 Not in index
LMArena TextGeneral 1217 Not in index
LMArena Text: codingCoding 1231 Not in index
LMArena Text: hard promptsReasoning 1219 Not in index
LMArena Text: mathMath 1246 Not in index
LMArena Text: instruction followingGeneral 1201 Not in index
LMArena Text: creative writingGeneral 1181 Not in index
LMArena VisionGeneral Not measured Not in index
LMArena Text: EnglishGeneral 1231 Not in index
LMArena Text: non-EnglishGeneral 1197 Not in index
LMArena Text: ChineseGeneral 1211 Not in index
LMArena Text: GermanGeneral 1222 Not in index
LMArena Text: JapaneseGeneral 1158 Not in index
LMArena Text: KoreanGeneral 1151 Not in index
LMArena Text: FrenchGeneral 1224 Not in index
LMArena Text: SpanishGeneral 1234 Not in index
LMArena Text: RussianGeneral 1209 Not in index
LMArena Text: PolishGeneral Not measured Not in index
LMArena Text: multi-turnGeneral 1206 Not in index
LMArena Text: longer queriesGeneral 1217 Not in index
LMArena Text: expertReasoning 1203 Not in index
LMArena Text: hard prompts in EnglishReasoning 1230 Not in index
LMArena Text: software and ITCoding 1228 Not in index
LMArena Text: mathematical workMath 1254 Not in index
LMArena Text: scienceKnowledge 1206 Not in index
LMArena Text: medicine and healthcareKnowledge 1202 Not in index
LMArena Text: legal and governmentKnowledge 1241 Not in index
LMArena Text: business and financeKnowledge 1199 Not in index
LMArena Text: writing and languageGeneral 1198 Not in index
LMArena Text: entertainment and mediaGeneral 1162 Not in index
LMArena WebDev: ReactCoding Not measured Not in index
LMArena WebDev: HTMLCoding Not measured Not in index
LMArena WebDev: from an imageCoding Not measured Not in index
LMArena Vision: EnglishGeneral Not measured Not in index
LMArena Vision: ChineseGeneral Not measured Not in index
LMArena Vision: reading textGeneral Not measured Not in index
LMArena Vision: diagramsReasoning Not measured Not in index
LMArena Vision: homeworkReasoning Not measured Not in index
LMArena Vision: humorGeneral Not measured Not in index
LMArena Vision: captioningGeneral Not measured Not in index
LMArena Vision: recognizing thingsGeneral Not measured Not in index
LMArena Vision: creative writingGeneral Not measured Not in index
LMArena SearchAgentic work Not measured Not in index
LMArena DocumentGeneral Not measured Not in index
LMArena Text to ImageImage generation Not measured Not in index
LMArena Image EditImage generation Not measured Not in index

What it costs

A list price says what a token costs. The cost per solved task says what a working answer costs, which is the number that decides.

Output price against the market

Phi 4 pricing
$0.0112Dashed line: median $1.80, log scale$600.00
$0.14 per million output tokens is cheaper than 95% of the 344 paid models in the catalog.

Cost per solved task

How it is computed

Neither board that publishes what a SWE-bench Verified attempt costs, Vals AI and swebench.com, has run this model. We leave the number out rather than estimate it.

Nearly as good as Phi 4, for less

What the boards say about its runs

Beside a result, many boards publish what the run cost, how long it took, the tokens it spent or the votes behind a rating. Each figure as its board printed it, one board per row.

What each board publishes about the runs behind Microsoft: Phi 4's results
BoardResultWhat the run costAlso published
LMArena Text 1217 Elo Not published Votes 24,126 · Interval (±) ±4.6
LMArena Text: coding 1231 Elo Not published Votes 3,305 · Interval (±) ±9.8
LMArena Text: hard prompts 1219 Elo Not published Votes 5,747 · Interval (±) ±7.8
LMArena Text: math 1246 Elo Not published Votes 2,764 · Interval (±) ±10.5
LMArena Text: instruction following 1201 Elo Not published Votes 9,162 · Interval (±) ±6.6
LMArena Text: creative writing 1181 Elo Not published Votes 4,062 · Interval (±) ±9.7
LMArena Text: English 1231 Elo Not published Votes 14,101 · Interval (±) ±5.8
LMArena Text: non-English 1197 Elo Not published Votes 10,025 · Interval (±) ±6.4
LMArena Text: Chinese 1211 Elo Not published Votes 1,503 · Interval (±) ±15.5
LMArena Text: German 1222 Elo Not published Votes 523 · Interval (±) ±25.4
LMArena Text: Japanese 1158 Elo Not published Votes 500 · Interval (±) ±26.6
LMArena Text: Korean 1151 Elo Not published Votes 319 · Interval (±) ±33.1
15 more boards
What each board publishes about the runs behind Microsoft: Phi 4's results, continued
LMArena Text: French 1224 Elo Not published Votes 205 · Interval (±) ±39.6
LMArena Text: Spanish 1234 Elo Not published Votes 127 · Interval (±) ±51.4
LMArena Text: Russian 1209 Elo Not published Votes 2,576 · Interval (±) ±11.2
LMArena Text: multi-turn 1206 Elo Not published Votes 3,517 · Interval (±) ±10.2
LMArena Text: longer queries 1217 Elo Not published Votes 2,896 · Interval (±) ±10.8
LMArena Text: expert 1203 Elo Not published Votes 1,124 · Interval (±) ±17.2
LMArena Text: hard prompts in English 1230 Elo Not published Votes 3,804 · Interval (±) ±9.4
LMArena Text: software and IT 1228 Elo Not published Votes 5,580 · Interval (±) ±8.1
LMArena Text: mathematical work 1254 Elo Not published Votes 2,350 · Interval (±) ±11.6
LMArena Text: science 1206 Elo Not published Votes 4,245 · Interval (±) ±9.6
LMArena Text: medicine and healthcare 1202 Elo Not published Votes 1,037 · Interval (±) ±19.4
LMArena Text: legal and government 1241 Elo Not published Votes 1,341 · Interval (±) ±16.6
LMArena Text: business and finance 1199 Elo Not published Votes 2,438 · Interval (±) ±12.1
LMArena Text: writing and language 1198 Elo Not published Votes 6,470 · Interval (±) ±7.7
LMArena Text: entertainment and media 1162 Elo Not published Votes 4,486 · Interval (±) ±9.0

On these lists

No comparison page of its own yet: one needs a coding index on both sides, and Phi 4 has none. Compare Phi 4 with any model