Microsoft has unveiled two AI coding models, MAI Code 2 and MAI Code 2 Flash, saying they offer performance comparable to rival models at lower costs. The company announced them at Ignite 2026 and said they are available through GitHub Copilot.

MAI Code 2 is designed for demanding programming work, including debugging complicated code, changing multiple files and understanding entire code repositories. Across four coding benchmarks, Microsoft says it achieved 98% of GPT-6.1 Sol’s performance at 40% of its cost, and 96% of Claude Opus 5.5’s performance at 5% of its price.

Microsoft also says developers preferred frontend designs generated by MAI Code 2 over those produced by GPT-6 Sol in 64% of blind comparisons involving interfaces, visualizations and other graphical projects.

MAI Code 2 Flash is aimed at speed and everyday tasks such as explaining code, fixing minor bugs and making targeted edits. Microsoft says its performance is comparable to GPT-6 Luna and Claude Haiku 5.5 at 65% and 20% of their respective costs.

The comparisons reflect Microsoft’s evaluations of specific coding tasks and use promotional pricing. The company says the models are not yet optimized for particularly complex scientific research or extremely long-running agentic tasks.

Both models are available through GitHub Copilot, with access depending on subscription. MAI Code 2 is available to eligible Copilot Pro, Pro+, Max, Business and Enterprise subscribers. Code 2 Flash is also available to Copilot Free and Student users, subject to applicable usage limits.

Developers can select the models through GitHub Copilot’s model picker in supported environments, including Visual Studio Code, Visual Studio and GitHub’s website. MAI Code 2 is also part of Copilot Fusion Standard, which can automatically select models for different tasks.

At Ignite, Microsoft also introduced homegrown AI models for cybersecurity, image generation and real-time voice interactions.