> ## Content Index
> Fetch the complete content index at: https://globalfeed.ai/llms.txt
> Use this file to discover other available public pages before exploring further.

# Microsoft's new MAI Code 2 and Flash: when is a cheaper coding model enough?
- URL: https://globalfeed.ai/en/microsofts-new-mai-code-2-and-flash-when-is-a-cheaper-coding-model-enough/
- Published: 2026-11-19T13:56:03.000Z
- Updated: 2026-11-19T13:56:03.000Z
- Description: Two coding models from Microsoft AI landed in GitHub Copilot at Ignite. We cover how they were trained, what the numbers measure and when a cheaper model does the job.
- Author: GlobalFeed Editor
- Tags: Microsoft, MAI Code 2, GitHub Copilot, coding model, AI, dil-en, elle

Most work in a software team is small. Understanding what a function does, reading an error, a three-line fix, a missing test. Calling the most expensive model for tasks repeated hundreds of times a day is like taking a taxi to the corner shop. Microsoft has put two models into exactly that gap. [MAI Code 2 and MAI Code 2 Flash](https://microsoft.ai/news/introducing-mai-code-2-and-mai-code-2-flash/?ref=globalfeed.ai), introduced at Ignite on 17 November, target what the company calls everyday enterprise coding and became selectable in GitHub Copilot the same day.

The claim is bold. By Microsoft's own measurement, MAI Code 2 reaches 98% of GPT-6.1 Sol's coding performance at 40% of the cost, and 96% of Claude Opus 5.5's at 5% of the cost. Flash performs comparably to GPT-6 Luna and Claude Haiku 5.5 at 65% and 20% of their cost. Here is what the models are, how they were trained, what the numbers measure and when a cheaper coding model is enough.

## Two models, two jobs

MAI Code 2 is aimed at deep debugging, multi-file changes, repository-wide reasoning and UI code, with the goal of changes maintainers would merge. Flash is built for high-volume work: code explanations, targeted edits, routine fixes and fast iteration. Both accept images such as screenshots, mockups and charts as input. According to the model card, both have a 1,050,000-token context window (922K input, 128K output) and five reasoning levels from low to max; the card notes that higher effort does not always improve results.

## How it was trained

Both models were trained from scratch by Microsoft with the same recipe and architecture family, differing mainly in size. They use a sparse mixture-of-experts design, where only a small part of the network runs for each token. MAI Code 2 has about 2.8 trillion total parameters with 80 billion active (77B compute, 3B embedding) and lists MAI-Base-2 as its base, the model whose [pre-training we covered in October](https://globalfeed.ai/en/microsoft-finishes-pretraining-mai-base-2-its-own-frontier-base-model/). Flash has about 398 billion total and 12 billion active.

MAI Code 2 was pre-trained on about 50 trillion tokens, then about 150 billion tokens extended context to 1 million. Flash was pre-trained from scratch on about 25 trillion tokens (22T text, 3T image) using logit distillation from a larger in-house teacher, followed by about 26.5 trillion tokens of mid-training and context extension. Post-training combined supervised fine-tuning on instruction-following, agentic and safety data with large-scale reinforcement learning run directly inside the GitHub Copilot CLI and VS Code agent harnesses, so gains transfer to real workflows. Environments penalised reward hacking such as copying hidden solutions.

The data card lists code-heavy pre-training data (public repository files, pull requests, commits, notebooks, shell scripts) plus papers, books, STEM and web text crawled between 2010 and March 2026\. Post-training used more than 1.4 million task prompts (about 166 billion tokens) across 16 task families. Some synthetic data came from OpenAI's GPT-5.6 Sol and GPT-6 Astra and some from internal Microsoft models; some task ideas were derived from conversation contexts of Copilot Free, Pro and Pro+ users who had not opted out. The models are optimised for English code and their knowledge runs to August 2026.

## What the numbers measure

The percentages average DeepSWE 1.1, Terminal-Bench 2.1, SWE-Atlas and FrontierCode 1.1, with the first three run on Microsoft's MSBench through the Copilot CLI at max reasoning. In the model card, MAI Code 2 solves 73.2% of DeepSWE 1.1 and 84.6% of Terminal-Bench 2.1 tasks, Flash 59.9% and 78.3%; on SWE-Atlas Flash edges ahead, 44.8% to 43.1%. In a blind front-end comparison with 258 annotators, developers preferred MAI Code 2 over GPT-6 Sol 64% of the time.

Costs were calculated at a 50% promotional price. GitHub's pricing page (as of 19 November 2026) lists MAI Code 2 at $0.50 per million input and $2.50 per million output tokens, Flash at $0.05 and $0.25, against $0.10 and $0.50 for Claude Haiku 5.5 and GPT-6 Luna and $4 and $20 for Claude Opus 5.5\. The promotion ends on 17 May 2027, when prices double. All comparisons are Microsoft's own.

## When is a cheap model enough?

Microsoft says the models are not yet tuned for fundamental science or very long-horizon agent work, and the card notes they can repeat tool calls, drift from instructions or stop before verifying in long sessions. A practical pattern: start routine explanations, single-file fixes, test scaffolds and docs on a light model, move to the larger one when work spans many files, and keep the strongest models for architecture decisions and hours-long agent runs. Microsoft also announced Decision 1.1, a routing model that decides when a request really needs an expensive model.

## The rest of the lineup and where to try it

The family is part of seven models announced at Ignite, alongside MAI Cyber 2 Flash, MAI Image 2.7, MAI Realtime 1, Dragon Copilot Transcribe and Decision 1.1, plus the Maia 200 chip and a MAI Licensed Weights program for running customised MAI models in a company's own Azure environment. MAI Code 2 is available on Copilot Pro, Pro+, Max, Business and Enterprise; Flash also on Copilot Free and Student, across VS Code, Visual Studio, JetBrains, Xcode, Eclipse, the CLI, github.com and GitHub Mobile, with usage-based billing. Flash is in limited preview on Microsoft Foundry, the models are hosted only, and OpenRouter, Vercel, Hermes, OpenCode and Kilo are coming. MAI-Code-1.1-Flash leaves Copilot on 18 December 2026.

Sources: [MAI Code 2 announcement (Microsoft AI)](https://microsoft.ai/news/introducing-mai-code-2-and-mai-code-2-flash/?ref=globalfeed.ai), [Seven models at Ignite 2026 (Microsoft AI)](https://microsoft.ai/news/microsoft-ignite-2026/?ref=globalfeed.ai), [MAI Code 2 model card (PDF)](https://microsoft.ai/pdf/MAI-Code-2-And-MAI-Code-2-Flash-Model-Card.pdf?ref=globalfeed.ai), [MAI Code 2 data card (PDF)](https://microsoft.ai/pdf/MAI-Code-2-Data-Card.pdf?ref=globalfeed.ai), [MAI Code 2 Flash data card (PDF)](https://microsoft.ai/pdf/MAI-Code-2-Flash-Data-Card.pdf?ref=globalfeed.ai), [GitHub Copilot changelog](https://github.blog/changelog/2026-11-17-mai-code-2-and-mai-code-2-flash-in-github-copilot?ref=globalfeed.ai), [GitHub Copilot model pricing](https://docs.github.com/copilot/reference/copilot-billing/models-and-pricing?ref=globalfeed.ai)