MAI Code 2 Explained: Microsoft’s Cheaper Coding Model in GitHub Copilot








The Quick Answer

MAI Code 2 is Microsoft’s own coding model, launched on 17 November 2026 at Microsoft Ignite and available now inside GitHub Copilot. It is the first time Microsoft has put a model built by its in-house Microsoft AI division directly into the Copilot model picker, next to the OpenAI and Anthropic models it is priced to undercut. Microsoft claims Code 2 delivers 98% of GPT-6.1 Sol’s coding performance at 40% of the cost per task, and 96% of Claude Opus 5.5’s performance at just 5% of the cost.

A smaller sibling, MAI Code 2 Flash, handles everyday edits for as little as $0.05 per million input tokens. This article explains what Code 2 is, what it actually costs, which Copilot plan you need, how the benchmark claims hold up, and what the sibling security model MAI Cyber 2 Flash does for defenders.

In this guide:

What Is MAI Code 2?

MAI Code 2 is a general-purpose coding model built by Microsoft AI, the company’s in-house AI division led by Mustafa Suleyman. It arrived on 17 November 2026, the opening day of Microsoft Ignite 2026 in San Francisco, and GitHub added it to the Copilot model picker the same day. That timing matters: this is not a research preview or a roadmap slide. From day one, paying Copilot subscribers could select Code 2 in their editor and start using it on real work.

GitHub describes Code 2 as a model built to get developers “from request to result” with focused responses, practical code changes and less unnecessary back and forth. In plain terms, it is aimed at the jobs developers actually do most: deep debugging, implementing features across several files, refactoring messy code, reasoning across a whole repository, and building user interfaces and dashboards. Both Code 2 and its smaller sibling are designed for agentic coding workflows, so the model can plan a change, make it, run checks and report back, rather than only answering one question at a time.

Under the hood, Code 2 is a mixture-of-experts model with about 77 billion active parameters and roughly 2.8 trillion total parameters, pre-trained on around 50 trillion tokens. It is built on MAI-Base-2, the foundation model Microsoft announced in October 2026. Only a small slice of those parameters is active for any single token, which is how the model keeps its running costs low while still handling hard coding work. It also carries a 1,050,000-token context window, so it can hold a large codebase in view while it works. In practice, it accepts up to 922,000 input tokens and returns up to 128,000 output tokens per turn.

The launch is significant for a second reason: it changes who makes the model inside Copilot. Until now, Copilot’s strongest models came from OpenAI and Anthropic. Code 2 is Microsoft’s own answer, and its pitch is deliberately about price-performance rather than raw capability. Microsoft is not claiming it beats the frontier models outright. It is claiming it gets close enough, at a small enough fraction of the price, that most everyday coding work no longer needs the expensive model. That is a very different kind of launch claim, and it is the one this article tests in detail.

MAI Code 2 — two developers reviewing code together during a pair programming session

One more thing to note before the detail: Microsoft is unusually direct about what Code 2 is not for. The company says both new coding models are built for everyday enterprise coding and are “explicitly not yet tuned for harder problems, like fundamental science research and very long horizon agentic work.” If your work is multi-hour autonomous coding sessions or research-grade reasoning, Microsoft itself points you at the other models in the picker. That honesty is useful, because it tells you exactly where Code 2 belongs: the daily grind of shipping software, not the hardest problems in computer science.

MAI Code 2 vs MAI Code 2 Flash: What’s the Difference?

Microsoft launched two coding models at once, and the difference between them is size, speed and price — not purpose. MAI Code 2 is the full-size model for complex work. MAI Code 2 Flash is the lightweight model for high-volume, everyday work. Both share the same 1,050,000-token context window and both are designed for agentic coding, but they are aimed at different moments in a developer’s day.

Code 2 is the model you reach for when the task is genuinely hard: a bug that spans five files, a refactor that touches a whole module, a feature that needs the model to understand how your repository fits together. GitHub’s own description puts it plainly — deep debugging, multi-file implementation, refactoring and repository-wide reasoning. It is the model for work where a wrong answer costs you an hour of cleanup.

