DAGet the newsletter
Business

Microsoft launches MAI Code 2, claims coding models are cheaper than OpenAI and Anthropic

Microsoft has unveiled the coding models MAI Code 2 and MAI Code 2 Flash, which the company says come close to OpenAI and Anthropic at a fraction of the price.

November 18, 2026, 12:45AI-generated from the sources listed, with automated source checks.

Photo: Microsoft Corporation / Wikimedia Commons, CC BY-SA 4.0

What's new

On November 17, 2026, at the Ignite conference in San Francisco, Microsoft unveiled three new AI models from its own AI division. MAI Code 2 is the large model for complex programming tasks. MAI Code 2 Flash is a lighter, faster version for routine tasks. The third, MAI Cyber 2 Flash, is a security model designed to find vulnerabilities in software.

MAI Work Flash, a variant tailored to Microsoft 365 and Fabric IQ, is also mentioned.

The models can be used in GitHub Copilot. Both coding models are available in Copilot Pro, Pro+, Max, Business and Enterprise. The Flash model is also included in the free and student editions, Copilot Free and Student. Usage is billed based on consumption, and this applies only to eligible annual subscribers. MAI Code 2 Flash is in limited-access preview in Microsoft Foundry and is scheduled to come to services such as OpenRouter, Vercel, Hermes, OpenCode and Kilo.

What's smart

MAI Cyber 2 Flash is reserved for verified defenders through Microsoft's Codename MDASH program. This means the security tool is not open to everyone.

Microsoft also plans to offer MAI Licensed Weights soon through so-called Frontier Company partnerships. This will let organizations customize the models and run them in their own Azure environments. Customers retain ownership of their data and customizations.

In a blind test of frontend tasks (the parts of a program the user sees), evaluators preferred MAI Code 2's output over GPT-6 Sol in 67 percent of cases, according to Microsoft.

Cheaper or better?

The big selling point here is price. Microsoft claims that MAI Code 2 delivers about 98 percent of the performance of OpenAI GPT-6.1 Sol at about 40 percent of the price. Compared with Anthropic's Claude Opus 5.5, the figure is about 96 percent of the performance at about 5 percent of the price. According to Microsoft, MAI Code 2 Flash matches GPT-6 Luna at 65 percent of the price and Claude Haiku 5.5 at 20 percent of the price.

In a measurement across four benchmarks (standardized tests), MAI Code 2 passed an average of 63.2 percent of tasks at $0.309 per task. GPT-6.1 Sol passed 64.1 percent at $0.761 per task, while MAI Code 2 Flash passed 61.0 percent at $0.052 per task. According to Microsoft, MAI Cyber 2 Flash matches the quality of GPT-6 Astra at less than 2 percent of the cost per task.

There are several caveats. All figures are Microsoft's own, and no independent validation has been published. The prices also reflect a 50 percent promotional discount of undisclosed duration, so the ratio may change. The sources do not make clear whether the models are available in Denmark or the EU, or what they cost per month for regular users.

What it's good for

MAI Code 2 is intended for complex programming tasks, while the Flash version is for routine tasks where speed and price matter most. A reviewer at Online Tech Tips judges that a model that scores a point or two lower at a fraction of the price is a good deal for routine tasks.

For companies already using GitHub Copilot, it could become a cheap way to get more coding help. The security model, by contrast, is only for select defenders, not for the average user.

Read also

Next storySalesforce data moves into Copilot and TeamsRead on
Back to the front page