Microsoft is expanding its AI model lineup with two new coding models designed to make high-performance AI-assisted software development more affordable. The company has introduced MAI Code 2 and MAI Code 2 Flash, targeting everything from complex, multi-file software engineering to everyday coding fixes and rapid development iterations.
Announced on November 17, 2026, during Microsoft Ignite, the two models are built around a straightforward idea: developers should not have to pay frontier-model prices for every coding task. Microsoft says MAI Code 2 delivers performance close to leading competing models at substantially lower costs, while its Flash variant focuses on high-volume coding workloads where speed and affordability matter most.
MAI Code 2 targets complex software development
The flagship MAI Code 2 is designed for demanding software engineering tasks that go beyond generating individual snippets of code. Microsoft says the model performs particularly well in deep debugging, multi-file implementation, repository-wide reasoning, taking code into production, and frontend development.
One of its central goals is producing changes that software maintainers would actually consider merging, rather than simply generating code that looks correct at first glance.
Microsoft evaluated MAI Code 2 against competing models using four coding benchmarks: DeepSWE 1.1, Terminal Bench 2.1, SWE-Atlas, and FrontierCode v1.1. Across these evaluations, Microsoft reports that MAI Code 2 achieves 98% of GPT-6.1 Sol‘s performance at 40% of its cost.
The company also claims that the model delivers 96% of Claude Opus 5.5‘s performance while costing just 5% as much.
These comparisons are based on Microsoft’s specified benchmark configurations, with models evaluated at maximum reasoning effort. The company also notes that its MAI Code 2 cost calculation uses a promotional price, so the figures should not be interpreted as universal pricing across every workload.
Code 2 Flash brings affordable coding to everyday tasks
Not every coding request requires a heavyweight reasoning model. For routine development work, Microsoft’s second offering, MAI Code 2 Flash, is designed to handle high-volume tasks with lower costs.
The model focuses on code explanations, targeted edits, routine bug fixes, and rapid development iterations. These are the kinds of requests that developers frequently make throughout a typical working day.
Microsoft says MAI Code 2 Flash offers comparable performance to GPT-6 Luna at 65% of the cost and Claude Haiku 5.5 at 20% of the cost across three benchmarks measuring everyday coding workloads.
The distinction between the two models is important. MAI Code 2 is intended for more involved engineering work, while Code 2 Flash is optimized for frequent, less complex interactions. Together, they give developers options depending on the difficulty and volume of their coding requirements.
Microsoft puts a strong emphasis on visual coding
Beyond traditional software engineering, Microsoft is also positioning MAI Code 2 as a capable model for building visual experiences.
The company says the model has been tuned to produce dashboards, data visualizations, frontend applications, and other interface-driven projects.
In blind frontend development evaluations, developers preferred MAI Code 2’s results over GPT-6 Sol’s output 64% of the time. The evaluation covered user interfaces, games, data visualizations, 3D scenes, and SVG graphics, with 258 annotators participating.
That result suggests Microsoft is looking beyond code correctness alone. Visual quality and functional output are increasingly important as AI coding tools move from generating backend logic to building complete applications and interactive experiences.
MAI models are also coming to Microsoft 365 and FabricIQ
Microsoft’s broader plans extend beyond making its coding models available to developers. The company is also adapting its technology to power features across its own productivity and data platforms.
Microsoft says it further optimized a model derived from Code 2 Flash, calling it MAI Work Flash, to support multiple products across Microsoft 365 and FabricIQ.
The model is already being used in several product experiences:
- Excel: Delivers accuracy and token efficiency comparable to GPT-6 Luna across Microsoft’s internal customer-scenario benchmarks.
- PowerPoint: Performs on par with GPT-6 Luna in quality and token efficiency across selected production benchmarks.
- Word: Achieves similar performance to GPT-6.1 Sol on five internal benchmarks while using approximately 42% fewer input tokens per production call.
- Teams: Outperforms GPT-6 Luna in tracking decisions, filling knowledge gaps, and following custom instructions, using up to 28% fewer tokens for instruction following and tool calling.
- FabricIQ: Outperforms GPT-5.6 Sol, GPT-6 Astra, and Claude Opus 5.5 in Microsoft’s offline evaluations for DAX query generation, a key capability behind Power BI’s Chat With Your Data experience.
These results are based on Microsoft’s internal evaluations rather than independent, publicly standardized comparisons. Nevertheless, they illustrate how the company intends to use smaller, specialized models to reduce operating costs across its software ecosystem.
Availability: GitHub Copilot gets both models
Developers can already access MAI Code 2 and MAI Code 2 Flash through GitHub Copilot. MAI Code 2 Flash is also available through a limited-access preview in Microsoft Foundry.
Microsoft says it plans to expand availability to additional developer platforms, including OpenRouter, Vercel, Hermes, OpenCode, and Kilo.
The company has not provided a universal standalone pricing breakdown in its announcement. Its published cost comparisons are based on specific benchmark configurations and promotional pricing assumptions.
Microsoft also acknowledges that these models are not yet optimized for particularly difficult workloads, such as fundamental scientific research or very long-horizon agentic tasks. Their focus remains on the everyday coding work that developers and enterprise teams perform regularly.
With MAI Code 2 and Code 2 Flash, Microsoft is making a broader bet on specialized AI models that balance capability with operating costs. Rather than relying on the most expensive model for every request, developers can choose a model suited to the complexity of the task. That approach could become increasingly important as AI-assisted coding moves from occasional experimentation into everyday software development.
Discover more from GadgetBond
Subscribe to get the latest posts sent to your email.
