Loading…
AI models / Microsoft
Microsoft's lightweight coding model in GitHub Copilot, for explanations, targeted edits, and routine fixes. Selectable in the Copilot model picker.
| Provider | Microsoft |
|---|---|
| API model ID | MAI Code 2 Flash |
| API price (standard) | $0.05 in / $0.25 out per 1M tokens |
| Pricing note | Promotional GitHub Copilot price through May 17, 2027, then $0.10 in / $0.50 out. Cached input is $0.005 / 1M during the promotion and $0.01 / 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.005 / 1M through May 17, 2027; $0.01 / 1M after |
| List price from May 17, 2027 | $0.10 in / $0.50 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