Skip to main content

Phi 4: API pricing, providers and specs

Textby MicrosoftMITReleased Dec 11, 2024

Phi 4 is a text model by Microsoft. 7 providers serve it, from $0.14 to $0.50 /1M; the lowest price is at OpenRouter.

Lowest price$0.14/1Mat OpenRouter
Maker's price—The maker does not sell it
Providers7
Context16KMax output 15K

How Phi 4 compares

Against the 737 text models on the site priced the same way.

  • Cheap for its class: at $0.14 /1M, its lowest price undercuts 89% of comparable models (median $1.10).
  • Its 16K-token context window is larger than 4% of them (median 262K), about 20 pages of text.
  • On LMArena's Text board it ranks #102 of the 120 comparable models scored there.
  • 7 providers serve it; 71% of comparable models have fewer.
  • Its weights are open under the MIT license: commercial use allowed.

Phi 4 prices by provider

Every provider's list price, read from its own price page or API. A price marked “from” changes with context length, resolution or mode.

ProviderInputOutputPrompt cachingContext
OpenRouter$0.07/1MFrom$0.14/1M—16K
Deep Infra$0.07/1MFrom$0.14/1M——
Requesty$0.07/1MFrom$0.14/1M$0.07/1M16K
Hugging Face$0.07/1MFrom$0.14/1M——
AIHubMix$0.12/1M$0.48/1M—16K
Azure$0.125/1M$0.50/1M——
Impossibl$0.125/1M$0.50/1M——
Output price by provider, /1M, cheapest first
  1. OpenRouterFrom$0.14
  2. Deep InfraFrom$0.14
  3. RequestyFrom$0.14
  4. Hugging FaceFrom$0.14
  5. AIHubMix$0.48
  6. Azure$0.50
  7. Impossibl$0.50
Prices in US dollars, updated daily from each provider. Prices last checked Oct 25, 2026.

Specs

Type
Text
Inputs
Text
Outputs
Text
Context
16K≈ 20 pages of text
Max output
15K
Capabilities
JSON
Released
Dec 11, 2024
License
MITcommercial use allowed
Open weights
Yes, downloadable
Parameters
15B
Arena score
1217Text
Get the weightsHugging Face379K downloads in 30 days

Alternatives to Phi 4

Same kind of model from other makers, at a similar price.

ModelLowest priceContextArenaProviders
Phi 4this model$0.14/1M16K12177
GLM-5.3-Flash$0.20/1M1.05M160845
GPT-6 Luna$0.40/1M1.05M157828
Claude Haiku 5.5$0.30/1M1M158527
Qwen3.8 Flash Next$0.376/1M262K16285
DeepSeek V4 Flash$0.17/1M1.05M—26
DeepSeek V4 Flash Vision Exp$0.294/1M1.05M—26
DeepSeek V4 Pro$0.418/1M1.05M—33
Ling 3.1 Flash$0.225/1M262K—5

More from Microsoft

All 25 Microsoft models

Phi 4 FAQ







Can't find what you're looking for? Contact us