Skip to content
LLMs
Microsoft logo

Microsoft: Phi 4

by Microsoft

Microsoft: Phi 4 is a large language model from Microsoft. It costs $0.070 per million input tokens and $0.140 per million output tokens. Its context window is 16K tokens.

Structured outputOpen weights
Input / 1M tokens
$0.070
Output / 1M tokens
$0.140
Cached input / 1M
-

Not supported

Context window
16K

tokens

Who serves it cheapest

1 hosts serve Phi 4. Same weights, same API - the price difference is pure margin and routing.

Providers serving Microsoft: Phi 4, cheapest first
ProviderInput / 1MOutput / 1MContextThroughputUptime 24h
DeepInfraCheapestbf16$0.070$0.14016K-100.0%

About Phi 4

[Microsoft Research](/microsoft) 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...

Specifications

Microsoft: Phi 4 specifications
Model IDmicrosoft/phi-4
ProviderMicrosoft
Context window16K tokens
Max output15K tokens
Input modalitiestext
Output modalitiestext
Knowledge cutoff2024-06-30
Open weightsYes - microsoft/phi-4
ReleasedJanuary 10, 2025

Cheaper alternatives

Models that cost less than Phi 4 while keeping at least half its context window and every input modality it supports.

Frequently asked

How much does Microsoft: Phi 4 cost?

$0.070 per million input tokens and $0.140 per million output tokens.

What is the context window of Microsoft: Phi 4?

16K tokens, with up to 15K tokens of output per request.

Confirm against the source: Microsoft official pricing.