MAI Code 2 Flash is the model for everything else: explaining a function, making a targeted edit, fixing a routine error, or iterating quickly on a small change. It has 12 billion active parameters, a fraction of its bigger sibling, and it is priced to match — $0.05 per million input tokens at the promotional rate, against $0.50 for Code 2. For the high-volume traffic that dominates inline chat and quick agent steps inside an IDE, that price gap matters more than the capability gap.

Microsoft’s own comparison puts MAI Code 2 Flash at a level comparable to GPT-6 Luna and Claude Haiku 5.5 on day-to-day, high-volume coding tasks, at about 65% of Luna’s cost and 20% of Haiku 5.5’s cost. Those are Microsoft’s numbers, averaged over a three-benchmark bundle, and they are calculated at promotional prices — the same caveats that apply to the bigger model’s claims apply here too. But the direction is clear: Flash is meant to be the cheap default for the work you do a hundred times a day, while Code 2 is the model you switch to when the work gets serious.

The two models also differ in where else they appear. MAI Code 2 Flash is in limited-access preview in Microsoft Foundry, Microsoft’s AI platform, while Code 2 itself is available through GitHub Copilot only for now. Microsoft says it will later release the models on OpenRouter, Vercel, Hermes, Open Code and Kilo, but it has given no dates for those. For now, Copilot is the only place most developers will meet either model.

A practical consequence follows from this split: if you are on Copilot Free or Student, you can only reach MAI Code 2 Flash, and only through automatic model selection — you cannot pin it directly. Code 2 itself starts at Copilot Pro. That makes the Flash model the on-ramp for free users, and the full model the upgrade for paying developers. The table below puts the two side by side.

Code 2 MAI Code 2 Flash
Built for Deep debugging, multi-file work, refactoring, repo-wide reasoning Explanations, targeted edits, routine fixes, fast iteration
Active parameters About 77 billion 12 billion
Context window 1,050,000 tokens 1,050,000 tokens
Promo price per 1M tokens (input / output) $0.50 / $2.50 $0.05 / $0.25
Price from 17 May 2027 $1.00 / $5.00 $0.10 / $0.50
Copilot plans Pro, Pro+, Max, Business, Enterprise Free, Student, Pro, Pro+, Max, Business, Enterprise
Outside Copilot Not yet Microsoft Foundry private preview

MAI Code 2 Pricing: What It Costs in GitHub Copilot

Price is the whole point of MAI Code 2, so it deserves a careful look. Both models are billed under GitHub Copilot’s usage-based billing, where one AI credit costs $0.01. The rates below are per one million tokens, and they come from GitHub’s own Copilot models-and-pricing documentation.

Model Input (per 1M) Cached input (per 1M) Output (per 1M) Until
Code 2 $0.50 $0.025 $2.50 17 May 2027 (promo)
Code 2 (standard) $1.00 $0.05 $5.00 From 17 May 2027
MAI Code 2 Flash $0.05 $0.005 $0.25 17 May 2027 (promo)
MAI Code 2 Flash (standard) $0.10 $0.01 $0.50 From 17 May 2027

The catch is in the dates. Microsoft’s footnote says the Code 2 cost figures in its launch comparisons are shown at a 50% promotional price. GitHub’s pricing page gives the end date: the promotional rates run until 17 May 2027, and then they double.

Code 2 goes from $0.50 to $1.00 per million input tokens and from $2.50 to $5.00 per million output tokens. Flash goes from $0.05 to $0.10 input and $0.25 to $0.50 output. Every cost comparison in this article — and every one in Microsoft’s announcement — is built on the promotional prices, so the honest way to judge the models is to run the numbers twice: once at today’s price, and once at the price you will actually pay after May 2027.

