Microsoft: Phi 4

Microsoft: Phi 4

microsoft · Released Jan 10, 2025
Intelligence #342 / 743
33.0 our score
Speed #285 / 326
41.5 tok/s
Input Price #199 / 743
$0.070 per 1M tokens
Output Price #178 / 743
$0.140 per 1M tokens
Context #587 / 743
16,384 tokens

Analysis Summary

Microsoft Phi 4 is a compact text model priced for economical use, with a 16K context window. The supplied results show stronger mathematical performance than its general intelligence score suggests, alongside useful coding and code-generation signals. That profile makes it relevant to narrow technical prompts where the input and expected answer can remain tightly bounded.

It can serve formula generation, lightweight coding assistance, structured extraction, and inexpensive classification. The short context window limits long briefs, codebases, and document analysis, while the measured instruction-following result creates additional risk for precise client-facing content. It also lacks the tool and function-calling indicators available on several alternatives in this batch. Use Phi 4 for focused, testable subroutines rather than as a general agency assistant, especially when low cost matters more than broad workflow coverage.

Assessed August 9, 2026

Editorial notes

Phi 4 combines very low pricing with useful mathematical and coding signals, but its 16K context window and weak instruction-following result make it better for focused tasks than broad client workflows.

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

DFO Verdict

Phi 4 combines very low pricing with useful mathematical and coding signals, but its 16K context window and weak instruction-following result make it better for focused tasks than broad client workflows.

#342 of 743 overall Down 13 this week

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.6 Intelligence Index·18 Math Index

How Microsoft: Phi 4 compares

Microsoft: Phi 4 ranks #365 of 432 AI models we track for overall intelligence. Its 16K-token context window is larger than 21% of the models we list. At $0.07 per million input tokens it is cheaper than 73% of comparable models.

Position in the field
Intelligence: smarter than 54% of models #342
Speed: faster than 13% of models #285
Price: cheaper than 73% of models #199
Context: larger than 21% of models #587
worst in fieldmedianbest in field
Price vs frontier peers · $ per 1M tokens
Microsoft: Phi 4 $0.07 in $0.14 out
OpenAI: GPT-5.6 Sol $2.00 in $10.00 out
Claude Opus 5 $5.00 in $25.00 out
SpaceXAI: Grok 4.6 $2.00 in $6.00 out

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

Context window vs peers · tokens
Microsoft: Phi 4 16K

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

Intelligence1.8Technical0Value7.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

$0/mo Microsoft: Phi 4

Full calculator with 743 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.

© 2026 Design for Online Ltd. Registered in England and Wales No. 10328553. VAT Registered. Design for Online® and Forerunner® are registered trademarks.