Phi-4

Compact Microsoft model trained on synthetic data for reasoning, math, and coding in English

microsoft/phi-4
Organization
microsoft
Family
phi
Providers
5
Context
16,384
Output limit
16,384
Knowledge
2024-06
Release
2024-12-12
Updated
—
Weights
Open
Input
text
Output
text
Capabilities
—

Providers

Compare every cataloged offer for this model, including its provider, route, token limits, price, and capabilities.

5 offers · USD per million tokens
ProviderModel IDContextOutputInput / output · 1MReasoningToolsStructuredDetails
Azure
phi-4
16,38416,384— / ————
View
Deep Infra
microsoft/phi-4
16,38416,384— / ————
View
Eden AI
phi-4
16,38416,384— / ————
View
Hugging Face
microsoft/phi-4
16,38416,384— / ————
View
Kilo Gateway
microsoft/phi-4
16,38414,745— / ————
View

Prices and limits apply to each offer. A dash means the value is not provided. OpenRouter offers show the hosting provider and routing channel separately.

Pricing

Compare token rates and cache charges across available routes and hosting configurations.

USD per million tokens
Input from—Per 1M input tokens
Output from—Per 1M output tokens
Available offers5Across 5 providers

Lowest listed input and output prices across the offers above; they may belong to different providers. These are base rates, before conditional pricing, discounts or additional fees.

Frequently asked questions

Answers based on the model metadata and serving offers currently in the catalog.

How much does Phi-4 cost?

Listed rates start at — per million input tokens and — per million output tokens. Prices vary by provider and configuration; see Pricing for details.

Which providers offer Phi-4?

There are 5 cataloged offers across 5 providers. Compare model IDs, prices and limits in Providers.

What is the context window?

The cataloged model context is 16,384 tokens. Each serving endpoint may apply a different limit.

Does it support tools and structured output?

Tool calling: Not reported. Structured output: Not reported. Support can vary by endpoint.

Resources

MIT
Catalog history · 1 recorded revision

Metadata observations since this model was first cataloged. These are not model release versions.

  • · 619168b94cc4