API pricing

Microsoft API pricing

Microsoft API prices run from $0.07 per million input tokens (Phi-4) to $0.62 (WizardLM-2 8x22B). Its highest-ranked model, Phi-4, costs $0.07 input and $0.14 output per million tokens.

Last verified

API prices per million tokens
Cached input
Phi-4 (open weights)$0.07$0.14—$0.0875128K31.2
Phi-4 Mini (open weights)$0.075$0.30—$0.13128K30.9
WizardLM-2 8x22B (open weights)$0.62$0.62—$0.6266K—

Prices on other platforms

The same models are often sold through clouds and resellers at different rates.

ModelRouteInputOutputChecked
Phi-4azure$0.13$0.502026-10-10
openrouter$0.07$0.142026-10-10
Phi-4 Miniazure$0.075$0.302026-10-10
WizardLM-2 8x22Bopenrouter$0.62$0.622026-10-10

Frequently asked questions

How much does the Microsoft API cost?

Microsoft API prices run from $0.07 per million input tokens (Phi-4) to $0.62 (WizardLM-2 8x22B). Its highest-ranked model, Phi-4, costs $0.07 input and $0.14 output per million tokens.