Phi 4 API pricing
As of October 21, 2026, Microsoft Phi 4 costs $0.07 per million input tokens and $0.14 per million output tokens, the median of 1 providers on OpenRouter.
- Input, per million tokens$0.07
- Output, per million tokens$0.14
- Cached input, per millionNo cache price listed
- Context window16K tokens
- Max output15K tokens
- Output speed43 tok/s
What a request costs
Three fixed token mixes at the list price, without cache or batch discounts. For a whole month, use the calculator.
| Workload | Tokens | One request | 1,000 requests | Fits the context window |
|---|---|---|---|---|
| Chat turn | 1K input + 500 output tokens | $0.0001 | $0.140 | Yes |
| Repository review | 50K input + 3K output tokens | $0.0039 | $3.92 | No, it would need splitting |
| Agent loop | 200K input + 10K output tokens | $0.015 | $15.40 | No, it would need splitting |
| Solved coding task | One SWE-bench Verified attempt, divided by the share that succeed | Not computable | Not computable |
Price history
The price of Phi 4 here is the median across 1 providers on OpenRouter, so we do not track price changes for it.
Cheaper models as good as Phi 4
Models within two points of Phi 4 or above it on the LLMBenchmark Index, with a lower output price. Cheapest first.
No model at least as good on this index costs less per output token.
Phi 4 pricing questions
- How much does Phi 4 cost per million tokens?
- $0.07 per million input tokens and $0.14 per million output tokens, as listed on OpenRouter on October 21, 2026.
- Does Phi 4 support prompt caching?
- OpenRouter lists no cached input price for this model, so assume every input token is billed at the full rate.
- Has the price of Phi 4 changed?
- The price of Phi 4 here is the median across 1 providers on OpenRouter, so we do not track price changes for it.