MAI Code 2 Flash in GitHub Copilot
Microsoft - Lightweight
In GitHub Copilot, MAI Code 2 Flash costs $0.05 per 1M input tokens and $0.25 per 1M output tokens, billed as AI credits at $0.01 each. A typical daily-coding request works out to about 0.1 credits (about $0.00) with auto model selection on. Rates verified against GitHub's rate sheet on 2026-11-20.
Token rates
- Input / 1M
- $0.05
- Cached input / 1M
- $0.01
- Output / 1M
- $0.25
- Cost per credit
- $0.01
Promotional rate, published as running through 2027-05-17. GitHub has not published the rate that follows it.
Credits per request
Defined workload baskets, not measured tasks, with auto model selection on.
| Workload | Credits (auto on) | Credits (auto off) | Cost |
|---|---|---|---|
| Short chat turn | 0.0 | 0.0 | $0.00 |
| Daily coding request | 0.1 | 0.1 | $0.00 |
| Agent session step | 0.2 | 0.2 | $0.00 |
At about 0.1 credits per daily-coding request, MAI Code 2 Flash ranks #1 of 34 current models by cost, about 1x the cheapest (MAI Code 2 Flash).
Requests per plan allowance
Daily-coding requests the included monthly credits buy, before any overage.
| Plan | Credits / month | Requests |
|---|---|---|
| Copilot Pro | 1,500 | 23,640 |
| Copilot Pro+ | 7,000 | 110,323 |
| Copilot Max | 20,000 | 315,208 |
| Copilot Business | 1,900 | 29,944 |
| Copilot Enterprise | 3,900 | 61,465 |