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.

WorkloadCredits (auto on)Credits (auto off)Cost
Short chat turn0.30.4$0.00
Daily coding request0.60.7$0.01
Agent session step2.02.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.

PlanCredits / monthRequests
Copilot Pro1,5002,415
Copilot Pro+7,00011,272
Copilot Max20,00032,206
Copilot Business1,9003,059
Copilot Enterprise3,9006,280
Estimate your monthly burn with MAI Code 2

Cheaper: GPT-5.4 nano - Pricier: Gemini 3.8 Flash

All models - GitHub AI Credits