MAI Code 2 in GitHub Copilot
Microsoft - Powerful
In GitHub Copilot, MAI Code 2 costs $0.5 per 1M input tokens and $2.5 per 1M output tokens, billed as AI credits at $0.01 each. A typical daily-coding request works out to about 0.6 credits (about $0.01) with auto model selection on. Rates verified against GitHub's rate sheet on 2026-11-20.
Token rates
- Input / 1M
- $0.50
- Cached input / 1M
- $0.03
- Output / 1M
- $2.50
- 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.3 | 0.4 | $0.00 |
| Daily coding request | 0.6 | 0.7 | $0.01 |
| Agent session step | 2.0 | 2.3 | $0.02 |
At about 0.6 credits per daily-coding request, MAI Code 2 ranks #7 of 34 current models by cost, about 9.8x 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 | 2,415 |
| Copilot Pro+ | 7,000 | 11,272 |
| Copilot Max | 20,000 | 32,206 |
| Copilot Business | 1,900 | 3,059 |
| Copilot Enterprise | 3,900 | 6,280 |