14B small language model, great for edge and cheap tasks. Built by Microsoft.
Prices updated
Input price
$0.07
per 1M tokens · Standard
Output price
$0.14
per 1M tokens · Standard
Input limit
16K
tokens
Output limit
15K
tokens
Input formats
Output formats
Phi-4 price history
12 price records since 4/1/2026 · 10 changes
Overview
What is Phi-4?
Phi-4 is a code & slms and text & reasoning model from Microsoft priced at $0.07 input and $0.14 output per 1M tokens, with a 16K context window. Its low input price suits high-volume work and it scores 5.9 on AA Intelligence.
Benchmarks
Phi-4 benchmarks & speed
How Phi-4 scores on standardized evaluations, and where it lands among every model we track.
5.9
Intelligence Index
39tok/s
Output speed
Reasoning
GPQA Diamond
57.5%
Graduate-level scientific reasoning · top 82%
HLE
3.8%
Humanity's Last Exam · top 92%
Latency & design
- Time to first token
- 2.59s
Independent scores from Artificial Analysis and DesignArena · updated 10/5/2026. Higher is better; ranks compare against every model we track with that score.
Rates
Phi-4 pricing
Pricing is based on token usage. Provider-specific caching, batch, regional, and tool charges may affect the final cost.
Input · Standard
$0.07
Per 1M tokens
Cached input · Standard
Not available
No listed cached-input rate
Capabilities
Phi-4 Tools
Tools available when using Phi-4 through supported provider APIs.
Function calling
Not listed
Structured outputs
Supported
JSON mode
Supported
Reasoning
Not listed
Built-in web search
Not listed
Log probabilities
Not listed
Deterministic seed
Supported
Parallel tool calls
Not listed
Prompt caching
Not listed
Where to run it
Phi-4 API providers
2 providers serve Phi-4. Prices are per 1M tokens; uptime is the last 24 hours.
| Provider | Input | Output | Cached | Context | Uptime |
|---|---|---|---|---|---|
| DeepInfrabf16 | $0.06 | $0.11 | — | 16K | 100% |
| DeepInfrabf16 | $0.07 | $0.14 | — | 16K | 99.9% |
- Input
- $0.06
- Output
- $0.11
- Cached
- —
- Context
- 16K
- Uptime
- 100%
- Input
- $0.07
- Output
- $0.14
- Cached
- —
- Context
- 16K
- Uptime
- 99.9%
Strengths and limitations
Strengths
- Price rank 23 of 330 tracked models (1 = cheapest, by blended price).
- Blended price at 3 input : 1 output is $0.088 per 1M tokens.
- 1M input + 250K output tokens costs about $0.11.
- Context window 16K vs a median of 262K (16.0× smaller).
Limitations
- Real-world cost still depends on prompt length, response length and provider-specific billing rules.
- The 16K context window is smaller than several long-context alternatives.
- Benchmarks are directional; test accuracy, latency and reliability on your own workload before committing.
Public listed prices, checked Dec 4, 2026. Benchmarks as published by their sources. Confirm with the provider.
Same provider
More models from Microsoft
Peer set
