Models

What Is MAI Code 2? Microsoft’s New Coding Model and MAI Code 2 Flash, Explained

MAI Code 2 is Microsoft’s new coding model, out November 17, 2026 with MAI Code 2 Flash. Copilot plans, benchmarks vs Opus 5.5 and GPT-6.1 Sol, and cost.

MAI Code 2 is a new AI coding model made by Microsoft itself, not by OpenAI or Anthropic. Microsoft announced it on November 17, 2026, at its Ignite conference, together with a smaller, cheaper version called MAI Code 2 Flash. Both showed up in the GitHub Copilot model picker the same day.

If you saw "MAI Code 2" at the top of Hacker News or in your Copilot menu and wondered what it is, whether it is any good, and whether you can use it for free, here is the plain-English answer.

TL;DR: MAI Code 2 (also written "MAI-Code-2" or "Microsoft MAI Code 2") is Microsoft AI’s coding model for everyday professional programming, released November 17, 2026. Microsoft says it reaches 98% of GPT-6.1 Sol’s score at 40% of the cost, and 96% of Claude Opus 5.5’s score at 5% of the cost, on its own four-benchmark average. MAI Code 2 is in paid GitHub Copilot plans. The lighter MAI Code 2 Flash is also on Copilot Free and Student. These are Microsoft’s own numbers, and the cost figures use a 50% launch discount.

What is MAI Code 2?

"MAI" stands for Microsoft AI, the in-house AI group at Microsoft. For years, most of the AI inside Microsoft products came from OpenAI. MAI models are Microsoft’s own, and MAI Code 2 is the group’s new coding model.

Microsoft built it for the kind of work developers do every day at a company: fixing tricky bugs, making changes across many files at once, refactoring old code, reasoning about a whole repository, and building user interfaces such as dashboards and charts. GitHub says it is designed for agentic coding, which means the model does not just suggest a line. It plans a change, edits files, runs commands and checks its own work, like a junior developer working through a ticket.

It follows MAI-Code-1-Flash, a small coding model Microsoft launched at its Build conference in June 2026. The jump to "2" and the addition of a full-size model show Microsoft now wants to compete at the top of coding, not only at the cheap end.

MAI Code 2 vs MAI Code 2 Flash

There are two models, and they have different jobs.

MAI Code 2MAI Code 2 Flash
Built forHard, multi-step work: debugging, multi-file changes, refactoring, repo-wide reasoning, UIFast, high-volume work: explaining code, small edits, routine fixes, quick iterations
Microsoft compares it toGPT-6.1 Sol and Claude Opus 5.5GPT-6 Luna and Claude Haiku 5.5
Average pass rate (Microsoft’s tests)63.2% on 4 benchmarks61.0% on 3 benchmarks
Average cost per task (launch price)$0.309$0.052
GitHub Copilot plansPro, Pro+, Max, Business, EnterpriseFree, Student, Pro, Pro+, Max, Business, Enterprise
Microsoft FoundryNot announcedLimited-access preview

Rule of thumb: use Flash for quick questions and small fixes, and switch to MAI Code 2 when a task touches many files or needs real debugging.

MAI Code 2 benchmarks: how good is it?

Microsoft tested MAI Code 2 on four coding benchmarks: DeepSWE 1.1, Terminal-Bench 2.1, SWE-Atlas and FrontierCode v1.1. It then averaged the scores and compared both quality and cost per task.

ModelAverage pass rateAverage cost per task
Claude Opus 5.565.3%$6.306
GPT-6.1 Sol64.1%$0.761
MAI Code 263.2%$0.309

So MAI Code 2 is not the best scorer. It lands a couple of points behind both rivals. The pitch is price: almost the same result for a much smaller bill. That is where the headline "96% of Opus for 5% of the cost" comes from.

Three things to keep in mind before you trust that line:

  • The cost uses a 50% launch discount. Microsoft says its cost numbers reflect a promotional price that is half the normal one. At full price, MAI Code 2’s cost per task roughly doubles, though it would still be far cheaper than Opus 5.5 on these tests.
  • Microsoft ran the tests. Three of the four benchmarks ran on Microsoft’s internal test setup inside the GitHub Copilot CLI. FrontierCode results come from Artificial Analysis. Independent rankings were not out yet when this page was written.
  • It is not built for marathon tasks. Microsoft says the models are not yet tuned for very long agentic runs or for hard science research.

