← Model list
Phi-4
microsoft·microsoft/phi-4·GA·Open weights·phi series
Open-weight instruction model for adaptable chat and self-hosted production workloads
At a glance
Official price$0.125 / $0.50 per 1M
Cache read — · Azure Cognitive Services
Lowest paid$0.07 / $0.14
OpenRouter Gateway · 1.8× spread
Context128,000
⚠ Providers report 16,384–128,000; the table below is authoritative
Output limit4,096
Capabilities
ReasoningTool use✓ Structured output✓ TemperatureAttachments
Modalities
Text
Knowledge cutoff2023-10
Released / updated2024-12-11 / 2025-01-10
Quality & performanceArtificial Analysis · Intelligence Index v4.1
Intelligence4.6
Value53
Coding—
Agentic—
Output speed39 tok/s
TTFT2.59 s
Value formulaIQ 4.6 ÷ min blended $0.087 = 53
Quality is independently evaluated by Artificial Analysis. Speed/latency are model-level medians.
Available at 3 providers3 with public prices
| Provider | Tier | Input | Output | Cache read | Cache write | Context | Output limit | Status |
|---|---|---|---|---|---|---|---|---|
| OpenRouter | Gateway | $0.07 | $0.14 | — | — | 16,384 ⚠ | 16,384 | |
| Azure Cognitive ServicesOfficial | First-party | $0.125 | $0.50 | — | — | 128,000 | 4,096 | |
| AzureOfficial | First-party | $0.125 | $0.50 | — | — | 128,000 | 4,096 |
Sorted by blended price (input×0.75 + output×0.25) asc. The official channel always shows regardless of rank. Whether a gateway's low price is actually usable can't be verified.
Your usage cost
1OpenRouter$21.00
2Azure Cognitive Services · Official$50.00
3Azure · Official$50.00
Switch to OpenRouter to save $29.00/mo (58%)
Note: this is a gateway; verify availability and rate limits yourself.
Related models
Phi 4 Multimodalsame series$0.08 / $0.32Microsoft: Phi 4same series$0.07 / $0.14Phi-4-minisame series$0.075 / $0.30Llama 3.2 1B Instructcheaper alternative$0.10 / $0.201Llama 4 Maverick 17B 128E Instruct FP8cheaper alternative$0 / $0Ministral 3Bcheaper alternative$0.10 / $0.10
Price historyone sample accumulated per data sync
Input listOutput listMin blended