Skip to content

Phi 4

OpenRouterOpen weights

Phi 4 by OpenRouter costs $0.07 per 1M input tokens and $0.14 per 1M output tokens, with a 16K-token context window.

Pricing

Input (per 1M tokens)
$0.07
Output (per 1M tokens)
$0.14
Cached input (per 1M)
—

Specifications

Provider
OpenRouter
Context window
16K tokens
Parameters
—
Released
Jan 2025
Open weights
Yes
Frontier model
No

Compare Phi 4 with…

FAQ

How much does Phi 4 cost?

Phi 4 is priced at $0.07 per 1M input tokens and $0.14 per 1M output tokens. Output tokens cost more than input.

What is Phi 4's context window?

Phi 4 supports a context window of 16K tokens — the maximum prompt plus response length it can handle in a single request.

Is Phi 4 open weight?

Yes — Phi 4 has openly available weights.

Data as of 2026-10-30. Source: models.dev (open). Pricing is per 1M tokens (USD); confirm with the provider before production use.