Phi 4 API Pricing / Price per 1M tokens
Microsoft • API Price Comparison
Also known as: microsoft-phi-4 · microsoft phi 4 · microsoftphi4 · microsoft-phi4 · microsoft phi4 · phi-4 · phi4
API pricing and token costs at a glance
Updated on · Published currencies / per 1M tokens; cheapest ranked by input
| Channel | Input / 1M | Output / 1M | Cache read / 1M | Updated / verified on |
|---|---|---|---|---|
| Official | No official quote recorded | |||
| OpenRouterLowest input | USD 0.07 | USD 0.14 | — | 2026-11-12 |
Metered API cost = input tokens / 1M × input rate + output tokens / 1M × output rate. At the lowest-input-rate channel, 1M input plus 250K output tokens costs approximately USD 0.105. This excludes caching, tools, retries and other service fees; the lowest input rate does not guarantee the lowest total bill.
— means the price or date is not recorded. Cross-currency ranking uses exchange rates.
Phi 4 is a large language model by Microsoft with a 16K-token context window. Across the 1 API channels tracked here, input pricing ranges from $0.07 per 1M input tokens; the cheapest is OpenRouter at $0.07 per 1M input tokens. Prices are collected daily from official provider pages and every tracked channel, then cross-checked by a data-accuracy audit.
| Channel | Type | Input / 1M | Output / 1M | Rate Limit | vs Official | ||
|---|---|---|---|---|---|---|---|
OpenRouter4 variants💰 Best Price | Aggregator | $0.07 | $0.14 | - | - | ||
Show all price variants for this channelOpenRouter Auto / default routeDefault $0.07 / $0.14 per 1M default_route Cheapest endpoint: DeepInfra $0.06 / $0.11 per 1M cheapest_endpoint DeepInfra | microsoft/phi-4 $0.06 / $0.11 per 1M upstream_provider DeepInfra | microsoft/phi-4 $0.07 / $0.14 per 1M upstream_provider | |||||||
| Usage Level | Tokens/Month | OpenRouter |
|---|---|---|
| 🐣 Light | 0.1M in + 0.1M out | $0.01 |
| 📊 Medium | 1.0M in + 0.5M out | $0.14 |
| 🚀 Heavy | 10.0M in + 5.0M out | $1.40 |
| 🏢 Enterprise | 100.0M in + 50.0M out | $14.00 |
Frequently asked questions about phi-4
How much does the Phi 4 API cost?
The lowest input rate is USD 0.07 per 1M tokens; output on that channel is USD 0.14 per 1M tokens.
Which channel has the cheapest Phi 4 API?
OpenRouter has the lowest input rate: USD 0.07 per 1M tokens. Cross-currency ranking uses exchange rates; compare output and cache prices separately.
What is the Phi 4 cache-read price?
No cache-read rate is recorded; missing prices do not imply free caching.
When was Phi 4 pricing last updated?
Updated on 2026-11-12. This is the latest recorded price update or verification; see the table for individual channel dates.
Is there a free Phi 4 API?
No available recorded channel lists both input and output at zero. Missing prices, free cache reads or a free chat tier do not establish a free API; check provider terms for trial credits.
How do I calculate Phi 4 token costs and monthly spend?
Metered API cost = input tokens / 1M × input rate + output tokens / 1M × output rate. At the lowest-input-rate channel, 1M input plus 250K output tokens costs approximately USD 0.105. This excludes caching, tools, retries and other service fees; the lowest input rate does not guarantee the lowest total bill.