Loading…
AI models / Microsoft
Microsoft's general-purpose coding model in GitHub Copilot, for debugging, multi-file changes, and repository-wide work. Selectable in the Copilot model picker.
| Provider | Microsoft |
|---|---|
| API model ID | MAI Code 2 |
| API price (standard) | $0.50 in / $2.50 out per 1M tokens |
| Pricing note | Promotional GitHub Copilot price through May 17, 2027, then $1.00 in / $5.00 out. Cached input is $0.025 / 1M during the promotion and $0.05 / 1M after. Checked Nov 21, 2026. |
| Context window | Not stated on the page we checked |
| Max output | Not stated on the page we checked |
| Weights | Not stated |
| Cached input | $0.025 / 1M through May 17, 2027; $0.05 / 1M after |
| List price from May 17, 2027 | $1.00 in / $5.00 out |
Sources: Models and pricing for GitHub Copilot, MAI Code 2 in GitHub Copilot, MAI Code 2 and Code 2 Flash (checked 2026-10-26). Prices change often, so confirm on the provider's page before you commit.
Official page