Microsoft: Phi 4

Microsoft: Phi 4

microsoft · Released Jan 10, 2025
Intelligence #267 / 612
33.2 our score
Speed #279 / 287
28.9 tok/s
Input Price #176 / 612
$0.070 per 1M tokens
Output Price #162 / 612
$0.140 per 1M tokens
Context #460 / 612
16,384 tokens

Analysis Summary

Phi 4 is Microsoft's small-footprint model, priced at $0.07 input and $0.14 output per million tokens. Its math index of 18 and GPQA of 0.575 are above average for its size class, and MMLU-Pro at 0.714 is competitive. However, the 16K context window is a significant limitation for document-heavy business workflows.

It suits narrow, well-defined tasks: structured data extraction, short-form content generation, and math-adjacent reasoning where a small, cheap model is preferable. The low agentic index of 3.8 means it is not a fit for tool-calling pipelines or autonomous agents. No vision or function calling is listed.

At this price point it offers reasonable value for lightweight automation, but the context constraint means teams working with longer documents or codebases will quickly hit its limits. Best adopted as a specialist model for specific, bounded tasks rather than a general-purpose assistant.

Assessed July 10, 2026

Editorial notes

Microsoft Phi 4 is a compact model with strong math scores and reasonable MMLU-Pro performance, but a 16K context window and limited agentic capability constrain its business utility.

Rankings consider pricing, capabilities, benchmarks, and real-world applicability and are refreshed as new models launch. Feedback?

DFO Verdict

Microsoft Phi 4 is a compact model with strong math scores and reasonable MMLU-Pro performance, but a 16K context window and limited agentic capability constrain its business utility.

#267 of 612 overall

Benchmark scores

GPQA Diamond 57.5%
HLE 4.1%
MMLU Pro 71.4%
MATH 500 81%
AIME 14.3%
AIME 2025 18%
SciCode 26%
LiveCodeBench 23.1%
TerminalBench Hard 3.8%
IFBench 23.5%

Magenta = intelligence Ā· Ink = technical/agentic Ā· Cyan = content & long-context Ā· Grey = community benchmarks. Data: Artificial Analysis, Hugging Face.

4.9 Intelligence IndexĀ·3.8 Agentic IndexĀ·18 Math Index

How Microsoft: Phi 4 compares

Microsoft: Phi 4 ranks #326 of 393 AI models we track for overall intelligence, #280 of 300 for agentic tasks. Its 16K-token context window is larger than 25% of the models we list. At $0.07 per million input tokens it is cheaper than 71% of comparable models.

Position in the field
Intelligence: smarter than 56% of models #267
Speed: faster than 3% of models #279
Price: cheaper than 71% of models #176
Context: larger than 25% of models #460
worst in fieldmedianbest in field
Price vs frontier peers Ā· $ per 1M tokens
Microsoft: Phi 4 $0.07 in $0.14 out
Anthropic: Claude Fable 5 $10.00 in $50.00 out
Anthropic: Claude Opus 4.8 $5.00 in $25.00 out
Google: Gemini 3.1 Pro Preview $2.00 in $12.00 out

Dark bar = input Ā· light bar = output, scaled to the priciest peer.

Context window vs peers Ā· tokens

1M tokens ā‰ˆ 8 full-length novels or ~2,500 pages of business documents in a single request.

Intelligence1.8Technical0.6Value7.5Content4.5
Performance profile

Strongest on value. The pulled-in technical corner is the trade-off, and if the shape matters more than the price, this is your model.

Compare shapes side-by-side →

Pricing

Token Type Cost per 1M tokens Cost per 1K tokens
Input $0.07 $0.000070
Output $0.14 $0.000140

What would Microsoft: Phi 4 cost your business?

Pick the job that looks most like yours, then fine-tune with the sliders. Estimates update live.

A website chatbot handling around 100 customer conversations a day, a few short messages each.

3,000
One request is one message, email, draft or automation call.
1,200 tokens

Full calculator with 612 models → Price Calculator

DFO AI AUTOMATION

These numbers get smaller with the right architecture.

We route routine calls to cheap models and save Microsoft: Phi 4 for the hard ones. Most clients cut their estimate by 60-80%.

Talk to our team

About Microsoft: Phi 4

Microsoft Research 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..

Frequently asked questions about Microsoft: Phi 4

How much does Microsoft: Phi 4 cost?

Microsoft: Phi 4 costs $0.07 per million input tokens and $0.14 per million output tokens.

What is the context window of Microsoft: Phi 4?

Microsoft: Phi 4 has a context window of 16,384 tokens (16K).

Who created Microsoft: Phi 4?

Microsoft: Phi 4 is developed by Microsoft and was released on January 10, 2025.