Microsoft has launched MAI Code 2 and MAI Code 2 Flash on GitHub Copilot, targeting complex and high-frequency coding tasks with lower claimed costs than competing models.
Microsoft announced MAI Code 2 and MAI Code 2 Flash at Ignite 2026 and made both models available on GitHub Copilot. Code 2 targets complex software development, while Code 2 Flash is aimed at frequent, lightweight programming tasks.
MAI Code 2 can investigate bugs, modify code across multiple files, understand an entire repository and help build user interfaces. Both models support AI-driven tool use and step-by-step development workflows.
Microsoft says Code 2 reached about 98% of GPT-6.1 Sol’s performance across four coding benchmarks while costing about 40% as much. Its reported average cost per task is $0.309, compared with $0.761 for GPT-6.1 Sol and $6.306 for Claude Opus 5.5—about 5% of the latter’s cost.
Code 2 Flash is offered at a 50% promotional price, with an average task cost of $0.052. It recorded a 61.0% average pass rate across DeepSWE 1.1, Terminal-Bench 2.1 and SWE Atlas, versus 55.1% for GPT-6 Luna and 53.9% for Claude Haiku 5.5. Code 2 is available to eligible Copilot Pro, Business and Enterprise subscribers, while Flash also covers Free and Student users.