Phi 4

Microsoft16K context

Open weightsTool callingLMArena 1217 · #325 overall · #310 in coding (Nov 22)
Lowest · DeepInfra
$0.07 / $0.14
per 1M in / out

As of Nov 29, 2026, Phi 4 costs $0.07 per million input tokens and $0.14 per million output tokens from DeepInfra. The cheapest of 4 providers is DeepInfra at $0.07 / $0.14. No price change since Appndo started tracking it on Oct 14, 2026. Recent price changes

Providers (4)

Sorted by your monthly estimate. Prices per million tokens. DeepInfra also lists up to 16K output tokens per request.

  • Input / output
    $0.07 / $0.14
    Context
    16K
    Per month
    $0.98

    deepinfra/microsoft/phi-4

  • Input / output
    $0.07 / $0.14
    Context
    16K
    Per month
    $0.98

    microsoft/phi-4

  • Input / output
    $0.07 / $0.14
    Context
    16K
    Per month
    $0.98

    microsoft/phi-4

  • Input / output
    $0.125 / $0.50
    Context
    16K
    Per month
    $2.25

    azure_ai/Phi-4

Cloud and hosted providers may add regional pricing, minimums or platform fees. Supports: Tool calling.

Similar models

Common questions

How much does the Phi 4 API cost?

As of Nov 29, 2026, Phi 4 costs $0.07 per million input tokens and $0.14 per million output tokens from DeepInfra.

Where is Phi 4 cheapest?

As of Nov 29, 2026, the cheapest of 4 providers is DeepInfra at $0.07 per million input tokens and $0.14 per million output tokens. Appndo lists no official price from Microsoft.

What is the context length of Phi 4?

Phi 4 takes up to 16K tokens of context at DeepInfra.

How does Phi 4 compare with similar models?

On LMArena Phi 4 scores 1217, #325 overall. Models with close scores and their cheapest price per million input / output tokens: GPT-4 ($30.00 / $60.00), Command R 08 2024 ($0.15 / $0.15), and Qwen2.5 Coder 32B Instruct ($0.05 / $0.10).