Compositev12
← All models Model directory

AI model

Microsoft: Phi 4

microsoft/phi-4

Microsoft: Phi 4 is a 16,384-token model served on Composite at $0.0700 per million tokens in and $0.140 per million tokens out.

Try in Playground

Community rating

— No community ratings yet.

Sign in to rate this model. Ratings come from accounts that have run requests through Composite.

Specifications

Specifications and pricing as served by Composite
Model IDmicrosoft/phi-4
ProviderDeepInfra
Context window16,384 tokens
Acceptstext
Returnstext
Input price$0.0700 per million tokens
Output price$0.140 per million tokens
Prompt cachingNot offered for this model
ModeratedNo
Cost on a monthly planAbout 0.6 plan credits per typical call (8k in, 1k out)
Routing endpoints2 (base plus 1 routing variant)

Measured on Composite

This model has not carried enough traffic on Composite yet to publish a success rate, a latency figure or a traffic rank. The numbers appear here once it has.

Routing variants

The same model behind 1 alternative endpoint. Call the id directly to pin a route; the base id above picks for you.

RouteModel IDProviderPrice
cheapThink microsoft/phi-4:cheapThink DeepInfra $0.0700 per million tokens input · $0.140 per million tokens output

Pricing

$0.0700 per million tokens input · $0.140 per million tokens output

Credits pay the provider’s price plus 25%; cache hits cost less.

On a monthly plan, a typical call (8k tokens in, 1k out) uses about 0.6 plan credits, at the provider's own price.

Provider

DeepInfra

Roleplay fit

This model is available on Composite alongside dozens of others from other labs, so it is easy to compare against similar options.

Context behavior

At 16,384 tokens, its context window is on the smaller side. It is a better fit for focused scenes or one-off chats than for a long-running campaign with heavy lore.

Cost for regular use

It is priced low enough for high-volume daily roleplay without the per-message cost adding up quickly.

From the provider

[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...

Supplied by DeepInfra, not written by Composite.