Phi 4
Open weightsVerified December 1, 2026
Phi 4 is a strong fit for high volume work on a budget, self hosting, at $0.07/$0.14 per 1M tokens.
Pricing and tiers
USD per 1M tokens.
| Tier | Input | Output | Notes |
|---|---|---|---|
| Standard | $0.07 | $0.14 |
Head to head
Cheaper alternatives with similar scores
Specs
- Company
- Microsoft
- Released
- January 10, 2025
- Weights
- Open
- Context window
- 16,384 tokens
- Max output
- 14,745 tokens
- Official page
- Model documentation
Where Phi 4 ranks
Its place on our main guides.
Best LLM right now
See which models lead this month.
Best LLM for coding
The top coding models, with cheaper alternatives.
Best open source LLMs
How open weight models compare.
LLM API pricing comparison
Phi 4 costs about $0.09 per million tokens, blended.
LLM leaderboard
Every model with its scores side by side.
Phi 4 questions
How much does Phi 4 cost?
Phi 4 costs $0.07 per million input tokens and $0.14 per million output tokens. The cost calculator turns that into a monthly bill.
What is the context window of Phi 4?
Phi 4 reads up to 16,384 tokens and writes up to 14,745 in one reply.
Can I run Phi 4 locally?
It has open weights, but we do not know its parameter count, so check the model card before you size hardware.
What is a good alternative to Phi 4?
Ling 3.0 Tiny scores close to it for less per token. Compare it head to head with Gemini 4 Neon.