Microsoft: Phi 4 API Pricing & Cost Calculator
[Microsoft Research](/microsoft) 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...
Open-Weight microsoft/phi-4
Input / 1M
$0.070
Output / 1M
$0.140
Cache Read / 1M
—
Blended 3:1 / 1M
$0.087
Agent Cached / 1M
$0.084
Context Window
16.4K
Monthly Workload Cost Calculator
Daily
$0.420
Monthly
$12.60
Cache Saved
$0.00
Annual
$153.30
Benchmarks & Capabilities
| Intelligence Index | — |
|---|---|
| Coding / Engineering | — / — |
| Agentic Index | — |
| Design Arena Avg ELO | — |
| Value Score | — |
| Modality | text->text |
| Max Output | 14.7K |
5 Cheaper Alternatives to Microsoft: Phi 4
| Alternative Model | Blended / 1M | Input / 1M | Output / 1M | Intel | Side-by-Side |
|---|---|---|---|---|---|
| DeepSeek: DeepSeek V4.1 Flash 1017 (batch) deepseek/deepseek-v4.1-flash-1017:batch |
$0.064 | $0.035 | $0.149 | 32 | Compare → |
| DeepSeek: DeepSeek V4.1 Flash 1017 deepseek/deepseek-v4.1-flash-1017 |
$0.065 | $0.020 | $0.200 | 32 | Compare → |
| Z.ai: GLM 5.3 Flash (batch) z-ai/glm-5.3-flash:batch |
$0.034 | $0.023 | $0.068 | 28 | Compare → |
| NVIDIA: Nemotron 3.5 Lightning nvidia/nemotron-3.5-lightning |
$0.085 | $0.060 | $0.160 | 6 | Compare → |
| OpenAI: gpt-oss-120b (batch) openai/gpt-oss-120b:batch |
$0.056 | $0.030 | $0.136 | 4 | Compare → |
Frequently Asked Questions
How much does Microsoft: Phi 4 API cost per 1M tokens?
Microsoft: Phi 4 (microsoft/phi-4) costs $0.070 per 1M input tokens and $0.140 per 1M output tokens (3:1 blended price: $0.087 per 1M tokens).
Does Microsoft: Phi 4 support prompt caching and how much does it save?
No separate cache_read_per_1m discount is listed on OpenRouter for Microsoft: Phi 4, so repeated prompt tokens are billed at $0.070 per 1M tokens.
What is the context window and maximum output of Microsoft: Phi 4?
Microsoft: Phi 4 supports a 16.4K token context window (16,384 tokens) and up to 14.7K output tokens per completion.
Fetch Live JSON via API
curl -s "https://llm.lhblabs.com/api/v1/models/microsoft-phi-4"
Recommended Stack: Ima Router
Route multi-provider LLM traffic with automatic fallback and unified billing.
Try Ima Router →
Self-Serve Placement
Building an LLM API, GPU Cloud, or AI Dev Tool?
Book Sponsor Slot →
Feature your product across 1,500+ LLM pricing & comparison pages starting at $49/mo.