by Microsoft

Phi-4.

text open weights laptop+ 15B params 16K ctx
Cheapest input
$0.07/M
on DeepInfra
Cheapest output
$0.14/M
on DeepInfra
Smallest GPU
1× Nvidia CMP 50HX

Microsoft's 14B small-LM workhorse — punches above its weight.

Smallest GPU to run it See all quantisations →

1× Nvidia CMP 50HX.

Most-aggressive quantisation we have a working recommendation for. Lower precision = less VRAM = cheaper hardware, at a small accuracy cost.

Where to use it

Cheapest hosted endpoints.

Provider Access $/M in $/M out
DeepInfra hosted inference $0.07 $0.14 Launch ↗
OpenRouter api aggregator $0.07 $0.14 Launch ↗
Sources

Official references.

Distilled variants

Smaller models distilled from Phi-4.

Lightweight student models trained to mimic Phi-4's outputs.

FAQ

Frequently asked.

How do I run Phi-4?
Phi-4 is open-weight, so you can self-host on rented GPUs. See the Run It Yourself tab for GPU configurations + cost estimates, or use one of the hosted inference providers listed on this page.
Where can I access Phi-4?
Phi-4 is available via DeepInfra, OpenRouter. Each access option lists its own pricing (per million tokens or hourly hosting).
How much does it cost to run Phi-4?
Self-hosting cost depends on the GPU you rent and the throughput you need. See the Run It Yourself tab for GPU configurations and hourly cost estimates.
Is Phi-4 open-source or proprietary?
Phi-4 is open-weight under the MIT license. You can download and self-host it.