Phi 4 API Pricing 2026
Compare pricing, benchmarks, and providers for Phi 4. Find the best value for your use case.
Change 3 lines of code and let providers compete for your requests in real time.
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.
Pricing Comparison
Compare Phi 4 with 0 similar models by price.
Current Pricing (per 1M tokens)
1 models
Provider | Model | Input $/M | Output $/M | Coding | MMLU | GPQA | Context | Actions |
|---|---|---|---|---|---|---|---|---|
$0.070 | $0.140 | 23.1 | 71.4 | 57.5 | 16,384 |
* 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.
No multi-provider data available for this model
This model may only be available from a single provider
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 →