MAI Code 2
Microsoft's in-house coding model, out November 17, 2026. Microsoft says it gets 98% of GPT-6.1 Sol's coding quality at about 40% of the price. Try it in GitHub Copilot.
- Made by
- Microsoft
- Released
- Type
- Coding
- Status
- Live
- How to get it
- GitHub Copilot; MAI Code 2 Flash also in GitHub Copilot and a limited preview in Microsoft Foundry
- Good for
- Everyday codingDebuggingDashboards and UI
What it is
MAI Code 2 is a coding model built by Microsoft’s own AI team, launched at Microsoft Ignite on November 17, 2026, as one of seven new MAI models. It is tuned for the coding people do every day: shipping code, debugging, changes across many files and user interfaces. A smaller MAI Code 2 Flash handles quick jobs like explanations and small fixes.
How good is it?
Averaged over four coding tests, Microsoft says MAI Code 2 reaches 98% of GPT-6.1 Sol’s quality at about 40% of the price, and 96% of Claude Opus 5.5 at 5% of the price. In a blind test of front-end work, developers preferred it over GPT-6 Sol 64% of the time. MAI Code 2 Flash performs about like GPT-6 Luna and Claude Haiku 5.5 at a fraction of their price. These are Microsoft’s numbers.
Where can you use it?
In GitHub Copilot today. MAI Code 2 Flash is also in a limited-access preview in Microsoft Foundry. Microsoft has not published a per-token price; it says both models launch at a 50% promotional price.
Who should use it?
GitHub Copilot users who want a capable, low-cost model for routine coding. For the hardest work, a top model like GPT-6.2 Astra or Claude Fable 5.2 is still stronger.
Facts checked on November 19, 2026 against Microsoft AI’s MAI Code 2 and Ignite 2026 announcements.
Use cases this model is good for
How to automate a boring computer task with an AI-written script (no coding experience needed)
You do the same file-renaming or copy-paste job every week and suspect a small script could do it for you.
