Model pricing
MAI Code 2 Flash pricing
MAI Code 2 Flash by Microsoft costs $0.05 per 1M input tokens and $0.25 per 1M output tokens (cached input $0.005, batch input not recorded) as of 2026-11-22. A 1,000-input/500-output request costs $0.000175. From 2027-05-17, the recorded standard rate changes to $0.1/$0.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.
Notes
Available in GitHub Copilot. Promotional $0.05/$0.25/$0.005 cached until 17 May 2027; list $0.10/$0.50/$0.01 cached starting 17 May 2027. Context window not recorded on the official pricing page.
Key pricing facts
| Fact | Value |
|---|---|
| Input / 1M tokens | $0.05 |
| Output / 1M tokens | $0.25 |
| Cached input / 1M | $0.005 |
| Batch input / output / 1M | Not recorded |
| Context window | Not recorded |
| Provider | Microsoft |
| Last verified | 2026-11-22 |
| Snapshot updated | 2026-11-22 |
| Standard price from 2027-05-17 | $0.1 input / $0.5 output / $0.01 cached. List price starting 17 May 2027. |
Last updated: · Source: Microsoft pricing · Methodology
Frequently asked questions
What does MAI Code 2 Flash cost per million tokens?
Input costs $0.05 and output costs $0.25 per million tokens as of 2026-11-22T01:13:10.759Z. The 1,000-input/500-output example costs $0.000175, before taxes, hidden reasoning tokens or unselected service-tier surcharges.
Does MAI Code 2 Flash have cached or batch pricing?
Cached input: $0.005 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 Flash?
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.