Phi 4
MicrosoftOpen weights16K context
LMArena score 1217 · #313 overall · #298 in coding (2026-10-13)
As of Oct 14, 2026, Phi 4 costs $0.07 per million input tokens and $0.14 per million output tokens from DeepInfra. The cheapest of 3 sellers is DeepInfra at $0.07 / $0.14.
Lowest price, from DeepInfra
Per million tokens
- Input
- $0.07
- Output
- $0.14
- Cached input
- —
- Batch input / output
- —
- Up to 16K output tokens per request.
Estimate your monthly cost
Est. per month = input tokens × input price + output tokens × output price. Prices are per million tokens, so 10M input tokens at $3.00 cost $30.
From DeepInfra: $0.98 a month.
Where to buy it (3)
Sorted by your monthly estimate. Prices per million tokens.
- Input / output
- $0.07 / $0.14
- Context
- 16K
- Per month
- $0.98
deepinfra/microsoft/phi-4
- Input / output
- $0.07 / $0.14
- Context
- 16K
- Per month
- $0.98
microsoft/phi-4
- Input / output
- $0.125 / $0.50
- Context
- 16K
- Per month
- $2.25
azure_ai/Phi-4
Cloud and hosted sellers may add regional pricing, minimums or platform fees. Supports: Tool calling.