Microsoft: Phi 4 API Pricing
by microsoft · 16K context window ·
Explore the pricing for Microsoft's Phi-4 API, a powerful language model ideal for various AI applications. Understand the cost structure for input and output tokens: $0.06000 per 1 million input tokens and $0.14000 per 1 million output tokens, totaling $0.2000 per 1 million tokens. Phi-4 offers a context window of 16,384 tokens. Compare Phi-4's pricing with other LLM APIs and estimate your monthly expenses. For example, an application processing 50 million input tokens and generating 25 million output tokens per day would cost approximately $45 per month. Evaluate if Microsoft's Phi-4 aligns with your budget and performance needs.
Monthly Cost Examples
Assuming 50% input / 50% output token split
| Usage | Monthly cost |
|---|---|
| 100K tokens/month | $0.01 |
| 1M tokens/month | $0.10 |
| 10M tokens/month | $1.00 |
| 100M tokens/month | $10.00 |
Compare with other models
Microsoft: Phi 4 vs OpenAI: GPT-4o →Microsoft: Phi 4 vs OpenAI: GPT-4o-mini →Microsoft: Phi 4 vs OpenAI: o1 →Automate your model selection
StormRouter sends each request to the cheapest model that can handle it.
Only use Microsoft: Phi 4 when your quality requirements demand it.