UtilMesh
Menu
Microsoft

Phi 4 pricing and limits

Phi 4 charges $0.070 per million input tokens and $0.140 per million output tokens. Below is the full rate card, the context limit, and cost examples for common workloads.

Input / 1M tokens
$0.070
Output / 1M tokens
$0.140
Context window
16K
Max output
15K

What a request actually costs

Estimated from the listed per-token prices, without cache discounts or batch pricing.

WorkloadInput tokensOutput tokensEstimated cost
Short chat turn1,000500$0.0001
Code review10,0002,000$0.0010
Long document100,00020,000$0.0098
Bulk batch item1,000,000200,000$0.0980

Capabilities

Input types
text
Output types
text
Tool calling
Not listed
Moderated
No

Where these numbers come from

Prices and limits are read from OpenRouter's public model feed, not from a direct vendor contract, and refreshed by a scheduled job. OpenRouter can route the same model through different providers, so its listed rate may differ from the vendor's own rate card. Treat this page as a starting point and confirm the final number on the vendor page before you commit to volume.

Last refreshed 2026-11-24. Open the source record

About this model

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