Microsoft: Phi 4
Analysis Summary
Microsoft Phi 4 is a small-footprint model priced at $0.065 input and $0.14 output per million tokens, with a strong math index of 18 and a coding index of 11.2 relative to its intelligence index of 10.4. This suggests it punches above its weight on structured reasoning tasks, though its agentic index is very low and it lacks tool use or vision support.
For businesses, the 16K context window is a significant constraint, ruling it out for long-document analysis or extended agentic sessions. It is best suited to focused, short-context tasks such as math problem solving, code generation, or structured data processing where context length is not a bottleneck.
At this price point, it offers good value for narrow, well-scoped tasks. Teams looking for a cheap coding or math assistant for short-context work will find it capable, but those needing broader capability or longer context should look elsewhere.
Assessed June 6, 2026
Editorial notes
Microsoft Phi 4 is a compact, cheap model with strong math and coding scores relative to its size, but a very small 16K context window limits its use in document-heavy business workflows.
Rankings consider pricing, capabilities, benchmarks, and real-world applicability and are refreshed as new models launch. Feedback?
Performance Profile
How Microsoft: Phi 4 compares
Microsoft: Phi 4 ranks #304 of 374 AI models we track for overall intelligence, #218 of 311 for coding, #278 of 286 for agentic tasks. Its 16K-token context window is larger than 26% of the models we list. At $0.07 per million input tokens it is cheaper than 70% of comparable models.
About Microsoft: 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..
Performance Indices
Source: Artificial Analysis
Benchmark Scores
Intelligence
Technical
Content
Benchmark data from Artificial Analysis and Hugging Face
How does Microsoft: Phi 4 stack up?
Compare side-by-side with other professional models.
Model Information
| OpenRouter ID |
microsoft/phi-4
|
| Provider | microsoft |
| Release Date | January 10, 2025 |
| Context Length | 16,384 tokens |
| Max Completion | 16,384 tokens |
| Status | Active |
Pricing
| Token Type | Cost per 1M tokens | Cost per 1K tokens |
|---|---|---|
| Input | $0.07 | $0.000065 |
| Output | $0.14 | $0.000140 |
Live Performance
Live endpoint metrics, refreshed every 30 minutes.
Leaderboard Categories
External Resources
Explore Related Models
Frequently asked questions about Microsoft: Phi 4
How much does Microsoft: Phi 4 cost?
Microsoft: Phi 4 costs $0.07 per million input tokens and $0.14 per million output tokens.
What is the context window of Microsoft: Phi 4?
Microsoft: Phi 4 has a context window of 16,384 tokens (16K).
Is Microsoft: Phi 4 good for coding?
On our coding benchmark index, Microsoft: Phi 4 ranks #218 of 311 models, placing it in the broader range of the field for code generation and debugging.
Who created Microsoft: Phi 4?
Microsoft: Phi 4 is developed by Microsoft and was released on January 10, 2025.
Data sourced from OpenRouter API, Artificial Analysis and Hugging Face Open LLM Leaderboard. Scores are editorially curated by our team.
Last updated: June 5, 2026 8:38 pm