Phi 4

Dec 2024
Phi 4
Compare in
on
—per task?
$0.056 / $0.11per 1M in / out?
59 tok/sfirst token in 1.8 s?
16Kcontext

Rankingin non-thinking mode?

Alternatives?

Run it yourself

estimate
Fits on✓ 8 GB (phone, laptop) · compressed✓ 16 GB · 8-bit✓ 24 GB GPU · 8-bit✓ 48 GB GPU · full quality✓ 80 GB GPU · full quality
LicenceMITfree for commercial use

Benchmarks

all categories
Chat & Knowledge
MMLU-Pro · official boardlab70.4
GPQA Diamond57.5#238
Coding
Agents & Tool Use
Writing & Language

FAQ

How much does Phi 4 cost?›

$0.056 per 1M input tokens and $0.11 per 1M output tokens (cheapest host: DeepInfra).

Is Phi 4 free to use?›

There is no free API; the cheapest paid price is $0.056 per 1M input tokens. The weights are open, so you can run it yourself.

How good is Phi 4, and what is it best at?›

#316 of 334 in Chat & Knowledge, #171 of 239 in Coding, #229 of 242 in Agents & Tool Use, #171 of 195 in Writing & Language.

Is Phi 4 better than Gemma 3 27B?›

On BFCL v4, Phi 4 scores 28.8 vs 29.5 — about the same.

How can I use Phi 4?›

Through the API of Azure AI Foundry, DeepInfra, Featherless.

What is the context window of Phi 4?›

16K tokens, with up to 15K output tokens.

When was Phi 4 released? Is there a newer version?›

Released 2024-12-12. It is the current version in its line.

Is Phi 4 open source?›

Yes, the weights are open (MIT licence).

Can I run Phi 4 locally?›

The weights are open and can be self-hosted; hardware needs are not confirmed yet.

Can Phi 4 read images?›

No, it accepts text only.

What is Phi 4?›

Phi 4 is an open-weights language model from Microsoft, released Dec 2024.

What are the best alternatives to Phi 4?›

Command R7b (cheaper), Claude Opus 4.5 (better), Nanbeige4 3B Thinking 2511 (open weights).