Skip to content

Microsoft: Phi 4

Microsoft

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

Pricing

Input (per 1M tokens)
$0.07
Output (per 1M tokens)
$0.14
Cached input (per 1M)
—

Specifications

Provider
Microsoft
Context window
16K tokens
Parameters
—
Released
—
Open weights
—
Frontier model
No
Hugging Face
microsoft/phi-4

Benchmarks

Speed & latency

Time to first token
0.43s
Output speed
100 tok/s

Fastest host: deepinfra (via hf-router).

Compare Microsoft: Phi 4 with…

FAQ

How much does Microsoft: Phi 4 cost?

Microsoft: Phi 4 is priced at $0.07 per 1M input tokens and $0.14 per 1M output tokens. Output tokens cost more than input.

What is Microsoft: Phi 4's context window?

Microsoft: Phi 4 supports a context window of 16K tokens — the maximum prompt plus response length it can handle in a single request.

Is Microsoft: Phi 4 open weight?

Open-weight status for Microsoft: Phi 4 is not recorded in our dataset.

Data as of 2026-10-14. Source: Pricing via OpenRouter API, openrouter.ai. Pricing is per 1M tokens (USD); confirm with the provider before production use.