Phi 4: API pricing, providers and specs
Phi 4 is a text model by Microsoft. 7 providers serve it, from $0.14 to $0.50 /1M; the lowest price is at OpenRouter.
How Phi 4 compares
Against the 737 text models on the site priced the same way.
- Cheap for its class: at $0.14 /1M, its lowest price undercuts 89% of comparable models (median $1.10).
- Its 16K-token context window is larger than 4% of them (median 262K), about 20 pages of text.
- On LMArena's Text board it ranks #102 of the 120 comparable models scored there.
- 7 providers serve it; 71% of comparable models have fewer.
- Its weights are open under the MIT license: commercial use allowed.
Phi 4 prices by provider
Every provider's list price, read from its own price page or API. A price marked “from” changes with context length, resolution or mode.
| Provider | Input | Output | Prompt caching | Context |
|---|---|---|---|---|
| OpenRouter | $0.07/1M | From$0.14/1M | — | 16K |
| $0.07/1M | From$0.14/1M | — | — | |
Requesty | $0.07/1M | From$0.14/1M | $0.07/1M | 16K |
| $0.07/1M | From$0.14/1M | — | — | |
| $0.12/1M | $0.48/1M | — | 16K | |
| $0.125/1M | $0.50/1M | — | — | |
Impossibl | $0.125/1M | $0.50/1M | — | — |
- OpenRouterFrom$0.14
- Deep InfraFrom$0.14
- RequestyFrom$0.14
- Hugging FaceFrom$0.14
- AIHubMix$0.48
- Azure$0.50
- Impossibl$0.50
Specs
- Type
- Text
- Maker
- Microsoft
- Inputs
- Text
- Outputs
- Text
- Context
- 16K≈ 20 pages of text
- Max output
- 15K
- Capabilities
- JSON
- Released
- Dec 11, 2024
- License
- MITcommercial use allowed
- Open weights
- Yes, downloadable
- Parameters
- 15B
- Arena score
- 1217Text
Alternatives to Phi 4
Same kind of model from other makers, at a similar price.
| Model | Lowest price | Context | Arena | Providers |
|---|---|---|---|---|
| $0.14/1M | 16K | 1217 | 7 | |
| $0.20/1M | 1.05M | 1608 | 45 | |
| GPT-6 Luna | $0.40/1M | 1.05M | 1578 | 28 |
| Claude Haiku 5.5 | $0.30/1M | 1M | 1585 | 27 |
| $0.376/1M | 262K | 1628 | 5 | |
| $0.17/1M | 1.05M | — | 26 | |
| $0.294/1M | 1.05M | — | 26 | |
| $0.418/1M | 1.05M | — | 33 | |
| $0.225/1M | 262K | — | 5 |
More from Microsoft
Phi 4 FAQ
The lowest price for Phi 4 is $0.14 /1M, at OpenRouter.
OpenRouter, at $0.14 /1M. 7 providers serve Phi 4; the table above lists every one with its price.
Phi 4 reads up to 16K tokens per request and writes up to 15K.
Yes. Phi 4's weights can be downloaded from its maker's Hugging Face page, under the MIT license.
About 15B, as the safetensors metadata of its official Hugging Face repo states.
7 API providers serve Phi 4. Compare their prices above, or open a provider to see everything it offers.
Can't find what you're looking for? Contact us

