M
Microsoft

Phi 4 pricing & price history

microsoft/phi-4

Phi 4 by Microsoft costs $0.07 per 1M input tokens and $0.14 per 1M output tokens, with a 16K token context window.

$0.07Input / 1M tokens
$0.14Output / 1M tokens
16KContext window
Intelligence index

Price history

$0.000$0.081$0.161 2026-09-24today input /1M output /1M

No price changes since tracking began on 2026-09-24. We check hourly.

Cost calculator

Alternatives to Phi 4

ModelInputOutputContextIntel.
$0.08$0.20262K12.9compare
$0.04$0.321.3M34.3compare
$0.15$0.15262K5.5compare
M
Llama 4 Scout
Meta Llama
$0.10$0.301.3Mcompare
$0.14$0.281Mcompare
$0.18$0.18164Kcompare
$0.10$0.501.1Mcompare
O
$0.10$0.501.1M37.3compare

About Phi 4

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

FAQ

How much does Phi 4 cost?

Phi 4 by Microsoft costs $0.07 per 1M input tokens and $0.14 per 1M output tokens, with a 16K token context window. A typical request with 2,000 input and 500 output tokens costs about $0.0002.

What is the context window of Phi 4?

Phi 4 supports up to 16,384 tokens of context and up to 14,745 output tokens per request.

Has Phi 4’s price changed?

No price changes recorded since ModelBank started tracking it on 2026-09-24.

Is Phi 4 being deprecated?

No retirement date has been announced for Phi 4 as of 2026-09-24.