Back to blogTechnology

MAI Code 2: Microsoft's coding model that promises results at 5% of the price

Microsoft says MAI Code 2 delivers 96% of Claude Opus 5.5's coding performance at about 5% of the price. The numbers are its own. Here is what to test before migrating.

Published onNovember 19, 20266 min readFabian Martinelli
Share
MAI Code 2: Microsoft's coding model that promises results at 5% of the price

On November 17, 2026, at Ignite in San Francisco, Microsoft AI unveiled seven in-house models. The one that matters most to anyone paying the tech bill at a mid-sized company is MAI Code 2, aimed at programming. According to Microsoft, it delivers 96% of Claude Opus 5.5's performance at about 5% of the price, and 98% of GPT-6.1 Sol's performance at about 40%.

Those numbers call for a careful read. It is worth understanding what they are, what they leave out, and how to test without betting your budget.

The seven models, one line each

The MAI family includes MAI Cyber 2 Flash, MAI Code 2, MAI Code 2 Flash, MAI Image 2.7, MAI Realtime 1, Dragon Copilot Transcribe, and Decision 1.1. Microsoft also announced MAI Licensed Weights, which lets a company customize models with its own data and run them in the Azure environment.

Each one targets a high-volume task: code, security, images, voice, transcription, and routing requests between models. In tasks like these, repeated thousands of times, the difference in price per use becomes a difference at the end of the month.

What Microsoft claims about MAI Code 2

The comparison comes from the average of four coding tests: DeepSWE 1.1, Terminal Bench 2.1, SWE-Atlas, and FrontierCode v1.1. All were chosen by Microsoft itself, and there is no independent evaluation in the material reviewed.

The absolute numbers, reported by the madrobot.blog site based on Microsoft's post, show the other side. MAI Code 2 scores 63.2%, against 64.1% for GPT-6.1 Sol and 65.3% for Claude Opus 5.5. In other words, it comes in slightly below both. The exact attribution of each score follows the order in the source text and should be checked against the original post.

The average cost per task in these tests, calculated at 50% of the promotional price, was US$ 0.309 for MAI Code 2, US$ 0.761 for GPT-6.1 Sol, and US$ 6.306 for Opus 5.5.

The asterisk on "5%"

The outlet xenospectrum redid the math using the standard price. The 5% figure relies on a limited-time promotional price. Holding usage and Claude's price fixed, and applying the standard price only to MAI Code 2, the cost ratio rises to about 10%. In GitHub Copilot, the standard price takes effect on May 17, 2027.

It is still a big discount. But the 2027 budget should be built on 10%, not 5%. Another detail: the tests were run with the model's reasoning set to maximum.

The smaller sibling: MAI Code 2 Flash

Code 2 Flash is the lighter version. According to Microsoft, it performs comparably to GPT-6 Luna at 65% of the price, and to Claude Haiku 5.5 at 20% of the price, across three benchmarks. It uses 12 billion active parameters, versus 5 billion for its predecessor, MAI-Code-1.1-Flash (a figure from xenospectrum).

In GitHub Copilot's pricing table, Flash costs, at the standard price, US$ 0.10 per million input tokens and US$ 0.50 per million output tokens. Code 2 costs US$ 1.00 and US$ 5.00. A token is the piece of text the model reads or writes, and it is what you are billed by.

Where you can use it today

Since November 17, 2026, both models are available in GitHub Copilot. Code 2 appears in the model picker for the Pro, Pro+, Max, Business, and Enterprise plans. Flash also reaches the Free and Student plans. GitHub's changelog lists VS Code, Visual Studio, the command line, JetBrains, Xcode, and Eclipse.

Code 2 Flash is in limited-access preview on Microsoft Foundry. Code 2 does not appear as available there in the sources. OpenRouter, Vercel, Hermes, OpenCode, and Kilo are listed as coming "soon," with no date.

What about Cyber 2 Flash and Licensed Weights?

Neither is within reach of a mid-sized company today.

According to Microsoft, MAI Cyber 2 Flash beats GPT-6 Astra on CyberGym-E2E at less than 2% of the cost per task (92.3% versus 91.5%, per madrobot). It only runs in Microsoft's own security products and joins MDASH for eligible customers starting in mid-December. It is not an open offering you can contract separately.

For MAI Licensed Weights, Microsoft has not published pricing, eligible models, or a date. The promise is to run a model tuned with your company's data inside Azure, which appeals to anyone with sensitive data. For now, it is one to watch.

How to test without taking risks

A post on X from an unofficial account claims that Microsoft itself admits the model was not built for long, autonomous work or for hard science. This has not been confirmed in a primary source. It works as a warning: the model may be excellent at one task and weak at another.

In practice, the sensible path for a company with a development team is short:

  1. Pick a repetitive task. Code review, automated tests, small bug fixes, internal scripts.
  2. Run the same batch on both models. The one your team uses today on one side, MAI Code 2 or Flash on the other, with the same real tasks from your company.
  3. Measure three things. How many deliverables passed without rework, how much each one cost, and how much time the developer spent fixing them.
  4. Decide task by task. It may turn out that the cheap model handles the volume and the expensive one is kept for the hard cases.

Since Code 2 is already in Copilot's picker, the test requires no new contract or months-long project: anyone who already has the plan can start from the tool itself. The cost of the pilot is basically the time of whoever evaluates the results.

The announced discount is real enough to justify the test. Whether it holds up on your company's tasks, only a pilot with your own code will tell.