Models / Microsoft/ Phi 4

Phi 4

Microsoft · released Dec 11, 2024 · microsoft/phi-4

Input: text. Output: text.InputOutput
Type
Open weightsMIT License
Params
14.7B
Context
16K

about 12K words of context

Our take

Written Aug 4, 2026

Microsoft's Phi-4 is a 14.7-billion-parameter text-only model from late 2024 with a permissive MIT licence. It is now clearly behind 2026 peers in both quality and request limit, but it is cheap.

Who should pick it

Use this only for legacy pipelines already built on Phi-4 that value stability over quality, or ultra-cheap bulk text processing where a 16,384-token request limit suffices and the quality bar is low. Skip it for new projects or anything requiring vision or a long context.

The case for it

  • Permissive MIT licence and low price.

The case against it

  • Lowest measured chat quality in our tracked set.
  • Tiny request limit by 2026 standards: 16,384 tokens versus 262,144 for current small models.
  • Text-only; no vision input, unlike current small-model peers.
00

How good is it?

An open text model for general chat, though it trails most models on everyday questions, writing and code.

Less good at
  • getting answers to everyday questionsArena Text (overall) · 184th of 194
  • drafts, rewrites and editingArena Creative Writing · 184th of 194
  • writing and completing codeArena Coding · 180th of 194

EverydayGeneral questions and everyday reasoning

1 of 5

Arena Text (overall)184th of 194 · 1256

Arena Hard Prompts 182nd of 194Arena Maths 172nd of 189GPQA Diamond 8th of 17MMLU-Pro 3rd of 17

CodingWriting and fixing code on its own

1 of 5

Arena Coding180th of 194 · 1306

Arena Coding is the only board that has scored it for this.

AgenticPlanning, calling tools, staying on task

not measured

Not yet scored on Arena Agent.

WritingDrafting and rewriting prose

1 of 5

Arena Creative Writing184th of 194 · 1210

Arena Creative Writing is the only board that has scored it for this.

Other boards it appears on
Arena Instruction Following 183rd of 194IFEval 13th of 17

These tests check whether a model follows instructions — a precondition for all the work above, but not a measure of how well that work is done.

Every published score for this model9 scoresEvery figure we hold, from 9 boards, with who ran it and a link to the source — including the boards no rating above is built on.
GPQA Diamondreasoning
33.6machine-readable source ↗
IFEvalchat
68.8machine-readable source ↗
1306source ↗
1210source ↗
1278source ↗
1265source ↗
1256source ↗
MMLU-Proreasoning
53.8machine-readable source ↗
01

Can you run it yourself?

Comfortable fit

A card many people ownFits in memory

GeForce RTX 4090 · 24 GB

Weights at 9.1 / 24 GBmeasured
Spare memory11.9 GB spare
Usable context16K of 16K
Decode speed91 tok/sest

Room to spare. 11.9 GB spare means a 10% error in the size would not change the answer.

One step upFits in memory

GeForce RTX 5090 · 32 GB

Weights at 9.1 / 32 GBmeasured
Spare memory19.9 GB spare
Usable context16K of 16K
Decode speed161 tok/sest

Room to spare. 19.9 GB spare means a 10% error in the size would not change the answer.

On a MacFits in memory

Apple M1 (8-core GPU) · 16 GB

Weights at 9.1 / 16 GBmeasured
Spare memory1.1 GB spare
Usable context4K of 16K
Decode speed5 tok/sest

Room to spare. 1.1 GB spare means a 10% error in the size would not change the answer.

Your hardware
Checking your profile…

Memory use by level

Against a 24 GB card.

