Home › Providers › microsoft › Microsoft: Phi 4

Microsoft: Phi 4 API Pricing

Microsoft: Phi 4 is an API model from microsoft. It costs $0.07 per 1M input tokens and $0.14 per 1M output tokens. Its context window is 16,384 tokens with up to 14,745 output tokens. A workload of 10M input + 2M output tokens costs about $0.98 per month.
Input
$0.07
per 1M tokens
Output
$0.14
per 1M tokens
Cached input
—
per 1M tokens
Context window
16K
16,384 tokens
Blended (80/20)
$0.084
per 1M tokens

[Microsoft Research](/microsoft) Phi-4 is designed to perform well in complex reasoning tasks and can operate efficiently in situations with limited memory or where quick responses are needed. At 14 billion...

How much does Microsoft: Phi 4 cost for a real workload?

At 10M input + 2M output tokens per month, Microsoft: Phi 4 costs about $0.98 ($0.7 input + $0.28 output). Try your own volumes in the cost calculator.

Price history

Tracked since 2026-10-21 (47 daily snapshots) with no price changes. Current: $0.07 input / $0.14 output per 1M tokens.

What are cheaper alternatives to Microsoft: Phi 4?

Where to run Microsoft: Phi 4

AI/ML API: one API key for 400+ models, including most models tracked here · Novita AI: pay-as-you-go APIs for open models (DeepSeek, Qwen, Llama and more) plus GPU cloud · CometAPI: one API for 500+ models (GPT, Claude, Gemini and more) at about 80% of official prices. Prices there follow each platform's own catalog and can differ from the list prices tracked here.

Run it on AI/ML API →Run it on Novita AI →Run it on CometAPI →

Disclosure: links to these platforms may be affiliate links — if you sign up or buy through them, LLMPrices may earn a commission at no extra cost to you.

Compare Microsoft: Phi 4 with other models

—

Frequently asked questions

How much does Microsoft: Phi 4 cost?

Microsoft: Phi 4 costs $0.07 per 1M input tokens and $0.14 per 1M output tokens (list price, snapshot December 06, 2026). At 10M input + 2M output tokens per month that is about $0.98.

What is the context window of Microsoft: Phi 4?

Microsoft: Phi 4 has a context window of 16,384 tokens and can return up to 14,745 output tokens per response.

What are cheaper alternatives to Microsoft: Phi 4?

Cheaper models include IBM: Granite 4.2 8B ($0.06 in / $0.15 out), DeepSeek: DeepSeek V4.1 Flash (batch) ($0.05 in / $0.15 out), Reka Edge ($0.1 in / $0.1 out). See the full list on this page.

Is Microsoft: Phi 4 free to use?

No. Microsoft: Phi 4 is a paid model at $0.07 input / $0.14 output per 1M tokens. 16 free models are listed on the free models page.

Provider: microsoft · Model ID: microsoft/phi-4 · Modality: text->text · Price snapshot December 06, 2026, refreshed daily. How we collect prices