Per MillionLLM API prices, tracked daily

phi-4 API Pricing

phi-4 on DeepInfra costs $0.07 per 1M input tokens and $0.14 per 1M output tokens (as of ).

phi-4 API Pricing. Source: the LiteLLM price list (MIT License)
Input$0.07 / 1M tokens
Output$0.14 / 1M tokens
Cached input (read)—
Cache write—
Batch input / output—
Above 200K tokens (input / output)—
Context window16K tokens
Max output16K tokens
Supportstool calling
Deprecation dateNone listed
API model idmicrosoft/phi-4
In our records since

What it costs for common jobs

Estimated from the list price above (no caching or batch discount).

What it costs for common jobs. Source: the LiteLLM price list (MIT License)
JobEstimated cost
1,000 chat replies (2,000 tokens in, 500 out each)$0.21
Summarising 100 long documents (50,000 in, 1,000 out each)$0.36
1 million classification calls (300 in, 5 out each)$21.70

Try your own numbers in the LLM API cost calculator.

Price history

No price change recorded since .

Similarly priced models

Sort:

Similarly priced models. Source: the LiteLLM price list (MIT License)
ModelProviderInput / 1MOutput / 1MCached input / 1MContext
Nemotron-3-Nano-30B-A3BDeepInfra$0.05$0.20$0.03262K
Ling-3.0-flashDeepInfra$0.06$0.18$0.01131K
gemma-3-12b-itDeepInfra$0.05$0.15—131K
gemma-3-27b-itDeepInfra$0.08$0.16—131K
gpt-oss-120bDeepInfra$0.04$0.17—131K
DeepSeek-V4-Flash-0731DeepInfra$0.08$0.18$0.021.04858M
NVIDIA-Nemotron-Nano-9B-v2DeepInfra$0.04$0.16—131K
Mistral-Small-3.2-24B-Instruct-2506DeepInfra$0.07$0.20—128K