Even at the doubled standard prices, Code 2 is cheap next to the frontier models it is compared against. Claude Opus 5.5 costs $20 per million output tokens, so Code 2’s standard $5.00 is a quarter of that. GPT-6.1 Sol, the model in the headline comparison, is far more expensive still. And MAI Code 2 Flash at its standard $0.50 output is half the price of Claude Haiku 5.5 and GPT-6 Luna, which both charge $1.00 per million output tokens in the comparisons Microsoft published. The promotion makes the launch look dramatic; the standard prices still make it a bargain.

To make that concrete, take a medium agent session: 200,000 input tokens read and 50,000 output tokens written, with no caching. At promotional prices, Code 2 costs about $0.23 for that session — $0.10 of input and $0.13 of output. The same session on MAI Code 2 Flash costs about $0.02. Those are the kinds of numbers that change how developers use an agent: when a session costs cents instead of dollars, you stop rationing the model and start using it for the small jobs too. That is exactly the behaviour Microsoft is trying to buy with this pricing.

There is one more pricing detail worth knowing. Code 2 replaces MAI-Code-1.1-Flash, the previous generation, which GitHub will deprecate across all Copilot experiences on 18 December 2026. The new Flash model charges a quarter of its predecessor’s input price ($0.05 against $0.20) and a fifth of its output price ($0.25 against $1.20). If you have saved settings, prompts or integrations that name MAI-Code-1.1-Flash, update them before 18 December — and enterprise administrators may need to enable the replacement model through their Copilot model policies, since access is managed there.

The Benchmark Claims — And Why They Need a Health Warning

Microsoft’s headline numbers for MAI Code 2 are bold, and they are the reason this launch is being talked about. Averaged over four coding benchmarks — DeepSWE 1.1, Terminal Bench 2.1, SWE-Atlas and FrontierCode v1.1 — Microsoft says Code 2 delivers 98% of GPT-6.1 Sol’s coding performance at 40% of the cost per task, and 96% of Claude Opus 5.5’s performance at 5% of the cost per task. For MAI Code 2 Flash, the claim is comparable performance to GPT-6 Luna and Claude Haiku 5.5 at 65% and 20% of their cost.

Those numbers are Microsoft’s own, and they should be read that way. Three of the four benchmark suites were run mostly on Microsoft’s own evaluation platform, MSBench, using the GitHub Copilot CLI without subagents. Only FrontierCode was scored by an outside grader, Artificial Analysis. No independent lab has re-run the full comparison, and the cost figures use the promotional token prices described above. None of that makes the claims false — but it does mean they are a vendor’s scorecard, not a neutral bake-off, and any honest article should say so before repeating them.

There is also an important distinction hiding inside the percentages: cost per task is not the same as price per token. The “5% of the cost” claim for Code 2 against Claude Opus 5.5 is a cost-per-completed-task figure. It reflects both the cheaper token price and the fact that Code 2 uses fewer tokens to finish the same task in Microsoft’s tests. Per output token, the gap is smaller: Code 2’s promotional $2.50 per million output tokens is 12.5% of Opus 5.5’s $20, not 5%. Both numbers are real, but they measure different things, and the task-level figure is the flattering one.

If you budget by tokens, use the token prices. If you budget by finished jobs, the task figure is the one that matters.

What the benchmarks do establish, even with the caveats, is that Code 2 is in the same performance class as models that cost several times more. A model that scores 98% of GPT-6.1 Sol on four serious coding suites is not a toy, and it is not a slightly better autocomplete. It is a capable general-purpose coding model that happens to be cheap. The honest summary is this: the exact percentages are Microsoft’s, the direction is credible, and the price is independently verifiable on GitHub’s pricing page. That combination — strong claimed performance plus a published price anyone can check — is what makes Code 2 worth trying rather than just reading about.

One more benchmark detail is worth a line. Microsoft’s launch post notes that the cost comparisons for MAI Code 2 Flash use a three-benchmark bundle rather than the four used for the full model, so the two models’ percentage claims are not directly comparable to each other. It is a small point, but it is the kind of footnote that gets lost when the numbers travel. If you see the 98% and the Flash comparison quoted side by side as if they came from the same test, they did not.

MAI Code 2 in GitHub Copilot: Plans, Surfaces and Setup

