Phi 4 API Pricing 2026
Compare pricing, benchmarks, and providers for Phi 4. Find the best value for your use case.
Overview
Phi 4 was released on January 10, 2025. Pricing starts at $0.070 per million input tokens and $0.140 per million output tokens. The model supports a context window of up to 16K tokens. API access is available through Microsoft.
Phi 4 is priced at $0.070 per million input tokens and $0.140 per million output tokens. It has a context window of 16,384 tokens. It is available from 2 providers, with DeepInfra the cheapest at $0.070 per million input tokens. On benchmarks, Phi 4 scores Intelligence 30.4 (56th percentile), MMLU Pro 47.6 (90th percentile), GPQA 20.8 (55th percentile).
Pricing Comparison
Compare Phi 4 with 10 similar models by price.
Current Pricing (per 1M tokens)
11 models
Provider | Model | Input $/M | Output $/M | Coding | MMLU | GPQA | Context | Actions |
|---|---|---|---|---|---|---|---|---|
$0.070 | $0.140 | — | 47.6 | 20.8 | 16,384 | |||
$0.060 | $0.180 | — | — | — | - | |||
Z | $0.060 | $0.400 | — | — | — | 202,752 | ||
QW | $0.064 | $0.224 | — | — | — | 40,960 | ||
QW | $0.065 | $0.750 | — | — | — | 262,144 | ||
QW | $0.065 | $0.260 | — | — | — | 1,000,000 | ||
Z | $0.070 | $1.400 | — | — | 91.7 | 1,048,576 | ||
QW | $0.070 | $0.280 | — | — | — | 160,000 | ||
$0.070 | $0.280 | — | — | — | 131,072 | |||
$0.070 | $0.070 | — | — | — | 8,192 | |||
$0.070 | $0.350 | — | — | — | 32,000 |
* Some models use tiered pricing based on prompt length. Displayed prices are for prompts ≤ 200k tokens.
Compare Providers
Phi 4 is available from multiple providers with different pricing and availability.
Provider Pricing
2 models
Provider | Input $/M | Output $/M | Cache Read $/M | Cache Write $/M | Uptime |
|---|---|---|---|---|---|
![]() DeepInfra Best Price | $0.070 | $0.140 | - | - | 100.0% |
OpenRouter Best Price | $0.070 | $0.140 | - | - | - |
Community Rankings
How does Phi 4 perform? Vote based on your experience.
Cost vs. Quality
Compare Phi 4's benchmark performance against all models.
Detailed Benchmark Scores
Try Phi 4
Use our Calculator
Estimate your costs based on expected token usage.
Open Cost CalculatorTry in Playground
Test Phi 4 directly in your browser.
Open PlaygroundCompare Phi 4
Similar Price Range
Popular Competitors
Frequently Asked Questions
All Microsoft Models
See pricing for all Microsoft models.
View all Microsoft models →