Microsoft: Phi 4 pricing
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. Microsoft: Phi 4 from OpenRouter costs $0.070 per 1M input tokens and $0.140 per 1M output tokens. Context window 16,384 tokens.
API id microsoft/phi-4 · OpenRouter · source · updated 2026-09-25 · general-purpose
$0.070
Input / 1M tokens
$0.140
Output / 1M tokens
—
Cached input / 1M
16K
Context window
Microsoft: Phi 4 specifications
- Provider
- OpenRouter
- API id
microsoft/phi-4- Model type
- general-purpose
- Context window
- 16K tokens
- Max output
- 15K tokens
- Currency
- USD
- Price source
- Provider API
- Last checked
- 2026-09-25
Microsoft: Phi 4 across providers
The same model, priced by every seller we track. Ranked by the cost of 1M input + 1M output tokens, standard tier; savings measured against buying from the vendor directly.
| Provider | Input /1M | Cached /1M | Output /1M | 1M in + 1M out | vs vendor |
|---|---|---|---|---|---|
| $0.070 | — | $0.140 | $0.21 | — | |
| $0.070 | — | $0.140 | $0.21 | — |
What Microsoft: Phi 4 costs in practice
| Workload | Input tokens | Output tokens | Estimated cost |
|---|---|---|---|
| Short chat turn | 1,000 | 500 | $0.0001 |
| Document summary | 50,000 | 2,000 | $0.0038 |
| 1M tokens in, 200K out | 1,000,000 | 200,000 | $0.10 |
Estimates use the standard tier and ignore caching discounts, so real bills with repeated prompt prefixes are typically lower.
Microsoft: Phi 4 price history
| Recorded | Input /1M | Output /1M |
|---|---|---|
| 2026-08-27 | $0.070 | $0.140 |
| 2026-08-27 | $0.070 | $0.140 |
Common questions
- How much does Microsoft: Phi 4 cost per 1M tokens?
- Microsoft: Phi 4 costs $0.070 per 1M input tokens and $0.140 per 1M output tokens on the standard tier.
- What is Microsoft: Phi 4's context window?
- Microsoft: Phi 4 accepts up to 16,384 tokens in a single request, and can return up to 14,745 output tokens.
- Is there a cheaper OpenRouter model than Microsoft: Phi 4?
- Yes. Mistral: Mistral Nemo is $0.019 per 1M input tokens versus $0.070 for Microsoft: Phi 4, with a 131,072 token context window.
- Where does this Microsoft: Phi 4 price come from?
- From the OpenRouter catalogue, because OpenRouter does not publish machine-readable pricing. OpenRouter is a reseller, so its rate can differ from OpenRouter's own — verify before committing spend.
Head-to-head comparisons
Other OpenRouter models
- Fireworks: Ember-1 $3.00
- Z.ai: GLM 5.3 Prime $2.80
- Qwen: Qwen3.8 Max Prime $4.00
- Space Bunny Alpha Free
- AionLabs: Aion 3.5 Mini $0.700
- AionLabs: Aion 3.5 $3.00
- Upstage: Solar Mini 4 $0.050
- Cohere: Command A+ $0.300
- OpenAI: GPT-6 Luna Pro $0.100
- OpenAI: GPT-6 Luna $0.100
- OpenAI: GPT-6 Sol Pro $2.00
- OpenAI: GPT-6 Sol $2.00
- Anthropic: Claude Opus 5.5 $4.00
- Xiaomi: MiMo-V2.6-Pro-UltraSpeed $4.35
- Xiaomi: MiMo-V2.6-Flash $0.140
- Xiaomi: MiMo-V2.6-Pro $0.435