MAI Code 2: Microsoft's new coding model and is it free?
MAI Code 2 Flash is free in GitHub Copilot Free and Student; MAI Code 2 needs Pro or higher. Microsoft claims 96% of Claude Opus 5.5 at 5% of the cost.
Checked and updated 17 November 2026 at 21:30 UTC

Key points
- Microsoft AI launched two in-house coding models, MAI Code 2 and MAI Code 2 Flash, on November 17, 2026, at Ignite.
- MAI Code 2 Flash is in every GitHub Copilot plan including Free and Student; MAI Code 2 needs Copilot Pro, Pro+, Max, Business or Enterprise.
- Microsoft says MAI Code 2 reaches 96% of Claude Opus 5.5's score at about 5% of the cost, averaged over four coding benchmarks.
MAI Code 2 and MAI Code 2 Flash are Microsoft's own AI coding models, launched on November 17, 2026, and they are already in GitHub Copilot. The smaller MAI Code 2 Flash is free on Copilot Free and Student; the full MAI Code 2 needs a paid Copilot plan.
Microsoft built both in-house rather than licensing them from OpenAI or Anthropic, and its pitch is simple: near top-tier coding quality for a fraction of the price.
The two models
| MAI Code 2 | MAI Code 2 Flash | |
|---|---|---|
| Built for | Production code, deep debugging, changes across many files, reasoning over a whole repo, UI work | Fast, high-volume jobs: explaining code, small targeted edits, routine fixes, quick iterations |
| Copilot plans | Pro, Pro+, Max, Business, Enterprise | Free, Student, Pro, Pro+, Max, Business, Enterprise |
| Microsoft's claim | 98% of GPT-6.1 Sol's score at 40% of the cost; 96% of Claude Opus 5.5 at 5% of the cost | Similar to GPT-6 Luna at 65% of its cost and Claude Haiku 5.5 at 20% of its cost |
The comparisons are averages Microsoft ran itself on four coding benchmarks (DeepSWE 1.1, Terminal Bench 2.1, SWE-Atlas and FrontierCode v1.1), with every model at maximum reasoning effort. In a blind test of front-end apps, 258 reviewers preferred MAI Code 2 over GPT-6 Sol 64% of the time. Microsoft also notes that the cost figures use a 50% launch promotional price, and that neither model is tuned yet for very long agent runs or science research.
How to use it in GitHub Copilot
- Make sure you're signed in to GitHub Copilot (the free plan is enough for Flash).
- Open Copilot chat in your editor, or Copilot on github.com.
- Click the model picker and choose MAI Code 2 or MAI Code 2 Flash.
The picker works in VS Code, Visual Studio, JetBrains, Xcode, Eclipse, Copilot CLI, the Copilot cloud agent, the GitHub Copilot app, github.com and GitHub Mobile on iOS and Android. GitHub says the models are for eligible subscribers on annual plans and are billed under usage-based billing.
At work, Business and Enterprise admins control access through the model policy in Copilot settings. New models are switched on automatically unless an admin has turned off the global default.
Where else it's available
MAI Code 2 Flash is in limited-access preview in Microsoft Foundry. Microsoft says OpenRouter, Vercel, Hermes, OpenCode and Kilo are "coming soon", with no date. Microsoft has not published a per-token price.
A tuned version of Flash, called MAI Work Flash, also runs inside Microsoft 365 apps such as Word, Excel, PowerPoint and Teams.
Should you switch?
If you use Copilot's free plan, Flash is worth trying for quick explanations and fixes, since it costs you nothing extra. For bigger jobs, MAI Code 2 is a cheaper option next to OpenAI's new GPT-6.2 Astra and Sol and Anthropic's Claude Fable 5.2. Keep in mind that all of Microsoft's numbers are its own; independent tests will tell how it holds up on real projects. Our guide to what an AI agent is explains why coding tools that act on their own still need a human check.
AI Tools This Week is not affiliated with Microsoft or GitHub.
Frequently asked questions
Is MAI Code 2 free?
MAI Code 2 Flash is, inside GitHub Copilot Free and Student. The full MAI Code 2 needs a paid Copilot plan (Pro, Pro+, Max, Business or Enterprise) and is billed under Copilot's usage-based billing.
How do I use MAI Code 2 in VS Code?
Open the Copilot chat in VS Code, click the model picker and choose MAI Code 2 or MAI Code 2 Flash. The same picker works in Visual Studio, JetBrains, Xcode, Eclipse, Copilot CLI, github.com and GitHub Mobile.
Can I use MAI Code 2 outside GitHub Copilot?
Only in a limited way for now. MAI Code 2 Flash is in limited-access preview in Microsoft Foundry, and Microsoft says both are coming soon to OpenRouter, Vercel, Hermes, OpenCode and Kilo.
Sources
Related
What is Freebuff and is it really free? (November 2026)
Freebuff is an ad-supported AI coding agent with a $0 plan of 30 hours a day. What you get free, what the $8 to $60 plans add, and the data trade-off.
Inworld Voice Isolator: free AI background noise remover
Inworld's Voice Isolator is a free, open-source (Apache 2.0) AI tool that strips noise from voice recordings at 48 kHz, offline or live. How to use it.
Google Assistant and Nest app shutdown: Jan 25 and Aug 2, 2027 dates
Google retires the Nest app on Jan 25, 2027 and removes Google Assistant from speakers and displays on Aug 2, 2027. What to do and what Gemini costs.