MAI Code 2 is generally available in GitHub Copilot, and it appears in the model picker across the whole Copilot surface: Visual Studio Code, Visual Studio, JetBrains, Xcode, Eclipse, the Copilot CLI, the Copilot cloud agent, the GitHub Copilot app, github.com, and GitHub Mobile on iOS and Android. If you use Copilot in more than one place, the model follows you — it is not a VS Code-only feature.

Which model you can pick depends on your plan. Code 2 is available on Copilot Pro, Pro+, Max, Business and Enterprise. MAI Code 2 Flash is available on all of those plus Copilot Free and Student. Copilot Pro costs $10 a month, which makes Code 2 one of the few powerful-class models available on the cheapest paid plan rather than gated behind Pro+ or Max. That is a deliberate choice: Microsoft wants its own model to be the default for ordinary paying developers, not a premium extra.

There is one eligibility wrinkle. GitHub’s changelog says both models are available to eligible Copilot subscribers on annual plans. The per-plan documentation does not spell out the same restriction, so the safest reading is that annual billing is the intended route and monthly subscribers should check their own picker. If Code 2 does not appear in your model list, that is the first thing to check — along with whether your organisation’s administrator has disabled new models through the Copilot model policy. Under GitHub’s default model enablement, new models are switched on automatically unless an administrator has turned off the global default or disabled the model explicitly.

For administrators, the launch also creates a small piece of housekeeping. Copilot Enterprise and Business plan administrators manage access to the MAI models through the model policy in Copilot settings, and they should confirm the new models are enabled before teams start asking why they cannot see them. They should also plan for the 18 December 2026 deprecation of MAI-Code-1.1-Flash, since any saved configuration naming the old model will need updating to MAI Code 2 Flash.

MAI Code 2 — developers doing a code review together on shared screens

How to Switch to MAI Code 2 in VS Code

Using MAI Code 2 takes about a minute once you know where the picker lives. The steps below are for Visual Studio Code, where most Copilot users will meet it first; the same model picker exists in the other supported editors and on github.com.

  1. Open VS Code and make sure the GitHub Copilot extension is installed and signed in.
  2. Open Copilot Chat from the sidebar, or press Ctrl+Alt+I on Windows and Linux (Cmd+Option+I on Mac).
  3. At the bottom of the chat panel, click the model picker — it shows the name of the currently selected model.
  4. Choose MAI Code 2 for complex work, or MAI Code 2 Flash for quick edits and explanations.
  5. Ask for the change you want. For multi-file work, use agent mode so the model can read the repository, edit several files and run checks itself.

A sensible way to start is to use MAI Code 2 Flash as your everyday default and switch to Code 2 when the task gets hard. Flash is cheap enough that you will not think twice about asking it to explain a function or fix a typo, and the full model is there for the refactor or the bug that has already eaten an afternoon. If your team shares settings, agree on which model is the default for which kind of task — the price difference between the two is large enough that a careless default can quietly multiply your usage bill, even at these low rates.

One practical tip: because both models accept up to 922,000 input tokens, you can point them at a whole feature area rather than pasting one file at a time. But a big context window is not free — every token you send is billed, cached or not. Send the files that matter, not the whole repository, and let the agent ask for more when it needs it. That habit matters more with Code 2 than with a free model, because you are paying per token, however cheap those tokens are.

MAI Cyber 2 Flash: The Security Model in the Same Launch

The same Ignite launch included a third model that most developers will never touch directly — and that is exactly the point. MAI Cyber 2 Flash is a specialist security model built for defenders: finding real vulnerabilities in code, checking whether a suspected flaw is genuine or a false alarm, recommending fixes, and investigating threats. It is the successor to MAI Cyber 1.1 Flash, and Microsoft says it is its most capable security model yet.

