Fresh paint, wet floors — we're rebuilding CostOfToken into a cross-provider price comparison. Some corners are still under construction; the full version is coming up soon.

Microsoft: Phi 4 pricing

Microsoft Research 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. Microsoft: Phi 4 from OpenRouter costs $0.070 per 1M input tokens and $0.140 per 1M output tokens. Context window 16,384 tokens.

API id microsoft/phi-4 · OpenRouter · source · updated 2026-09-25 · general-purpose

$0.070
Input / 1M tokens
$0.140
Output / 1M tokens
—
Cached input / 1M
16K
Context window

Microsoft: Phi 4 specifications

Provider
OpenRouter
API id
microsoft/phi-4
Model type
general-purpose
Context window
16K tokens
Max output
15K tokens
Currency
USD
Price source
Provider API
Last checked
2026-09-25

Microsoft: Phi 4 across providers

The same model, priced by every seller we track. Ranked by the cost of 1M input + 1M output tokens, standard tier; savings measured against buying from the vendor directly.

ProviderInput /1MCached /1MOutput /1M1M in + 1M outvs vendor
DeepInfraHostCheapest
$0.070—$0.140$0.21—
OpenRouterHostviewing
$0.070—$0.140$0.21—

What Microsoft: Phi 4 costs in practice

Estimated cost at common usage volumes
WorkloadInput tokensOutput tokensEstimated cost
Short chat turn1,000500$0.0001
Document summary50,0002,000$0.0038
1M tokens in, 200K out1,000,000200,000$0.10

Estimates use the standard tier and ignore caching discounts, so real bills with repeated prompt prefixes are typically lower.

Microsoft: Phi 4 price history

RecordedInput /1MOutput /1M
2026-08-27$0.070$0.140
2026-08-27$0.070$0.140

Common questions

How much does Microsoft: Phi 4 cost per 1M tokens?
Microsoft: Phi 4 costs $0.070 per 1M input tokens and $0.140 per 1M output tokens on the standard tier.
What is Microsoft: Phi 4's context window?
Microsoft: Phi 4 accepts up to 16,384 tokens in a single request, and can return up to 14,745 output tokens.
Is there a cheaper OpenRouter model than Microsoft: Phi 4?
Yes. Mistral: Mistral Nemo is $0.019 per 1M input tokens versus $0.070 for Microsoft: Phi 4, with a 131,072 token context window.
Where does this Microsoft: Phi 4 price come from?
From the OpenRouter catalogue, because OpenRouter does not publish machine-readable pricing. OpenRouter is a reseller, so its rate can differ from OpenRouter's own — verify before committing spend.

Head-to-head comparisons

Other OpenRouter models

See all OpenRouter pricing →