MAI Code 2 Flash
Last verified November 21, 2026 · Microsoft pricing ↗$0.050/1M input · $0.250/1M output · 1.1M context · Microsoft
MAI Code 2 Flash costs $0.050 per 1M input tokens and $0.250 per 1M output tokens from Microsoft, with a 1.1M-token context window. A typical chat reply (1,500 tokens in, 400 out) costs $0.0002, or $1.75 per 10,000 requests. On that workload it is cheaper than 173 of the 182 other buyable models tracked here.
Count Tokens
Estimate Monthly Cost
Monthly Cost Estimator
Pick a preset above or enter custom usage
What MAI Code 2 Flash Costs Per Request
At $0.050 per 1M input and $0.250 per 1M output tokens, before caching or batch discounts.
| Workload | Input / output tokens | Per request | Per 10,000 requests |
|---|---|---|---|
| Chat reply | 1,500 / 400 | $0.0002 | $1.75 |
| RAG answer over retrieved docs | 8,000 / 600 | $0.0006 | $5.50 |
| Coding-agent step | 30,000 / 2,000 | $0.0020 | $20.00 |
MAI Code 2 Flash vs Similarly Priced Models
Nearest buyable models by price, with the RAG answer above (8,000 in / 600 out) priced on each.
| Model | Input /1M | Output /1M | Context | RAG answer |
|---|---|---|---|---|
| MAI Code 2 Flash Microsoft | $0.050 | $0.250 | 1.1M | $0.0006 |
| Ministral 3 8B Mistral | $0.150 | $0.150 | 262K | $0.0013 |
| Muse Spark 1.3 Contributor Meta | $0.100 | $0.200 | 1.0M | $0.0009 |
| Laguna S 2.1 Poolside | $0.100 | $0.200 | 1.0M | $0.0009 |
Alternatives to MAI Code 2 Flash
Pricing Details
Scheduled price change
MAI Code 2 Flash bills at $0.05 input / $0.25 output per 1M tokens through May 16, 2027. From May 17, 2027 the rate becomes $0.1 input / $0.5 output per 1M tokens, a 100% increase. Every figure on this page uses the rate in effect today.
Microsoft’s published pricing ↗Price History
Frequently Asked Questions
Common questions about MAI Code 2 Flash pricing and usage