Skip to content
TopLLM

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.

Input$0.07/1M
Output$0.14/1M
Context16K

Pricing and tiers

USD per 1M tokens.

TierInputOutputNotes
Standard$0.07$0.14

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.

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.