Microsoft · Released Jan 10, 2025
Phi 4
[Microsoft Research](/microsoft) Phi-4 is designed to perform well in complex reasoning tasks and can operate efficiently in situations with limited memory or where quick responses are needed. At 14 billion...
- Released
- Jan 10 2025
- Context window
- 16K 15K out
- Input / 1M tokens
- $0.07 from $0.056
- Output / 1M tokens
- $0.14 from $0.11
Where to run it
Providers
Cheapest: DeepInfra at $0.056 / $0.11 per 1M input / output tokens — 20% less than the priciest option.
| Provider | Input | Output | Context | Max output | Uptime | vs. best |
|---|---|---|---|---|---|---|
| DeepInfraBF16 · no tool calling | $0.056 | $0.11 | 16K | 15K | 100%24h | Cheapest |
| DeepInfraBF16 · no tool calling | $0.07 | $0.14 | 16K | 15K | 100%24h | +25% |
Value
Price vs. performance
Phi 4 Other Microsoft Other labs Value frontier · GPQA Diamond vs. input price per 1M tokens (log scale) · Drag to pan, pinch or Ctrl + scroll to zoom, double-click to zoom in.
Benchmarks
3 benchmark scores
| Benchmark | Score | Rank | Leader |
|---|---|---|---|
| Lech Mazur WritingWriting & content · Short stories weaving 10 required elements, judged 0–10 | 6.26/10 | #26of 27 | GPT-58.60/10 |
| GPQA DiamondReasoning & knowledge · PhD-level biology, chemistry and physics questions | 56.1% | #95of 122 | Gemini 4 Argon96.4% |
| OTIS Mock AIMEMaths · Competition-style problems harder than MATH Level 5 | 13.8% | #100of 120 | Gemini 4 Argon100.0% |
Specs
Details
- Model ID
microsoft/phi-4- Developer
- Microsoft
- Release date
- Jan 10, 2025 ·
- Context window
- 16,384 tokens
- Max output
- 14,745 tokens
- API price
- $0.07 / $0.14 per 1M input / output tokens
- Providers
- 1
- Input types
- text
- Reasoning
- No
- Tool calling
- No
- Open weights
- Yes
- Free tier
- No
Release date, prices and providers from OpenRouter's catalog; buying directly from a provider can cost a little differently. Uptime is the share of OpenRouter requests each provider served over the last day. Benchmark scores are the best result per benchmark from Epoch AI, licensed CC BY 4.0. Rank counts every model tracked here with a score.