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.

WorkloadCredits (auto on)Credits (auto off)Cost
Short chat turn0.00.0$0.00
Daily coding request0.10.1$0.00
Agent session step0.20.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.

PlanCredits / monthRequests
Copilot Pro1,50023,640
Copilot Pro+7,000110,323
Copilot Max20,000315,208
Copilot Business1,90029,944
Copilot Enterprise3,90061,465
Estimate your monthly burn with MAI Code 2 Flash

Pricier: GPT-6 Luna

All models - GitHub AI Credits