Microsoft: Phi 4 API Pricing

by microsoft · 16K context window ·

$0.0600
Input /1M tokens
$0.140
Output /1M tokens
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

UsageMonthly 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.

Try StormRouter free →

Similar models

Free Models RouterFree/1MStepFun: Step 3.5 Flash (free)Free/1MArcee AI: Trinity Large Preview (free)Free/1MUpstage: Solar Pro 3 (free)Free/1MLiquidAI: LFM2.5-1.2B-Thinking (free)Free/1MLiquidAI: LFM2.5-1.2B-Instruct (free)Free/1M