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.

No bots, no big tech influence — join the new community for AI devs
8 Ways to Use Fewer Tokens
Last updated: May 13, 2026 at 08:24 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
Output38 tok/s
TTFT0.54s
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 (13th pct)
Coding
11.2 (26th pct)
Math
18.0 (18th pct)
MMLU Pro
71.4 (42th pct)
GPQA
57.5 (42th pct)
LiveCodeBench
23.1 (21th pct)
AIME
14.3 (31th 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.

All Microsoft Models

See pricing for all Microsoft models.

View all Microsoft models →