Price Per TokenPrice Per Token
Microsoft

Phi 4 API Pricing 2026

Compare pricing, benchmarks, and providers for Phi 4. Find the best value for your use case.

Sponsor Price Per Token Reach 5000+ developers comparing LLM APIs

124 out of our 298 tracked models have had a price change in January.

Get our weekly newsletter on pricing changes, new releases, and tools.

Last updated: January 22, 2026 at 08:06 AM

Overview

Phi 4 was released on January 10, 2025. Pricing starts at $0.060 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.

Context Window
16K
tokens
Pricing
Input$0.060
Output$0.140
per 1M tokens
Speed
Output11 tok/s
TTFT0.58s
median latency
Capabilities
Tools

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.060
$0.140
23.1
71.4
57.5
16,384
Try
$0.050
$0.400
78.9
78.0
67.6
400,000
Try
$0.050
$0.220
68.4
81.5
73.3
131,072
Try
$0.050
$0.220
28.0
67.5
47.0
40,960
Try
$0.050
$0.220
24.8
69.7
46.6
16,384
Try
$0.050
$0.200
16.3
63.3
41.0
1,000,000
Try
$0.050
$0.250
20.2
64.3
45.2
32,000
Try
$0.051
$0.340
32,768
Try
$0.060
$0.240
36.0
57.9
39.9
262,144
Try
$0.060
$0.180
27.5
68.1
50.5
131,072
Try
$0.060
$0.220
32.2
71.0
51.5
40,960
Try

* 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.

2
Providers
$0.060
Cheapest Input/M
$0.140
Cheapest Output/M
NextBit
Best Price

Provider Pricing

2 models

Provider
Input $/M
Output $/M
Uptime
N
NextBit
Best Price
$0.060
$0.140
100.0%
D
DeepInfra
$0.070
$0.140
100.0%
Provider pricing data sourced from OpenRouter and Helicone

Cost vs. Quality

Compare Phi 4's benchmark performance against all models.

X-axis:
Y-axis:
Loading chart...
Phi 4
Other models

Detailed Benchmark Scores

Intelligence
13.2 (19th pct)
Coding
11.2 (27th pct)
Math
18.0 (19th pct)
MMLU Pro
71.4 (36th pct)
GPQA
57.5 (44th pct)
LiveCodeBench
23.1 (16th pct)
AIME
14.3 (30th pct)
Aider
-
Benchmark data from Artificial Analysis and HuggingFace Open LLM Leaderboard

Try Phi 4

Use our Calculator

Estimate your costs based on expected token usage.

Open Cost Calculator

Try in Playground

Test Phi 4 directly in your browser.

Open Playground

Frequently Asked Questions

Phi 4 costs $0.000060 per 1,000 input tokens and $0.000140 per 1,000 output tokens.
Phi 4 is available from 2 provider(s). NextBit offers the best price.
We compare Phi 4 with 10 similarly-priced models. See the benchmark scatter plot above to compare quality vs cost.

All Microsoft Models

See pricing for all Microsoft models.

View all Microsoft models →