Microsoft has launched MAI Code 2 and MAI Code 2 Flash, two coding models showcased at Ignite 2026. The company says they can compete with offerings from OpenAI and Anthropic. However, its cost comparisons are based on promotional prices.
Other software development costs
Integration, testing, security checks, human verification and fixing errors produced by AI are also part of the expenses, recalls Jain. His example is conditional: if the models represent 10% of the development budget, reducing their cost by 60% would only provide 6% savings overall. It therefore invites us to consider the cost of delivering functional software rather than just the price of generating the code.
Sanchit Vir Gogia, chief analyst at Greyhound Research, advocates testing with the company’s tools and code on production work. He recommends comparing the cost of each merged change, change failures, and security outcomes to teams without AI coding models. He also specifies that the amounts compared by Microsoft correspond to the execution of an evaluation, and not to a price grid per token, and estimates that the pricing advantage is significantly reduced after the promotion.
Gogia recalls that Google’s DORA research associated increased use of AI with less stability of deliveries, with possible hidden expenses. Microsoft also rates the offensive cybersecurity capabilities of its two models at a high level. For Gogia, IT managers must therefore measure not only the quality of the code, but its security and reliability after integration into production.
GitHub shows temporarily reduced prices
Microsoft estimates the average task at $0.309 with MAI Code 2, compared to $0.761 with GPT-6.1 Sol and $6.306 with Claude Opus 5.5. For the Flash variant, the company announces $0.052, compared to $0.080 for GPT-6 Luna and $0.319 for Claude Haiku 5.5. The amounts retained for its own models include a 50% promotional discount.
The evening letterFree · 7 p.m.
Do you code with AI?
Deciphered AI dev tools, agents and new features, every evening in 5 minutes. Free.
Included upon registration: our selection of the best AI guides & comparisons.
Choose your pace
Free · No spam · Unsubscribe in 1 click
GitHub displays, until May 17, 2027, the following prices for MAI Code 2: $0.50 per million tokens received as input, $0.025 for cached inputs, and $2.50 for tokens produced as output. These prices should then increase to $1.00, $0.05 and $5.00 respectively.
For MAI Code 2 Flash, the promotional rates per million tokens are $0.05 input, $0.005 for cached input, and $0.25 output. The amounts announced after the promotion are $0.10, $0.01 and $0.50 respectively.
Two templates for common coding tasks
According to Microsoft, the MAI Code 2 release is intended for extensive debugging, split changes across multiple files, reasoning across an entire repository, and creating user interfaces. The Flash version is more aimed at high volumes: explanation of the code, targeted modifications, usual corrections and rapid iteration cycles.
The company says it has prioritized the tasks its customers complete every day. She recognizes that these models are not yet optimized for fundamental scientific research or for long-term agentic activities. Their development is part of Microsoft’s efforts to have proprietary capabilities and depend less on external suppliers.
Variable results depending on the coding tests
For MAI Code 2, Microsoft uses DeepSWE 1.1, Terminal-Bench 2.1, SWE-Atlas and FrontierCode v1.1, benchmarks used in GitHub Copilot. The company announces an average success of 63.2%, behind GPT-6.1 Sol at 64.1% and Claude Opus 5.5 at 65.3%.
On DeepSWE 1.1, the scores communicated by Microsoft are 73.2% for its model, 74.6% for that of OpenAI and 69% for that of Anthropic. On Terminal-Bench 2.1, they reach 84.6%, 85% and 78.7% respectively. SWE-Atlas gives, in the same order, 43.1%, 47.4% and 57.5%. On FrontierCode v1.1, Microsoft reports 52%, 49.4% and 56%.
The comparison of Flash with GPT-6 Luna and Claude Haiku 5.5 concerns DeepSWE 1.1, Terminal-Bench 2.1 and SWE-Atlas, at the maximum level of reasoning. Microsoft this time announces an average of 61% for Flash, ahead of 55.1% for GPT-6 Luna and 53.9% for Claude Haiku 5.5.
In Microsoft’s detailed results, DeepSWE 1.1 gives 59.9% to Flash, 59.6% to GPT-6 Luna and 46% to Claude Haiku 5.5. Terminal-Bench 2.1 assigns 78.3%, 69.3%, and 73.4% to these models, respectively. For SWE-Atlas, the announced scores are, in the same order, 44.8%, 36.4% and 42.1%.