The headline claim is striking. On CyberGym-E2E, a benchmark that measures real-world vulnerability discovery, Microsoft reports a 92.3% task-success rate for MAI Cyber 2 Flash, against 91.5% for GPT-6 Astra — using half the reasoning budget and less than 2% of the cost per task. Microsoft calculated that cost at list prices of $0.10 per million input tokens, $0.01 cached and $0.50 output, against $10, $1 and $50 for GPT-6 Astra on Azure OpenAI Global. On a second benchmark, WebExploitBench, it reports 40.4% against 38.4% for GPT-5.6 Cyber at the same reasoning budget.

As with the coding models, these are Microsoft’s own numbers and the fine print matters. The CyberGym-E2E comparison covers 813 of the benchmark’s 905 tasks, because Microsoft excluded the same 92 tasks for every model — tasks built on open-source projects and vulnerability reports that overlapped with its training data. Microsoft also says it did not use the benchmark’s reference solutions for training. The cost figure is an offline cost-per-task calculation at list prices, not a customer bill.

And the model’s own page lists a different-looking figure — 83.2% of CyberGym-E2E tasks solved — which reflects a different measurement of the same benchmark. Treat the 92.3% as the headline comparison and the 83.2% as a reminder that benchmark scores move with the setup.

What is not in dispute is the shape of the model: a one-million-token context window, four times the window of MAI Cyber 1.1 Flash, so it can analyse more of a codebase during complex, multi-step investigations. And Microsoft says its output tokens are priced 86% lower than its predecessor’s, which is why defenders can afford to run it continuously in the background rather than only on demand.

MAI Code 2 — security engineer monitoring threats in a security operations centre

Access is deliberately narrow. MAI Cyber 2 Flash is available exclusively inside Microsoft security products, and only for verified defenders. Eligible customers of Codename MDASH, Microsoft’s security programme, are scheduled to receive the model automatically in their MAI profile starting in mid-December 2026, where Microsoft says it will run up to 90% of tasks while larger models handle the hardest cases.

If you are not a verified defender in that programme, you cannot try it — and that is a deliberate design choice, since a model this good at finding vulnerabilities is also a model that could be misused. Microsoft has said it will integrate Cyber 2 Flash with Perception, its agentic security system, which went generally available at the same Ignite.

For readers of this site, the cyber model matters for a different reason: it shows where Microsoft’s price-performance strategy goes next. The same playbook — a specialist model, a narrow job, a fraction of the frontier price — is being applied to security as well as coding. If it works for defenders, expect the same approach in the next specialist model Microsoft ships. The site’s earlier coverage of OpenAI’s Codex security work shows the same race from the other side, and the two approaches are worth comparing: OpenAI sells security tooling to everyone, while Microsoft is keeping its security model inside its own products for verified defenders only.

MAI Code 2 vs the Competition

The honest way to place MAI Code 2 is against the models Microsoft names in its own comparisons, plus the ones developers actually choose between in the Copilot picker. The table below uses Microsoft’s reported figures where they exist, and GitHub’s published token prices everywhere else.

Model Best for Output price (per 1M) Microsoft’s claim
Code 2 Complex everyday coding $2.50 promo / $5.00 standard 98% of GPT-6.1 Sol at 40% of cost
GPT-6.1 Sol Everyday coding and writing Far higher (see GPT-6.2 explainer) The benchmark for the comparison
Claude Opus 5.5 Hardest coding problems $20.00 Code 2 reaches 96% at 5% of cost per task
MAI Code 2 Flash Quick edits, explanations $0.25 promo / $0.50 standard Comparable to Luna and Haiku 5.5
GPT-6 Luna Fast everyday coding $1.00 (per Microsoft’s comparison) Flash costs 65% of Luna
Claude Haiku 5.5 Fast everyday coding $1.00 (per Microsoft’s comparison) Flash costs 20% of Haiku 5.5

Two things stand out. First, the price ladder inside Copilot is now very steep: Flash at $0.25, Code 2 at $2.50, Haiku 5.5 and Luna at $1.00 output in Microsoft’s comparisons, and Opus 5.5 at $20. The middle of that ladder — the $1 to $5 range — is where most daily coding now lives, and Code 2 sits right in it.

