Phi 4 pricing and routing

Phi 4 from Microsoft lists at $0.07 per million input tokens and $0.14 per million output tokens, with a 16,384-token context window. Prices from OpenRouter's catalogue on 2026-09-28.

Input, per 1M tokens$0.07
Output, per 1M tokens$0.14
Context window16K
Confidence signalnot exposed

Structured output

Cost

Cost per 1,000 requests

Phi 4 cost per 1,000 requests
Request shapeList cost
Classification or routing (600 tokens in, 10 out)$0.0434
Chat reply (2,000 in, 400 out)$0.196
Retrieval-augmented answer (8,000 in, 500 out)$0.63

Before prompt caching. Try your own numbers in the cost calculator.

Routing

Can a cheaper model answer before it?

Not through OpenRouter: no host there reports how sure Phi 4 is of each word. It can still be the model Gimbix hands unsure requests to.

Hosts

Who serves Phi 4

Hosts serving Phi 4
HostInput / output per 1MEndpointsConfidence signal
DeepInfra$0.07 / $0.141no

A host listed with more than one endpoint sells the model at more than one service tier. A host that lists the confidence signal may still omit it; Gimbix checks each one before relying on it.

Alternatives

Cheaper models that can answer first

Models priced below Phi 4 that expose a confidence signal. Whether they answer your traffic as well is what a Gimbix pilot measures.

Cost per 1,000 chat replies, to scale
Phi 4$0.196

Questions

Questions about Phi 4

How much does Phi 4 cost?

Phi 4 lists at $0.07 per million input tokens and $0.14 per million output tokens on OpenRouter as of 2026-09-28. A typical chat reply of 2,000 input and 400 output tokens costs about $0.196 per 1,000 requests.

What is the context window of Phi 4?

16,384 tokens.

Can a cheaper model replace Phi 4?

Sometimes. Gimbix checks on your own traffic before routing. First, on one set of your requests, the cheaper route must get at least as many right as the model you use today. Then comes a second set it has never seen. There it may get at most 3 wrong that your model got right, and at most 1 more wrong than it fixes.

See whether a cheaper model can carry your Phi 4 traffic

A pilot answers that on your own requests, with a receipt for every saving.

Request an AI cost review