Model pricing

MAI Code 2 pricing

MAI Code 2 by Microsoft costs $0.5 per 1M input tokens and $2.5 per 1M output tokens (cached input $0.025, batch input not recorded) as of 2026-11-22. A 1,000-input/500-output request costs $0.00175. From 2027-05-17, the recorded standard rate changes to $1/$5. List price starting 17 May 2027. The lowest-cost alternative with at least this context window and the same recorded reasoning category is LFM 2.2 6b at $0.01/$0.02; capability equivalence is not guaranteed.

ProviderMicrosoft
Input $/M$0.5
Output $/M$2.5
Context window0

Notes

Available in GitHub Copilot. Promotional $0.50/$2.50/$0.025 cached until 17 May 2027; list $1/$5/$0.05 cached starting 17 May 2027. Context window not recorded on the official pricing page.

Key pricing facts

FactValue
Input / 1M tokens$0.5
Output / 1M tokens$2.5
Cached input / 1M$0.025
Batch input / output / 1MNot recorded
Context windowNot recorded
ProviderMicrosoft
Last verified2026-11-22
Snapshot updated2026-11-22
Standard price from 2027-05-17$1 input / $5 output / $0.05 cached. List price starting 17 May 2027.

Last updated: · Source: Microsoft pricing · Methodology

Frequently asked questions

What does MAI Code 2 cost per million tokens?

Input costs $0.5 and output costs $2.5 per million tokens as of 2026-11-22T01:13:10.755Z. The 1,000-input/500-output example costs $0.00175, before taxes, hidden reasoning tokens or unselected service-tier surcharges.

Does MAI Code 2 have cached or batch pricing?

Cached input: $0.025 per million tokens under the recorded cache rules. Batch: not recorded in this dataset. Eligibility and cache-write charges depend on the provider; these discounts are not automatically stacked.

What is a cheaper alternative to MAI Code 2?

LFM 2.2 6b costs $0.01 input and $0.02 output per million tokens. This comparison matches context capacity and reasoning category, not benchmark quality. Test your workload before replacing a model.

How often are these prices verified?

Curated catalog counts match the pricing table and public snapshot, not a live database census. Dates change only when recorded pricing or model facts change; a daily synchronization is not independent provider verification. Snapshot updated 2026-11-22. The recorded model verification date is 2026-11-22.