Favicon for microsoft

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 parameters, it was trained on a mix of high-quality synthetic datasets, data from curated websites, and academic materials. It has undergone careful improvement to follow instructions accurately and maintain strong safety standards. It works best with English language inputs.

For more information, please see Phi-4 Technical Report

Modalities
In / out price
$0.07 / $0.14per 1M
Context
16K
Released
Jan 10, 2025
Knowledge cutoff
Jun 2024

Providers

Different companies host the same model. OpenRouter routes your request to one of them based on the routing mode you pick: Balanced (price + speed), Nitro (fastest), or Floor (cheapest).

  • Not used in Standard routing:Why these endpoints are not used

Pricing

The average price customers actually pay for this model, next to the prices providers post. Caching and discounts mean the price actually paid is often well below the listed one.

Weighted average

Input
$0.06915/M tokens
Output
$0.1366/M tokens
Price history
No effective price data for this selection
  • Not used in Standard routing:Why these endpoints are not used

Performance

Throughput is how fast the model writes (tokens per second — higher is better). Latency is total round-trip time (lower is better). TTFT is time-to-first-token — how long before you see anything appear (lower is better).

Throughput
97tok/s

P50, best across providers

Latency
0.30s

P50, best provider

Uptime

Uptime is the percentage of the past 3 days that at least one provider was responding to requests. Availability is the percentage of time that inference was successfully served. OpenRouter continuously monitors and uses the next-best provider when one returns an error.

Uptime (3d)The model was reachable. Request routed to a provider.
100.00%
Availability (3d)The model returned inference from any provider. Errors and empty responses count against it.
99.99%

Availability over the last 3 days

Last 72 hours
Availability 99.99%
3 Days Ago2 Days AgoYesterdayNow

Availability over the last 24 hours

OpenRouter Availability
99.99%

When an error occurs in an upstream provider, we can recover by routing to another healthy provider, if your request filters allow it. You can access per-provider uptime data programmatically through the Endpoints API. Learn more about our load balancing and provider routing options.

Benchmarks

Scores on standardized evaluations and this model’s own outputs on shared benchmark prompts. Higher percentages are better — and each rank shows where this model lands among the models evaluated on that source.

Benchmark score summary for Microsoft: Phi 4 (Artificial Analysis)
SourceBenchmarkScore
Artificial AnalysisPhi-4 GPQA Diamond57.5%
Artificial AnalysisPhi-4 HLE3.8%
Artificial AnalysisPhi-4 IFBench23.5%
Artificial AnalysisPhi-4 τ²-Bench Telecom0.0%
Artificial AnalysisPhi-4 AA-LCR0.0%
Artificial AnalysisPhi-4 CritPt0.0%
Artificial AnalysisPhi-4 LiveCodeBench23.1%
Artificial AnalysisPhi-4 Terminal-Bench Hard3.8%
Artificial AnalysisPhi-4 MMLU-Pro71.4%
Artificial AnalysisPhi-4 AIME 202518.0%
Artificial AnalysisPhi-4 AIME14.3%
Artificial AnalysisPhi-4 MATH-50081.0%

Apps

Public apps that send the most traffic to this model. Good signal for what real production workloads look like — and a hint at which use cases this model is best suited for.

2.
46.4Mtokens
3.
45Mtokens
4.
32.5Mtokens
Rest of OpenRouter
79.4M
Top 5 Apps
5.32M

Activity

Token volume and request traffic to this model over time.

API

Drop-in code to call this model. OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. The only thing that changes between models is the model slug below.

Not currently available through EU in-region routing. In-region routing docs

Frequently asked questions

Explore more models