For Flash, Microsoft reports a 61.0% average across three benchmarks, ahead of GPT-6 Luna (55.1%) and Claude Haiku 5.5 (53.9%), at about 65% of Luna’s cost and 20% of Haiku’s.

Agentic AI, skip the model shopping. Agentic AI gives you a team of expert agents on your iPhone that research, plan and write for you, no model picker needed. Get the app free

Is MAI Code 2 free?

Partly. MAI Code 2 Flash appears in the model picker on GitHub Copilot Free and Copilot Student, so you can try it without paying, within those plans’ limits. The full MAI Code 2 needs a paid plan: Copilot Pro, Pro+, Max, Business or Enterprise. GitHub bills both models under its usage-based billing.

For developers outside GitHub, Microsoft says both models are coming "soon" to OpenRouter, Vercel, Hermes, OpenCode and Kilo. No public per-token API price was published at launch.

How to use MAI Code 2 in GitHub Copilot

  1. Open Copilot Chat or agent mode in VS Code, Visual Studio, JetBrains, Xcode, Eclipse, the Copilot CLI, github.com or the GitHub Mobile app on iPhone or Android.
  2. Open the model picker.
  3. Choose MAI Code 2 or MAI Code 2 Flash.

On Copilot Business and Enterprise, new models are switched on by default unless an admin has turned off the default or blocked this model. If you do not see it at work, ask your admin to check the model policy in Copilot settings.

Why Microsoft built its own coding model

Coding is where AI companies earn the most money right now, and Microsoft owns the biggest coding assistant, GitHub Copilot. Every time a Copilot user picks Claude or GPT, Microsoft pays another company. A strong in-house model that costs a fraction as much changes that math.

MAI Code 2 is one of several MAI models Microsoft showed at Ignite. Another, MAI Work Flash, is a version of Code 2 Flash tuned for Microsoft 365 tasks in Excel, PowerPoint, Word and Teams. It is a sign that Microsoft wants its own models running inside the apps people use all day. You can see the same idea in Copilot Fusion, GitHub’s router that picks models for you, and in Claude inside Microsoft 365 Copilot.

The same keynote introduced a shared team space for people and agents in the Copilot app: What is Copilot Workspaces?

What this means for you

If you write code, MAI Code 2 is worth a try on your next bug fix, especially if you hit Copilot limits with pricier models. Run the same task on it and on your usual model, and compare. Benchmarks from the maker are a starting point, not a verdict.

If you do not write code, the bigger story is this: there are now so many models, from so many companies, that choosing one has become its own job. Most people do not want to track which model is 2% better this week. They want the task done. That is the idea behind an agentic AI app: you describe the goal, and a team of agents handles the steps.

Agentic AI, hand your next task to an AI team on your iPhone and get a finished result, without comparing model charts first. Get the app free

Quick answers

What is MAI Code 2? Microsoft AI’s in-house coding model for everyday professional programming, released November 17, 2026 at Ignite and available in GitHub Copilot.

What is MAI Code 2 Flash? The smaller, faster, cheaper sibling of MAI Code 2, made for code explanations, small edits and routine fixes. It is also in Copilot Free and Student.

Is MAI Code 2 better than Claude Opus 5.5? Not on raw score. On Microsoft’s four-benchmark average it scores 63.2% to Opus 5.5’s 65.3%, but at about 5% of the cost per task with the launch discount.

What does MAI mean in coding? In this case it means Microsoft AI, the Microsoft group that builds its own models, such as MAI Code 2, MAI-Code-1-Flash and MAI Work Flash.

Is MAI Code 2 made by OpenAI? No. It is built by Microsoft AI, separate from the OpenAI models that Microsoft also offers.

Can I use MAI Code 2 on my iPhone? Yes, through the GitHub Mobile app if you have an eligible Copilot plan. It is listed in the model picker there.

Want more terms like this? See the agentic AI glossary.

Sources: Microsoft AI: Introducing MAI Code 2 and MAI Code 2 Flash · GitHub Changelog: MAI Code 2 and MAI Code 2 Flash in GitHub Copilot · Unite.AI · Neowin: MAI-Code-1-Flash at Build

Stop working alone.

Give any task to a team of AI experts on your iPhone. Start with 3 free tasks, then Agentic AI PRO from $34.99 a year.

Download free on iPhone On your computer?Point your iPhone camera here to install.

3 free tasks · No account · No login