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-11-10 · 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-11-10
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. Free Models Router is free per 1M input tokens versus $0.070 for Microsoft: Phi 4, with a 200,000 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
- Nex AGI: Nex-N2.6 $0.120
- Thinking Machines: Inkling 2 Small (free) Free
- Anthropic: Claude Fable 5.2 $8.00
- Meta: Muse Ember $0.100
- LiquidAI: LFM3-1.7B $0.080
- LiquidAI: LFM3-1.7B (free) Free
- Google: Gemini Omni 1.2 Flash $1.50
- Google: Gemini Omni 1.1 Flash $1.50
- Ricursive: Ripple 65B Preview $0.200
- Tencent: Hy4 $0.417
- Z.ai: GLM 5.3 FlashX Legal $0.370
- Particle AI: Particle-1 $0.050
- OpenAI: GPT-6.1 Terra Pro $1.00
- OpenAI: GPT-6.1 Terra $1.00
- MoonshotAI: Kimi K3.1 Pro $2.00
- Recursive: Flint (free) Free