Microsoft: Phi 4

microsoft/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.

Modalities
In / out per 1M$0.07 / $0.14
Context16K
ReleasedJan 10, 2025

Providers

2 providers serve this model upstream.

Providers serving this model
ProviderInput /MOutput /MCache read /MLatency P50Throughput P50Uptime
DeepInfraus · bf16$0.06$0.11Variable1.41s45 tps100%
DeepInfraus · bf16$0.07$0.14Variable0.37s91 tps100%

Market-wide measurements, refreshed every 15 minutes. They describe who serves Phi 4 in general, not how ProjectCOZY routes your requests.

Pricing

List rates per 1M tokens — what Phi 4 costs pay-as-you-go elsewhere, not what you pay here.

Input
$0.07
per 1M tokens
Output
$0.14
per 1M tokens
Cache read
—
not published
Included in every pass
Phi 4 is included in every ProjectCOZY pass at no extra cost — one flat rate, no per-token metering. The rates above are there for comparison.

Performance

Time to first token and output speed across every provider, over the last 3 days.

0.0s1.0s2.0s3.0s4.0s
Nov 21, 12 AMNov 21, 8 AMNov 21, 4 PMNov 22, 12 AMNov 22, 8 AMNov 22, 4 PMNov 23, 12 AMNov 23, 8 AMNov 23, 4 PMNov 24, 12 AM
DeepInfra (us) DeepInfra (us)
0 tok/s50 tok/s100 tok/s150 tok/s200 tok/s
Nov 21, 12 AMNov 21, 8 AMNov 21, 4 PMNov 22, 12 AMNov 22, 8 AMNov 22, 4 PMNov 23, 12 AMNov 23, 8 AMNov 23, 4 PMNov 24, 12 AM
DeepInfra (us) DeepInfra (us)

Uptime

100% of requests were served successfully over the last 3 days, across all providers.

Last 3 daysAvailability 99.98%
Nov 21, 4:00 AMNow
Availability over the last 24 hoursAvailability 99.98%
100% 98% 97% 95%
Nov 23, 4:20 AMNow

Apps

Tools that most often run Phi 4, by tokens this week.

Activity

3.9B tokens processed market-wide in the last month.

0100.0M200.0M300.0M400.0M
Oct 24Oct 29Nov 3Nov 8Nov 13Nov 18Nov 23
Tokens

FAQ

Which model id do I use for Phi 4?
microsoft/phi-4. Send it as the model field from any OpenAI-compatible client, against https://careerkh.com/v1.
How much context does Phi 4 hold?
16,384 tokens per request, of which up to 14,745 can be the response.
What can it accept and return?
Input: text. Output: text.
What does Phi 4 cost on a pass?
Nothing beyond the pass itself. Pay-as-you-go elsewhere it lists at $0.07 per 1M input tokens and $0.14 per 1M output tokens.
How current is its knowledge?
Training data runs to Jun 2024. Anything later has to come from your prompt or a tool call.
Who built Phi 4?
Microsoft, in the Phi family.

Explore

Other models your pass can call.