Second, Microsoft’s comparisons are all against models that are either older (GPT-6.1 Sol, GPT-5.6 Cyber) or positioned differently (Opus 5.5 is a frontier model, not an everyday one). The comparison that matters most for buyers — Code 2 against GPT-6.2 Sol, which launched the same week — is not one Microsoft published. OpenAI’s GPT-6.2 Sol costs $2 per million input tokens and $10 output, and it is the model most Copilot users will actually weigh against Code 2. Until someone runs that head-to-head, the 98% figure should be read as “close to last generation’s everyday model”, not “close to today’s best”.

That is not a criticism of the model so much as a warning about launch-week numbers. Every vendor picks the comparison that flatters it. The useful question is narrower: for the work you do every day, does Code 2 produce code you accept without heavy editing, and does it do it for less money than the model you use now? That is a question you can answer in an afternoon of real work, and it is the only benchmark that ultimately matters.

Who Should Use MAI Code 2 — and Who Should Skip It

MAI Code 2 is a strong fit if you write code every day and pay for it by the token. Enterprise developers working in large repositories, teams standardising on GitHub Copilot, and individual developers on Copilot Pro who want a capable model without Pro+ pricing will get the most from it. If your work is the daily grind — features, bug fixes, refactors, code review, UI work — Code 2 is built for exactly that, and its price means you can use the agent mode freely instead of rationing it. Small teams and startups will feel the difference most, because their Copilot bill is a real line item rather than a rounding error.

MAI Code 2 Flash is the right default for almost everyone else in the editor. If you mostly ask Copilot to explain code, write a test, fix a typo or draft a small function, Flash does that work for a tenth of the price of the full model. It is also the only MAI model free and student users can reach, through automatic model selection. Set Flash as the default, and reach for the full model only when the task earns it.

Skip Code 2 for now if your work is at the edges Microsoft itself names. Fundamental science research and very long-horizon autonomous agent runs are explicitly outside what the model is tuned for, and Microsoft says so plainly. The same applies if you need a model outside Copilot: there is no API, no Foundry access for the full model, and no date for the OpenRouter or Vercel releases. And if you are on a monthly Copilot plan, check the picker first — the annual-plan wording in GitHub’s changelog may mean the model is not yet available to you.

Security teams should watch MAI Cyber 2 Flash rather than the coding models. If your organisation is in Codename MDASH, the model arrives automatically from mid-December 2026. If it is not, the launch changes nothing for you today — but it signals that Microsoft intends to compete on security-model pricing the same way it is competing on coding-model pricing, and that is worth knowing before your next renewal conversation.

The Bigger Picture: Seven New MAI Models at Ignite

MAI Code 2 did not launch alone. Microsoft announced a family of seven new models at Ignite 2026, covering coding, cybersecurity, decision-making, images, voice and transcription. Alongside the two coding models and MAI Cyber 2 Flash came Microsoft Decision 1.1, a decision-making model for classification, routing, prioritisation and verification; MAI Image 2.7; MAI Realtime 1 for voice; and MAI Transcribe 2 for clinical transcription. Microsoft’s Perception system — specialist agents that detect, defend against and resolve vulnerabilities — went generally available at the same event.

MAI Code 2 — engineer working in a data centre where Microsoft's AI models run

The pattern across all seven is the same: a specialist model, aimed at one job, priced well below the general-purpose frontier models. Microsoft’s Ignite keynote framed Copilot itself as “the OS for work”, reorganised around Chat, Cowork, Code and Autopilot — and the MAI models are the engines inside that operating system. The coding models power the Code mode; the cyber model powers Perception; Decision 1.1 powers the routing and verification underneath. Read together, the launches say that Microsoft no longer wants to rent intelligence from other companies for its own products. It wants to build the models, price them aggressively, and keep the margin.

That strategy is also why the pricing has a promotional window. The 50% discount until 17 May 2027 is a land grab: get developers using Code 2 as their default now, while it is dramatically cheaper than the alternatives, and worry about the standard price later. It is a fair deal for users who go in with their eyes open — six months at half price, then a rate that is still cheap — but it is not a permanent price. Mark 17 May 2027 in your calendar if you adopt the model, and re-check the cost comparison when the promotion ends.