What is quantisation? →
9.1 GBmeasured
Fits in memory
29.3 GBmeasured
Spills to system RAM
recommended
9.1 GBmeasured
Fits in memory
10.9 GBest
Fits in memory
15.6 GBmeasured
Fits in memory
This model on every device we track71 devicesThe Q4 build most people download, on each device: what the weights come to, how much context the memory leaves, and whether it runs. Smallest device that runs it first.
GeForce RTX 507012 GB9.1 GBmeasured2KFits in memory
GeForce RTX 4070 SUPER12 GB9.1 GBmeasured2KFits in memory
Arc B58012 GB9.1 GBmeasured2KFits in memory
GeForce RTX 3060 12GB12 GB9.1 GBmeasured2KFits in memory
GeForce RTX 508016 GB9.1 GBmeasured16KFits in memory
GeForce RTX 5070 Ti16 GB9.1 GBmeasured16KFits in memory
GeForce RTX 4080 SUPER16 GB9.1 GBmeasured16KFits in memory
GeForce RTX 4070 Ti SUPER16 GB9.1 GBmeasured16KFits in memory
Radeon RX 907016 GB9.1 GBmeasured16KFits in memory
Radeon RX 9070 XT16 GB9.1 GBmeasured16KFits in memory
GeForce RTX 5060 Ti 16GB16 GB9.1 GBmeasured16KFits in memory
GeForce RTX 4060 Ti 16GB16 GB9.1 GBmeasured16KFits in memory
Apple M1 (8-core GPU)16 GB9.1 GBmeasured4KFits in memory
Radeon RX 7900 XT20 GB9.1 GBmeasured16KFits in memory
GeForce RTX 3090 Ti24 GB9.1 GBmeasured16KFits in memory
GeForce RTX 409024 GB9.1 GBmeasured16KFits in memory
GeForce RTX 309024 GB9.1 GBmeasured16KFits in memory
Radeon RX 7900 XTX24 GB9.1 GBmeasured16KFits in memory
Apple M2 (10-core GPU)24 GB9.1 GBmeasured16KFits in memory
Apple M3 (10-core GPU)24 GB9.1 GBmeasured16KFits in memory
GeForce RTX 509032 GB9.1 GBmeasured16KFits in memory
Apple M1 Pro (16-core GPU)32 GB9.1 GBmeasured16KFits in memory
Apple M2 Pro (19-core GPU)32 GB9.1 GBmeasured16KFits in memory
Apple M5 (10-core GPU)32 GB9.1 GBmeasured16KFits in memory
Apple M4 (10-core GPU)32 GB9.1 GBmeasured16KFits in memory
Apple M3 Pro (18-core GPU)36 GB9.1 GBmeasured16KFits in memory
RTX 6000 Ada48 GB9.1 GBmeasured16KFits in memory
L40S48 GB9.1 GBmeasured16KFits in memory
Apple M5 Max (32-core GPU)64 GB9.1 GBmeasured16KFits in memory
Apple M1 Max (32-core GPU)64 GB9.1 GBmeasured16KFits in memory
Apple M4 Max (32-core GPU)64 GB9.1 GBmeasured16KFits in memory
Apple M5 Pro (20-core GPU)64 GB9.1 GBmeasured16KFits in memory
Apple M4 Pro (20-core GPU)64 GB9.1 GBmeasured16KFits in memory
A100 80GB SXM80 GB9.1 GBmeasured16KFits in memory
H100 80GB SXM80 GB9.1 GBmeasured16KFits in memory
RTX PRO 6000 Blackwell96 GB9.1 GBmeasured16KFits in memory
Apple M2 Max (38-core GPU)96 GB9.1 GBmeasured16KFits in memory
Apple M1 Ultra (64-core GPU)128 GB9.1 GBmeasured16KFits in memory
Apple M5 Max (40-core GPU)128 GB9.1 GBmeasured16KFits in memory
Apple M4 Max (40-core GPU)128 GB9.1 GBmeasured16KFits in memory
Apple M3 Max (40-core GPU)128 GB9.1 GBmeasured16KFits in memory
NVIDIA DGX Spark (GB10)128 GB9.1 GBmeasured16KFits in memory
Ryzen AI Max+ 395 (Radeon 8060S)128 GB9.1 GBmeasured16KFits in memory
H200 141GB SXM141 GB9.1 GBmeasured16KFits in memory
B200 (SXM 192GB)192 GB9.1 GBmeasured16KFits in memory
Instinct MI300X192 GB9.1 GBmeasured16KFits in memory
Apple M2 Ultra (76-core GPU)192 GB9.1 GBmeasured16KFits in memory
Apple M3 Ultra (80-core GPU)512 GB9.1 GBmeasured16KFits in memory
GeForce RTX 3060 8GB8 GB9.1 GBmeasurednot calculatedSpills to system RAM
GeForce RTX 4060 8GB8 GB9.1 GBmeasurednot calculatedSpills to system RAM
Radeon RX 66008 GB9.1 GBmeasurednot calculatedSpills to system RAM
Arc B57010 GB9.1 GBmeasurednot calculatedSpills to system RAM
GeForce RTX 3080 10GB10 GB9.1 GBmeasurednot calculatedSpills to system RAM
Android phone · 16 GB · 2024 or newer8 GB9.1 GBmeasurednot calculatedToo large
Apple M1 (8-core GPU, 8GB unified)8 GB9.1 GBmeasurednot calculatedToo large
Apple M2 (8-core GPU, 8GB unified)8 GB9.1 GBmeasurednot calculatedToo large
iPhone 17 Pro6.6 GB9.1 GBmeasurednot calculatedToo large
Android phone · 12 GB · 2023 or newer6 GB9.1 GBmeasurednot calculatedToo large
GeForce GTX 1660 SUPER6 GB9.1 GBmeasurednot calculatedToo large
iPhone 15 Pro4.4 GB9.1 GBmeasurednot calculatedToo large
iPhone 164.4 GB9.1 GBmeasurednot calculatedToo large
iPhone 16 Pro4.4 GB9.1 GBmeasurednot calculatedToo large
iPhone 174.4 GB9.1 GBmeasurednot calculatedToo large
Android phone · 8 GB · 2020–20224 GB9.1 GBmeasurednot calculatedToo large
Android phone · 8 GB · 2023 or newer4 GB9.1 GBmeasurednot calculatedToo large
iPhone 143.3 GB9.1 GBmeasurednot calculatedToo large
iPhone 153.3 GB9.1 GBmeasurednot calculatedToo large
Android phone · 6 GB3 GB9.1 GBmeasurednot calculatedToo large
iPhone 132.2 GB9.1 GBmeasurednot calculatedToo large
iPhone SE (3rd gen)2.2 GB9.1 GBmeasurednot calculatedToo large
Android phone · 4 GB2 GB9.1 GBmeasurednot calculatedToo large

