getcheapaicredits

Microsoft · live price

Phi 4 API pricing

Microsoft Research Phi-4 is designed to perform well in complex reasoning tasks and can operate efficiently in situations with limited memory or where quick responses are needed. At 14 billion...

Small and cheap (under $1 per 1M)
Input
$0.07
per 1M tokens
Output
$0.14
per 1M tokens
Cached input
–
per 1M tokens
Context
16K
15K max output

List price from OpenRouter, which passes Microsoft's price through without markup. Refreshed hourly. Released January 10, 2025. Model id microsoft/phi-4.

What Phi 4 costs in practice

At list price, before any batch or caching discount.

1,000 chat messages

$0.14

1,000 input + 500 output tokens each

1,000 RAG questions

$0.63

8,000 input + 500 output tokens each

100 coding-agent steps

$0.24

30,000 input + 2,000 output tokens each, no caching

Phi 4 price history

No price change since we started tracking on 2026-10-01. We record prices daily; changes will show here.

Phi 4 price by host

One host serves this model through OpenRouter.

Where to buy Microsoft credits for less

Phi 4 costs the same per token everywhere it's sold through OpenRouter. What changes is the price of the credits. Live quotes for $100 of usage:
#Where you buyYou pay
1
OrbioCardCheapest right now
$85.10
incl. $2.60 card processing
2
smaaartCard
$95.00
+ card processing and tax at checkout (not in this number)
3
Direct from the labCard
$100.00
no top-up fee
4
OpenRouterCrypto
$105.00
fees included
5
OpenRouterCard
$105.50
fees included

Disclosure: this site is run by the team behind smaaart, one of the options compared. Tables are ranked by price only, from live quotes and published fees, including when smaaart isn't first. How we compare

Phi 4 cost calculator

Enter your monthly tokens to price your own usage.
Usage at list price$4.90/ month(quotes below are for $5.00: purchases run from $5.00 to $10,000.00)

Cheaper alternatives to Phi 4

Other labs' models in the same price range or the one below, cheaper per token.
ModelInput / 1MOutput / 1M
Qwen: Qwen3.7 Flash$0.03$0.13
DeepSeek: DeepSeek V4 Flash 0423$0.042$0.084
OpenAI: gpt-oss-120b$0.037$0.17
OpenAI: gpt-oss-20b$0.018$0.09
Qwen: Qwen3 30B A3B Instruct 2507$0.048$0.193
Google: Gemma 3 4B$0.05$0.1

Other Microsoft models

ModelInput / 1MOutput / 1M
WizardLM-2 8x22B$0.62$0.62
All Microsoft API prices

Phi 4 pricing FAQ