Phi 4 API pricing
Estimate Phi 4 (Microsoft) monthly API cost by token volume and compare rival models (16K tokens context); via OpenRouter, as of 2026-11-13.
Prices via OpenRouter · as of 13 Nov 2026. USD per million tokens.
| Input | $0.07 |
|---|---|
| Output | $0.14 |
| Cached input | not listed |
| Context window | 16K tokens |
| Maximum output | 15K tokens |
| Input types | text |
Monthly cost for common workloads
| Workload | Assumptions | Per month | Per year |
|---|---|---|---|
| Chat assistant | 1,000 requests a day, 2,000 input and 500 output tokens each, 30% of input cached | $6.30 | $75.60 |
| Support bot | 2,000 requests a day, 3,000 input and 300 output tokens each, 60% of input cached | $15.12 | $181.44 |
| Document summaries | 200 requests a day, 20,000 input and 800 output tokens each, 0% of input cached | $9.07 | $108.86 |
| Coding agent | 500 requests a day, 60,000 input and 2,000 output tokens each, 85% of input cached | $67.20 | $806.40 |
| Bulk classification | 100,000 requests a day, 300 input and 5 output tokens each, 50% of input cached | $65.10 | $781.20 |
Verdict
Phi 4 from Microsoft costs $0.07 per million input tokens and $0.14 per million output tokens, so each output token costs 2x as much as an input token. Among the 39 other popular models on these pages it is cheaper than 36 on input and 39 on output. It reads up to 16K tokens and writes up to 15K tokens per reply. A chat assistant handling 1,000 requests a day comes to about $6.30 a month.
About Phi 4
Microsoft Research 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...
Microsoft Copilot pricing: subscription plans compared with the API
Keep exploring
- All AI model prices
- Open ModelCost: search all 363 models, compare any two and run the cost calculator.
- All OnePassApps apps
Enable JavaScript to use the interactive ModelCost app and calculator.