microsoft

Microsoft: Phi 4

Microsoft Phi 4 is designed for handling text inputs with an extensive context length of up to 16,384 tokens and supports up to 16,384 completion tokens. However, it does not support tools, reasoning, or structured output, making it more focused on straightforward text processing. For those looking for a cost-effective solution within their budget, Microsoft Phi 4 offers pricing at $0.07 per million input tokens and $0.14 per million output tokens. Its benchmark score of 6.0 across various independent tests positions it as a reliable choice, though its lack of support for advanced features like reasoning might limit its applicability in more complex scenarios.

Quality Score
61/100
price + capability + benchmarks
Input Price
$0.07
per 1M tokens
Output Price
$0.14
per 1M tokens
Context Window
16,384
tokens

Benchmark results

Independent, published benchmarks. Blended score 6.0 across 1 benchmark, last refreshed 2026-08-13. How scoring works →

BenchmarkMeasuresScore
AI Index broad capability composite 7.5
Model ID
microsoft/phi-4
Vendor
microsoft
Released
January 2025
Tokenizer
Other
Input Modalities
text
Output Modalities
text
Max Output
16,384 tokens
Tool Calling
not supported
Structured Output
✓ supported
Reasoning Mode
not supported
Vision
text only
Audio
no
Moderated
no

What it costs in practice

Computed from the current $0.07/M input and $0.14/M output rates. Run your own numbers →

JobTokensCost
Summarize a 50-page report 30k in / 1.5k out under $0.01
Classify 1,000 customer emails 500k in / 50k out $0.04
A month of a busy support chatbot 5M in / 2M out $0.63

Similar models

Quick answers

How much does Microsoft: Phi 4 cost?
$0.07 per million input tokens and $0.14 per million output tokens.
What is Microsoft: Phi 4's context window?
16,384 tokens, roughly 24 pages of text in a single request.
Does Microsoft: Phi 4 support tool calling?
It supports structured output.
Can Microsoft: Phi 4 process images?
No, it is text-only on the input side.