Microsoft
Phi 4 pricing and cost calculator
Phi 4 from Microsoft costs $0.07 per million input tokens and $0.14 per million output tokens, with a context window of 16,384 tokens. It was released on Jan 10, 2025.
- Input price
- $0.07
- Output price
- $0.14
- Context window
- 16,384
- Released
- Jan 10, 2025
Token cost calculator
| Model | Per request | Per day | Per month (30 days) |
|---|---|---|---|
| Phi 4 | $0.00014 | $0.14 | $4.20 |
| DeepSeek V4.1 Flash 1017 | $0.00013 | $0.13 | $3.90 |
≈ 0 tokens
Token estimate: about 4 characters per token for English, about 1 token per character for Chinese, Japanese and Korean. Exact counts depend on each model's tokenizer.
Price and specs
| Input price | $0.07 / 1M |
|---|---|
| Output price | $0.14 / 1M |
| Context window | 16,384 |
| Max output | 14,745 |
| Accepts | text |
| Produces | text |
| Reasoning mode | No |
| Tool / function calling | No |
| Structured (JSON) output | Yes |
| Open weights | Yes |
| Released | Jan 10, 2025 |
What typical workloads cost
| 1,000 chat replies (1,000 input + 500 output tokens each) | $0.14 |
|---|---|
| Summarise a 100-page document (≈50,000 input + 1,000 output tokens) | $0.0036 |
| 1 million input + 1 million output tokens | $0.21 |
Prices are list prices in USD per 1 million tokens from OpenRouter's public model list, refreshed daily. Direct provider prices, batch discounts and regional pricing may differ.
Cheaper models with at least the same context window
- DeepSeek V4.1 Flash 1017$0.03 / $0.20
- Hy4 flash$0.035 / $0.141
- DeepSeek V4.1 Flash$0.05 / $0.199
- Qwen3.7 Flash$0.03 / $0.13
- gpt-oss-20b$0.03 / $0.13
- Gemma 3 12B$0.05 / $0.15
Similarly priced models from other providers
- Nemotron 3.5 Lightning$0.05 / $0.20
- DeepSeek V4.1 Flash$0.05 / $0.199
- Hy-MT2-1.8B$0.044 / $0.177
- Ministral 3 3B 2512$0.10 / $0.10
- gpt-oss-120b$0.05 / $0.25
- Gemma 3 27B$0.08 / $0.16
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...
Phi 4 FAQ
- How much does Phi 4 cost?
- Phi 4 costs $0.07 per 1M input tokens and $0.14 per 1M output tokens. 1,000 replies with 1,000 input and 500 output tokens each cost about $0.14.
- What is the context window of Phi 4?
- Phi 4 accepts up to 16,384 tokens of context and can return up to 14,745 tokens in one response.
- Can Phi 4 read images?
- No. Phi 4 accepts text as input.
- What is a cheaper alternative to Phi 4?
- Cheaper models with at least the same context window include DeepSeek V4.1 Flash 1017, Hy4 flash, DeepSeek V4.1 Flash.