Coding

Microsoft MAI Code 2: a cheaper everyday coding model, with fine print

Microsoft's new MAI Code 2 and Code 2 Flash promise near-frontier coding at a fraction of the cost. Here is what the numbers mean, where you can use them and what they are not built for.

Oliver · FoxAI World5 min read
18
Oliver the owl stands beside a laptop and tablet, surrounded by a Microsoft logo and technology icons.Microsoft's coding bet

Conceptual cover created with AI.

If your team already pays for GitHub Copilot, a new name has probably appeared in the model picker: MAI Code 2. Microsoft announced it at its Ignite conference on 17 November 2026, together with a lighter sibling, MAI Code 2 Flash. The pitch is not “the smartest coding model ever”. It is “almost as good, for much less money”. That is a useful claim, but only if you read the conditions attached to it.

What MAI Code 2 and Code 2 Flash are for

Both are Microsoft’s own models, built by its in-house MAI team rather than licensed from a partner. Microsoft describes them as models for everyday enterprise coding, and it splits the work clearly.

MAI Code 2 is the larger one. Microsoft lists deep debugging, changes that span several files, reasoning across a whole repository and user-interface work as its targets. MAI Code 2 Flash is meant for the high-volume, lower-stakes part of the day: explaining code, targeted edits, routine fixes and quick iterations.

Both are designed for agentic coding. In plain terms, an agent does not only suggest a line; it reads files, runs tools and makes a series of changes towards a goal. The split matters because most coding sessions are a mix of a few hard problems and many small ones, and the small ones do not need the most expensive model.

Oliver the owl gestures beside a laptop, with books, Microsoft logos and illustrated technology icons around him.
AI-generated conceptual illustration.

How strong and how cheap Microsoft says they are

Microsoft averages results over four coding benchmarks: DeepSWE 1.1, Terminal Bench 2.1, SWE-Atlas and FrontierCode v1.1. On that average, it says MAI Code 2 reaches 98 percent of the performance of OpenAI’s GPT-6.1 Sol at 40 percent of the cost, and 96 percent of the performance of Anthropic’s Claude Opus 5.5 at 5 percent of the cost.

For Flash, the claim is “comparable performance” to GPT-6 Luna at 65 percent of the cost and to Claude Haiku 5.5 at 20 percent of the cost, measured on three of those benchmarks.

Then come the footnotes. All models ran at maximum reasoning effort, inside GitHub Copilot CLI and without subagents. And the cost of MAI Code 2 is shown at its 50 percent promotional price; the same applies to Flash. Small detail. Big difference. A ratio of 5 percent at a half price would be roughly 10 percent at full price, assuming the comparison costs stay the same. Microsoft’s page does not say when the promotion ends.

There is also a design claim. In blind evaluations of front-end apps, where 258 developers compared results without knowing which model produced them, MAI Code 2 was preferred over GPT-6 Sol 64 percent of the time. Note the comparison: GPT-6 Sol, not the newer 6.1. The judges looked at both appearance and functionality.

All of these figures come from Microsoft, on benchmarks Microsoft selected. That does not make them wrong. It does make them a starting hypothesis rather than a verdict.

Where you can use it today

The main route is GitHub Copilot. According to GitHub’s changelog, MAI Code 2 is available on the Pro, Pro+, Max, Business and Enterprise plans. Flash goes further down: it is also offered on Copilot Free and Student.

You choose the models in the model picker in Visual Studio Code, Visual Studio, JetBrains IDEs, Xcode, Eclipse, Copilot CLI, the Copilot cloud agent, github.com and GitHub Mobile. Both are billed under Copilot’s usage-based billing.

For companies, one setting deserves attention. On Business and Enterprise, new models are enabled automatically unless an administrator has turned off that default or disabled the specific model. Access is managed through the model policy in Copilot settings. If your organisation reviews every model before use, check that policy now.

Outside Copilot, the picture is thinner. Flash is in a limited-access preview in Microsoft Foundry, Microsoft’s platform for building on its models. OpenRouter and Vercel are listed only as “soon”.

What the models are not built for

Microsoft is unusually direct here. It says both models are not yet tuned for harder problems such as fundamental science research and very long-horizon agentic work, meaning tasks where an agent must work alone for a long time across many steps.

That tells you where to put them. A long refactoring that an agent runs unattended for hours is exactly the kind of job Microsoft itself does not recommend. A bug fix in a known module, a new UI component or an explanation of unfamiliar code is the intended territory.

My reading: the practical value of MAI Code 2 is not that it beats anyone. It is that it makes a two-tier setup cheap to try. Start by writing down the change you actually need. Then send the routine work to Flash or Code 2, keep your current top model for the long, risky jobs, and compare the results on your own repository with your own tests. A benchmark average tells you little about whether the code does what your project expects. Your test suite does.

What else Microsoft shipped at Ignite

MAI Code 2 was one part of a larger set of in-house models. Microsoft also introduced MAI Image 2.7, which it says ranks first on Artificial Analysis for image editing, and MAI Realtime 1, a real-time voice model that starts at 0.01 dollars per audio minute. A security-focused model, MAI Cyber 2 Flash, rounded out the coding-adjacent releases.

The common theme is the same as with MAI Code 2: close to the leading models, at a fraction of the price. For buyers, that turns model choice into an ordinary procurement question. What quality do you need for this task, and what are you willing to pay for the last few percent?

Ask AI about this article

Opens in a new tab with the question filled in.

Sources and research

Written by FoxAI World. The cover and illustrations are AI-generated conceptual artwork.

Your favourites

This list stays in this browser on your device. No account is needed, and other visitors cannot see it.

Use a story’s bookmark button to add your first favourite.