Frequently Asked Questions

What is MAI Code 2?

MAI Code 2 is Microsoft’s own general-purpose coding model, built by Microsoft AI and launched on 17 November 2026 at Microsoft Ignite. It is a mixture-of-experts model with about 77 billion active parameters, a 1,050,000-token context window, and it is available now in GitHub Copilot for Pro, Pro+, Max, Business and Enterprise subscribers.

How much does MAI Code 2 cost?

In GitHub Copilot, MAI Code 2 costs $0.50 per million input tokens, $0.025 cached and $2.50 output at a promotional rate until 17 May 2027, when the prices double to $1.00, $0.05 and $5.00. MAI Code 2 Flash costs $0.05, $0.005 and $0.25 until the same date, then $0.10, $0.01 and $0.50. Both are billed under Copilot’s usage-based billing.

Is MAI Code 2 better than GPT-6.1 Sol?

Microsoft claims MAI Code 2 delivers 98% of GPT-6.1 Sol’s coding performance at 40% of the cost per task, averaged over four benchmarks. That is Microsoft’s own result, not an independent test, and it compares against GPT-6.1 Sol rather than the newer GPT-6.2 Sol. For everyday coding it is close enough that the price difference matters more than the performance difference; for the hardest problems, the frontier models still have the edge.

Can I use MAI Code 2 on Copilot Free?

No. MAI Code 2 requires Copilot Pro or higher. Copilot Free and Student users can reach MAI Code 2 Flash, but only through automatic model selection — they cannot pin it directly in the model picker.

What is the difference between MAI Code 2 and MAI Code 2 Flash?

MAI Code 2 is the full-size model for complex work such as deep debugging, multi-file implementation and repository-wide reasoning. MAI Code 2 Flash is a smaller, 12-billion-active-parameter model for everyday work such as explanations, targeted edits and routine fixes, at a tenth of the price. Both share the same 1,050,000-token context window.

What is MAI Cyber 2 Flash?

MAI Cyber 2 Flash is the security model launched alongside the coding models. Microsoft says it scores 92.3% on the CyberGym-E2E vulnerability benchmark against 91.5% for GPT-6 Astra, at less than 2% of the cost per task. It is available only inside Microsoft security products, for verified defenders, with automatic rollout to eligible Codename MDASH customers from mid-December 2026.

What happens when the MAI Code 2 promotion ends?

On 17 May 2027 the promotional prices double: MAI Code 2 goes to $1.00 per million input tokens and $5.00 output, and Flash goes to $0.10 and $0.50. Even at those standard prices, both models remain cheaper than the frontier models they are compared against.

The Bottom Line

MAI Code 2 is the most interesting coding-model launch of the month, not because it is the most powerful model, but because it changes the arithmetic of everyday coding. Microsoft has taken a capable model, priced it at a fraction of the frontier alternatives, and put it in the editor millions of developers already use. The benchmark claims are Microsoft’s own and deserve the scepticism any vendor scorecard deserves — but the price is published, verifiable, and low enough to change behaviour. When an agent session costs cents, you use the agent more, and that is the real product here.

If you already pay for GitHub Copilot, try Code 2 this week: set Flash as your everyday default, switch to the full model for the hard jobs, and judge it on your own code rather than on a benchmark table. If you are on Copilot Free, Flash through automatic selection is worth a look. And whatever you choose, remember the two dates that matter: 18 December 2026, when MAI-Code-1.1-Flash is deprecated, and 17 May 2027, when the promotional prices double. Code 2 is a good deal today — make sure it is still a good deal on the day you renew.

All benchmark and performance claims in this article are Microsoft’s own, as published at Ignite 2026 and in the company’s model announcements. Prices are from GitHub’s Copilot models-and-pricing documentation and were correct at the time of writing; the promotional rates end on 17 May 2027. This article was published on 26 November 2026.

Leave a Comment

Your email address will not be published. Required fields are marked *