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.

OpenClaw

Best LLMs for OpenClaw Vote for which model works best with OpenClaw

112 out of our 301 tracked models have had a price change in February.

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

Last updated: February 15, 2026 at 08:07 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
Output6 tok/s
TTFT0.79s
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
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
131,072
Try
$0.050
$0.400
20.2
64.3
45.2
32,000
Try
$0.051
$0.340
32,768
Try
$0.060
$0.400
45.2
202,752
Try
$0.060
$0.180
27.5
68.1
50.5
131,072
Try
$0.060
$0.060
4,096
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
-
Provider pricing data sourced from OpenRouter and Helicone

Community Rankings

How does Phi 4 perform? Vote based on your experience.

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
10.5 (9th pct)
Coding
11.2 (25th pct)
Math
18.0 (19th pct)
MMLU Pro
71.4 (35th pct)
GPQA
57.5 (41th pct)
LiveCodeBench
23.1 (15th pct)
AIME
14.3 (29th 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 →