Check against your own machine → · Where to rent it hosted →

02

Or rent it from someone else

Prices checked 2 hours ago

DeepInfra sells this model two ways, with a line for each: direct from the host, or through OpenRouter, which can send your requests on to the host.

Cheapest published offer

The only listing at 16K of context — the other 2 in the table below are not like-for-like. One cheaper row there is outside that comparison: a non-standard pricing tier.

per 1M tokens
$0.070 in / $0.14 out
Context served
16K
Throughput
Not measured

Scroll sideways to see every column →

Current provider offers with price, context and prompt-privacy answers
ProviderIn / out per 1M tokensContextThroughputTrains on promptsLogs promptsZero retention
DeepInfraThrough OpenRouter$0.056 / $0.1116K15K max replynot measuredNoNoConfirmed
OpenRouterOpenRouter's own listing$0.070 / $0.1416Knot measuredUnknownUnknownUnknown
DeepInfraDirect from DeepInfra$0.070 / $0.1416Knot measuredUnknownUnknownUnknown
Through OpenRouter$0.070 / $0.1416K15K max reply91 tok/sNoNoConfirmed

Across the 3 listings we hold: 2 say they do not train on prompts (1 of them only through OpenRouter), 0 say they do and 1 does not say. 2 appear in the zero-retention registry we check (1 of them only through OpenRouter); the rest are unknown to us.

What each host's API supports

From the parameter list each endpoint publishes. Streaming is omitted: nothing we hold reports it, for any model.

API features per host
ProviderTool callingJSON outputStrict schema
DeepInfraflex · bf16Through OpenRouter✗✓✓
OpenRouterOpenRouter's own listing✗✓✓
DeepInfrabf16Direct and through OpenRouter✗✓✓

Tool calling: 0 of 3 listings say yes, 3 say no. JSON output: 3 of 3 listings say yes. Strict schema: 3 of 3 listings say yes.

03

When we formed this view

Recent changes

Nov 22, 2026BenchmarkScored on 6 leaderboards
PlacingsArena Coding: 180th of 194 · 1306 · Arena Creative Writing: 184th of 194 · 1210 · Arena Hard Prompts: 182nd of 194 · 1278 · Arena Instruction Following: 183rd of 194 · 1245 · Arena Maths: 172nd of 189 · 1265 · Arena Text (overall): 184th of 194 · 1256
Jul 26, 2026ListedListed on LLMap
What movedthe day we started tracking it
Jan 9, 2025BenchmarkScored on 3 leaderboards
PlacingsGPQA Diamond: 8th of 17 · 33.6 · IFEval: 13th of 17 · 68.8 · MMLU-Pro: 3rd of 17 · 53.8
Dec 11, 2024AnnouncedPhi 4 announced by Microsoft

Each date is the day we first saw the change, or the day the maker announced it.

What we do not know about this model yet

  • Nothing we hold says whether an endpoint streams, so we do not show it either way.
  • 1 of 3 listings does not say whether it trains on prompts, and 1 answers only through OpenRouter, not for its own listing.
  • We hold no cached-input rate for any of its listings.
  • We hold no batch or off-peak rate for any of its listings.
  • We hold a decode speed for it, but no prompt-processing (prefill) figure, so how long the input side of a job takes is unknown to us.
04

Licence and identifiers

What the licence allowsMIT License, what it allows commercially, and the identifiers you need to pull this model — its Hugging Face repo, our slug and a machine-readable card.

Licence

MIT License

Open, few conditionsCommercial use allowed

Fully permissive: do anything with attribution. No patent grant, unlike Apache-2.0.

Identifiers

Hugging Face
microsoft/phi-4
Architecture
Dense
Takes in, gives back
Text in, text out
Catalogue slug
microsoft-phi-4

Machine-readable model card (omc.json) →

Something wrong on this page? Tell us