Microsoft: Phi 4

Microsoft · Micro · Context 16K

microsoft/phi-4

Data as of:

LLM API list prices change frequently (new models and price cuts are common) and vary by tier, region, batch / cache usage and time. These are list prices captured at the time shown; always verify the current price with the provider before relying on it.

Price summary

Input $/1M $0.065

per 1M input tokens

Output $/1M $0.14

per 1M output tokens

Blended $/1M $0.0838

0.75×input + 0.25×output (factual)

Blended $/1M is a published convenience figure: 0.75 × input + 0.25 × output (a stated 3:1 input:output mix). It is descriptive arithmetic, not a value verdict.

Specifications

Model
Microsoft: Phi 4
Provider
Microsoft
Input $/1M
$0.065
Output $/1M
$0.14
In+Out $/1M
$0.205
Context
16K tokens
Max output
16K tokens
Cache read $/1M
Modalities
text → text
Cross-checked
Yes

Capability

Capability score
40.7
MMLU-PRO
48.6
GPQA
11.5

Capability values are the published per-model score from Open LLM Leaderboard (Hugging Face), shown as-is with no edit and no “best” verdict. The leaderboard evaluates open-weight models only and lags the newest releases, so many models (including closed/proprietary APIs) have no value and show “—”. Different benchmarks rank models differently; treat this as one signal among many. As of 2026-05-25. Open LLM Leaderboard (Hugging Face) (Apache-2.0).

Try it / official references

External links open the provider's own pages; list prices and availability there are authoritative.

Estimated cost per use case

Use caseinput tokensoutput tokensCost (per 1,000 requests)
Chat / assistant 1,000 500 $0.14
RAG / Q&A 8,000 800 $0.63
Coding agent 6,000 2,000 $0.67
Summarization 12,000 600 $0.86

Each row is (input_tokens/1M)×input_price + (output_tokens/1M)×output_price, scaled to 1,000 requests. Assumptions are as shown in the table. Not a recommendation.