Microsoft
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 every 10 minutes.

Cost calculator

Cheaper alternatives to Phi 4

ModelInputOutputContextIntel.
Z.ai (Zhipu)
GLM 5.3 Flash
Z.ai (Zhipu)
$0.0399$0.07841M27.8compare

Using a relay or third-party API?

Check for free whether it really serves Phi 4: output fingerprint, tokenizer and billing evidence, results in 1–3 minutes.

Check authenticity →

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-11-12.

What are cheaper alternatives to Phi 4?

Cheaper options include GLM 5.3 Flash ($0.0399/$0.0784).