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.

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

OpenClaw

Deploy OpenClaw in Under 1 Minute We handle hosting, scaling, and maintenance

8 Ways to Use Fewer Tokens
Last updated: April 1, 2026 at 08:39 AM

Overview

Phi 4 was released on January 10, 2025. Pricing starts at $0.065 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.065
Output$0.140
per 1M tokens
Speed
Output37 tok/s
TTFT0.43s
median latency
Capabilities
Tools

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.065
$0.140
23.1
71.4
57.5
16,384
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.

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.

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

Detailed Benchmark Scores

Intelligence
10.4 (11th pct)
Coding
11.2 (25th pct)
Math
18.0 (18th pct)
MMLU Pro
71.4 (41th pct)
GPQA
57.5 (42th pct)
LiveCodeBench
23.1 (18th 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.000065 per 1,000 input tokens and $0.000140 per 1,000 output tokens.
Phi 4 is available from 0 provider(s). Check the comparison table offers the best price.
We compare Phi 4 with 0 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 →