by Microsoft

Phi-4.

text open weights laptop+ 15B params 16K ctx
Cheapest input
$0.065/M
on OpenRouter
Cheapest output
$0.14/M
on DeepInfra
Fastest
30 tok/s
on OpenRouter
Smallest GPU
1× Nvidia RTX 3080

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

Smallest GPU to run it See all quantisations →

1× Nvidia RTX 3080.

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
OpenRouter api aggregator $0.065 $0.14 Launch ↗
DeepInfra hosted inference $0.07 $0.14 Launch ↗
Performance

Speed across providers.

Tokens/sec and time-to-first-token measured against the same prompt template on each provider's API.

Provider Tokens/sec TTFT Total
OpenRouter 29.7 1987 ms 3778 ms
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.