Microsoft Phi 4
[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...
Microsoft Phi 4 costs $0.07 per 1M input tokens and $0.14 per 1M output tokens at the standard tier from DeepInfra (bf16), the only provider SF·SIX tracks for this model. Updated ; prices checked . The context window is 16,384 tokens.
- Developer
- Microsoft
- Input modalities
- text
- Output modalities
- text
- Context tokens
- 16,384
- Latest price observation
- 2026-12-02
- Lowest paired standard token quote
- $0.07 input / $0.14 output per 1M tokens
Providers and prices
| Provider and channel | Input | Output or native rate | Unit and status | Context | Max output | Throughput | Latency | Uptime | Cheapest / fastest | Source and observation |
|---|---|---|---|---|---|---|---|---|---|---|
| DeepInfraOpenRouter · bf16 | $0.07 | $0.14 | 1M tokenspriced · USD | 16,384 | 14,745 | 86 tok/s | 277 ms | 100.0% | Cheapest standard price | OpenRouter2026-12-02 |
| DeepInfraOpenRouter · Flex tier · bf16 | $0.056 | $0.112 | 1M tokenspriced · USD | 16,384 | 14,745 | Not reported | Not reported | Not reported | OpenRouter2026-12-02 |
Cheapest standard price: $0.07 / $0.14 per 1M input / output tokens, from DeepInfra (bf16).
Price and release history
- · First seen by SF·SIX
- · Released
Every dated price observation: the price-history API.
Speed by provider
| Provider and terms | Throughput | Latency | Uptime | Input / 1M |
|---|---|---|---|---|
| DeepInfrabf16 | 86 tok/s | 277 ms | 100.0% | $0.07 |
Previous 30 minutes; reported by OpenRouter. Fastest first.
Prices by service tier
| Tier | Input / 1M | Output / 1M | Cache read / 1M | Cheapest provider | vs standard (blended) |
|---|---|---|---|---|---|
| Standard | $0.07 | $0.14 | Not reported | DeepInfra | 100% |
| Flex | $0.056 | $0.112 | Not reported | DeepInfra | 80% |
Each tier’s cheapest endpoint. Standard is the default-region headline; flex and batch trade speed or latency for a lower price, priority and fast cost more for faster service.
Cost of common workloads
| Model | Support chatbot / month | RAG / research assistant / month | Batch summarisation / month |
|---|---|---|---|
| Microsoft Phi 4 | $8.05 | $13.16 | $7.70 |
| DeepSeek V4 Flash 0731 | $8.05 | $13.16 | $7.70 |
| Hy4 flash | $7.75 | $10.80 | $6.00 |
| Solar Mini 4 | $7.75 | $10.80 | $6.00 |
Support chatbot: 50,000 requests a month of 1,500 input and 400 output tokens; RAG / research assistant: 20,000 requests a month of 8,000 input and 700 output tokens; Batch summarisation: 10,000 requests a month of 10,000 input and 500 output tokens. Each model at its standard headline price, next to the 3 comparable models priced nearest to it. Prompt caching, batch discounts and long-context prices are not included, so the estimates are indicative. Estimate your own workload
Alternatives
| Model | Input / 1M | Output / 1M | Context | Why listed |
|---|---|---|---|---|
| Granite 4.2 8BIBM Granite | $0.06 | $0.15 | 131,072 | 6% cheaper (blended), same or larger context |
| Gemma 4 26B A4BGoogle DeepMind | $0.047 | $0.1695 | 262,144 | 11% cheaper (blended), same or larger context |
| Gemma 3 12BGoogle DeepMind | $0.05 | $0.15 | 131,072 | 14% cheaper (blended), same or larger context |
Models with the same output modalities from other model families, at their standard headline prices. Intelligence Index: Artificial Analysis, where scored.
Capabilities
| Capability | Support |
|---|---|
| Input modalities | text |
| Output modalities | text |
| Image input (vision) | No |
| Tool calling | Yes (2 of 2 endpoints) |
| Structured outputs (JSON) | Yes (2 of 2 endpoints) |
| Reasoning | Not listed |
| Web search | Not listed |
| Log probabilities | Not listed |
| Seed | Yes (2 of 2 endpoints) |
| Max output tokens | 14,745 |
From the model’s modalities and its providers’ published parameter lists. “Not listed” means no provider lists the parameter, not that the model cannot do it.
Compare and estimate
Frequently asked questions
How much does Microsoft Phi 4 cost per 1M tokens?
$0.07 per 1M input tokens and $0.14 per 1M output tokens at the standard tier, the lowest default-region price SF·SIX tracks, from DeepInfra (bf16).
Which providers offer Microsoft Phi 4?
1 provider with 2 priced endpoints: DeepInfra.
What is the context window of Microsoft Phi 4?
16,384 tokens, with up to 14,745 output tokens per request on its providers.
How fast is Microsoft Phi 4?
The fastest measured endpoint is DeepInfra (bf16) at 86 tok/s with 277 ms latency, as reported by OpenRouter for the previous 30 minutes.
What are cheaper alternatives to Microsoft Phi 4?
Granite 4.2 8B at $0.06 / $0.15 (6% cheaper, blended); Gemma 4 26B A4B at $0.047 / $0.1695 (11% cheaper, blended); Gemma 3 12B at $0.05 / $0.15 (14% cheaper, blended). Standard prices per 1M input / output tokens.
Which features does Microsoft Phi 4 support?
Its providers list tool calling, structured outputs (JSON), seed. It takes text input and returns text output.
How much does a support chatbot cost with Microsoft Phi 4?
About $8.05 a month for 50,000 requests of 1,500 input and 400 output tokens, at the standard headline price before caching and batch discounts.
Prediction markets
Microsoft Phi 4 meets the rule for SF·SIX price ladders; the current average standard input price across qualifying OpenRouter endpoints is $0.07 per 1M tokens. Open Microsoft Phi 4 markets (Hedera testnet, test funds only) · How AI prediction markets work
Sources and freshness
| Source | Records | Latest observation | Source checked |
|---|---|---|---|
| OpenRouter | 2 |
Data as of . Prices are USD per 1M tokens at the standard service tier in the default region: the cheapest qualifying provider per model, with flex, batch, priority and fast endpoints and unusually low outliers never used as the headline. “Blended” weights input and output 3:1. Methodology
These are dated, non-executable observations. Verify the exact endpoint, price and terms with the source before use. Unknown values are not free.