Microsoft on November 17, 2026, introduced MAI Code 2 and MAI Code 2 Flash, two coding models trained in-house and now available in GitHub Copilot. The announcement was part of Microsoft Ignite 2026. Microsoft said the models are built for everyday enterprise coding work, and it published performance and cost comparisons that should be read as the company's own claims. GitHub's changelog the same day listed the plans and clients where the models can be selected.
Key Facts
| Item | Detail |
|---|---|
| When | November 17, 2026. The Microsoft AI blog post, the model card, and the GitHub Copilot changelog are all dated that day. |
| What they are for | Microsoft says MAI Code 2 is aimed at taking code to production, deep debugging, multi-file implementation, repository-wide reasoning, and UI work. MAI Code 2 Flash is aimed at high-volume work such as code explanations, targeted edits, routine fixes, and rapid iteration. The company said the models are "explicitly not yet tuned" for harder problems, such as fundamental science research and very long-horizon agentic work. |
| GitHub Copilot availability | GitHub's changelog says MAI Code 2 is available on Copilot Pro, Pro+, Max, Business, and Enterprise, and that MAI Code 2 Flash is also available on Copilot Free and Student. It lists the model picker in Visual Studio Code, Visual Studio, Copilot CLI, the Copilot cloud agent, the Copilot app, github.com, GitHub Mobile, JetBrains, Xcode, and Eclipse. The changelog also says both models are available to eligible GitHub Copilot subscribers on annual plans. |
| Foundry and other channels | Microsoft said MAI Code 2 Flash is in limited-access preview in Microsoft Foundry. The model card lists Foundry only for Flash. The company said it would later release the models on Open Router, Vercel, Hermes, Open Code, and Kilo. Those channels were not described as already live. |
| Copilot token prices | GitHub's official models-and-pricing page lists promotional prices, per 1 million tokens, through May 17, 2027: MAI Code 2 at $0.50 input, $0.025 cached input, and $2.50 output; MAI Code 2 Flash at $0.05 input, $0.005 cached input, and $0.25 output. Starting May 17, 2027, those rates become $1.00, $0.05, and $5.00 for MAI Code 2, and $0.10, $0.01, and $0.50 for Flash. |
| Context and modalities | The model card summary lists a context length of 1,050,000 tokens, a 922,000-token input limit, and a 128,000-token output limit. Both models accept text and image inputs and output text. The overview section describes a 1 million-token context window after long-context extension. At release, the model card says the models are optimized for English code production only. |
| Architecture | Both models are described as decoder-only transformers with sparse Mixture-of-Experts layers and an integrated vision encoder. Microsoft said they were pre-trained and post-trained from scratch. |
| Parameter figures in the model card | The summary table lists MAI Code 2 as 50B-100B (80B active) and MAI Code 2 Flash as 5B-15B (12B active). In the overview section, the same card says MAI Code 2 "has 77 billion active, 3 billion embedded, and approximately 2.8 trillion total parameters," and that Flash "has 12 billion active and approximately 398 billion total parameters." Those two passages do not match, and this article does not choose one number over the other. |
Microsoft's blog says that, averaged over four benchmarks it associates with everyday GitHub Copilot work (DeepSWE 1.1, Terminal Bench 2.1, SWE-Atlas, and FrontierCode v1.1), MAI Code 2 delivers 98% of the performance of GPT-6.1 Sol at 40% of the cost, and 96% of Claude Opus 5.5's performance at 5% of the cost. It says MAI Code 2 Flash offers comparable performance to GPT-6 Luna and Claude Haiku 5.5 at 65% and 20% of the cost, across three of those coding benchmarks. Footnotes say all compared models were run at max reasoning effort, that three of the tests were run on Microsoft's MSBench platform with the GitHub Copilot CLI and without subagents, that FrontierCode 1.1 scores and costs come from Artificial Analysis, and that MAI costs in those comparisons are shown at the 50% promotional price.
The model card's own coding table, which it says shows pass rates at max reasoning, does not include FrontierCode or competitor scores. It lists MAI Code 2 Flash and MAI Code 2 at 59.9% and 73.2% on DeepSWE 1.1, 78.3% and 84.6% on TerminalBench 2.1, and 44.8% and 43.1% on SWE Atlas. InfoWorld, reporting Microsoft's comparisons, published a four-benchmark average of 63.2% for MAI Code 2, 64.1% for GPT-6.1 Sol, and 65.3% for Claude Opus 5.5, and a three-benchmark average of 61% for Flash, 55.1% for GPT-6 Luna, and 53.9% for Claude Haiku 5.5. InfoWorld also reported average cost-per-task figures of $0.309 for MAI Code 2, $0.761 for GPT-6.1 Sol, $6.306 for Claude Opus 5.5, $0.052 for Flash, $0.080 for GPT-6 Luna, and $0.319 for Claude Haiku 5.5, again at the promotional MAI price. IT之家 reported the same Flash average and the same dollar figures.
The blog also says that in blind frontend evaluations, reviewers preferred MAI Code 2 over GPT-6 Sol 64% of the time, based on 258 annotators.
Background
Microsoft presented the two coding models as part of a broader November 17 lineup that also included other MAI models. The coding post says a further-optimized model, MAI Work Flash, was derived from Code 2 Flash for use across Microsoft 365 and Fabric IQ. The model card says reinforcement learning was run in the GitHub Copilot CLI and VS Code agent harnesses used in production, and that users can select reasoning effort of low, medium, high, xhigh, or max.
Reactions and Impact
Microsoft's product page published customer comments. Abhay Dabholkar, AVP for data science at AT&T, is quoted as saying that for standard 5G network analysis, a custom version of Code 2 Flash outperforms GPT-6.1 Sol while being 50 times cheaper, and that for more complex workflows, Code 2 delivered frontier performance at a significantly lower price than alternatives. Suigen Koide of Woven by Toyota is quoted as saying that after fine-tuning on the company's MISRA fix history, MAI Code 2 Flash delivered ready-to-merge fixes for 44% of cases where fixes from frontier models used in production needed human rework, at less than one-tenth of the cost.
In InfoWorld, Pareekh Jain, CEO of EIIRTrend and Pareekh Consulting, said the launch reduces Microsoft's dependence on OpenAI and Anthropic and helps it avoid paying those firms every time someone uses GitHub Copilot. Sanchit Vir Gogia, chief analyst at Greyhound Research, noted that Microsoft's cost comparisons use the 50% promotional price, so the gap narrows once the promotion ends, and that the compared cost is the spend of a benchmark run, not a published price per token.
What We Don't Know Yet
The model card's summary table and its overview paragraph give different parameter figures for MAI Code 2, including 80 billion active parameters in one place and 77 billion active in another. The overview also describes Flash mid-training as "approximately 26.5T trillion tokens," a unit wording that is internally unclear. This article leaves those passages as written in the card.
Microsoft has not published a generally available Foundry list price or open signup details for MAI Code 2 Flash, and the model card does not list MAI Code 2 itself on Foundry. The other distribution channels named as coming soon were not confirmed as live. The official blog's four-benchmark average includes FrontierCode v1.1, which is missing from the model card table. Microsoft also did not publish, in the text of the blog post, the raw dollar cost-per-task figures later reported by InfoWorld and IT之家.
Sources
- Microsoft AI, "MAI Code 2 and Code 2 Flash: Everyday coding at scalable prices," November 17, 2026
- Microsoft AI, "Seven new world-class models at scalable price-performance," November 17, 2026
- Microsoft, "MAI Code 2 and MAI Code 2 Flash" model card, last updated November 17, 2026
- Microsoft AI, MAI Code 2 product page
- GitHub Changelog, "MAI Code 2 and MAI Code 2 Flash in GitHub Copilot," November 17, 2026
- GitHub Docs, "Models and pricing for GitHub Copilot"
- Nidhi Singal, InfoWorld, "Microsoft launches MAI Code 2 models to challenge OpenAI and Anthropic in AI coding," November 18, 2026
- IT之家,《微软性价比最高编程 AI 模型:MAI Code 2 用 5% 成本达 Claude Opus 5.5 约 96% 性能》,2026 年 11 月 18 日
Cover image: official product imagery; editorial composition by AI Rank.