Skip to content
DIGINTOAI / MODEL

MAI Code 2.

Microsoft · Company articles ↗

Microsoft AI’s MAI Code 2 and MAI Code 2 Flash are coding models available through GitHub Copilot.

About this model

Check the Copilot plan and model picker for access. A Copilot entitlement and a standalone token-based API have different billing terms.

Plans and other pricing

GitHub Copilot metered rates through May 16, 2027: MAI Code 2 $0.50 / $2.50 and Flash $0.05 / $0.25 per 1M input / output tokens. Included allowances depend on the plan.

MAI Code 2 · GitHub Copilot

Usage based0.5 USD / 1M input tokens
Region
GitHub Copilot
Conditions
Output: $2.5 per 1M output tokens. Promotional US metered rates through May 16, 2027. Starting May 17, input / output: $1 / $5 per 1M. Usage above included allowances is billed in GitHub AI Credits.
Source
docs.github.com ↗
Checked

MAI Code 2 Flash · GitHub Copilot

Usage based0.05 USD / 1M input tokens
Region
GitHub Copilot
Conditions
Output: $0.25 per 1M output tokens. Promotional US metered rates through May 16, 2027. Starting May 17, input / output: $0.10 / $0.50 per 1M. Usage above included allowances is billed in GitHub AI Credits.
Source
docs.github.com ↗
Checked

Links and prices are maintained by our editors. Availability, limits and final charges are determined by the provider.