Phi 4 — API Pricing, Context Window & Specifications
Phi 4 by Microsoft: $0.07 per 1M input tokens, $0.14 per 1M output tokens, 16K token context window, monthly workload cost estimates and rival LLM comparisons.
$0.07Input / 1M
$0.14Output / 1M
16KContext
15KMax Output
MicrosoftProvider
text->textModality
Phi 4 token cost by volume
| Token volume | Input cost | Output cost |
|---|---|---|
| 10K tokens | $0.0007 | $0.0014 |
| 100K tokens | $0.0070 | $0.014 |
| 1M tokens | $0.07 | $0.14 |
| 10M tokens | $0.70 | $1.40 |
| 100M tokens | $7.00 | $14.00 |
| Workload scenario (30 days) | Est. monthly bill |
|---|---|
| Customer chatbot (1,000 chats/day · 1.5K in + 500 out) | $5.25 |
| Enterprise RAG search (5,000 queries/day · 4K in + 600 out) | $54.60 |
| Coding / agentic workflow (500 runs/day · 12K in + 2K out) | $16.80 |
Frequently asked questions
How much does the Phi 4 API cost per million tokens?
Phi 4 (Microsoft) is priced at $0.07 per 1 million input tokens and $0.14 per 1 million output tokens.
What is Phi 4's maximum context window and output limit?
Phi 4 supports a context window of 16,384 tokens with up to 14,745 maximum completion tokens (text->text).