# MAI Code 2: Microsoft competes with its own catalogue

Microsoft's MAI Code 2 is priced at exactly a quarter of GPT-6.1 Sol and an eighth of Claude Opus 5.5 on every published token meter, which means the vendor's 40% and 5% headline figures are claims about tokens consumed per task rather than about price. Here is the arithmetic on real workload shapes, the 17 May 2027 doubling, the undocumented EU residency position, and what a neutral catalogue means now that its owner competes inside it.

- Published: 2026-12-03 · Category: AI & Cloud Infrastructure · Tags: MAI Code 2, Microsoft Foundry, Azure OpenAI, Claude Opus 5.5, GPT-6.1 Sol, GitHub Copilot, Model Selection, Vendor Lock-in, EU Data Zone, AI & Cloud Infrastructure
- Author: Technspire AB, Stockholm (https://technspire.com)
- Canonical: https://technspire.com/en/blog/mai-code-2-microsoft-competes-with-its-catalogue

On the GitHub Copilot pricing reference, MAI Code 2 is listed at $0.50 per million input tokens, $0.025 per million cached input tokens and $2.50 per million output tokens. GPT-6.1 Sol on the same page is $2.00, $0.10 and $10.00. Claude Opus 5.5 is $4.00, $0.20 and $20.00. Divide the rows and a pattern falls out: MAI Code 2 is currently priced at exactly one quarter of GPT-6.1 Sol on every meter, and exactly one eighth of Claude Opus 5.5 on every meter. Not approximately. Exactly.

That matters more than the headline percentages Microsoft put in its Ignite announcement, because it tells you where those percentages come from and what you can and cannot rely on. It also raises a question that has nothing to do with arithmetic. If you standardised on Foundry because it was a supplier-neutral catalogue of OpenAI, Anthropic, Meta, Google and xAI models, the platform owner now sells a competing product inside it.

## What Microsoft actually claimed

Microsoft AI announced seven first-party models at Ignite on 17 November 2026: MAI Cyber 2 Flash, MAI Code 2, MAI Code 2 Flash, MAI Image 2.7, MAI Realtime 1, Dragon Copilot Transcribe and Decision 1.1. The coding claims are the ones being quoted, and they are vendor claims. On the Microsoft AI news page, MAI Code 2 delivers "98% of the coding quality of GPT-6.1 Sol at about 40% of the price" and, against Claude Opus 5.5, "96% performance for just 5% of the price". The named basis is an average over four benchmarks: DeepSWE 1.1, Terminal Bench 2.1, SWE-Atlas and FrontierCode v1.1. The same page claims developers preferred MAI Code 2 over GPT-6 Sol 64% of the time on frontend work.

For MAI Code 2 Flash the claim is comparable performance to GPT-6 Luna at 65% of the price, and to Haiku 5.5 at 20% of the price, averaged over three of those benchmarks.

The Foundry engineering blog is more precise about what the price comparison means. It says MAI Code 2 "came within one percentage point of GPT-6.1 Sol's average pass rate at 40% of the cost per task on promotional pricing", and that MAI Code 2 Flash reached a "61% pass rate across three benchmarks at about 5 cents per task on promotional pricing". Cost per task, not cost per token. Keep that distinction, because the two numbers behave very differently.

## What the model card publishes, and what it does not

Microsoft published a model card for the MAI Code 2 family dated 17 November 2026, and it is unusually forthcoming about the harness. All coding benchmarks were run on MSBench, Microsoft's agentic evaluation platform, using the GitHub Copilot CLI version 1.0.102 as the harness with subagents disabled. Every model in a comparison ran in the same harness with the same settings. Results use max reasoning effort, are averaged over three independent runs per task as a mean single-attempt pass rate rather than pass@k, and infrastructure errors are counted as failures. That is a reproducible description, and it is better documentation than most model releases ship with.

What the card does not contain is the comparison. Its quality table has two columns, MAI Code 2 Flash and MAI Code 2, and three rows:

| Benchmark | MAI Code 2 Flash | MAI Code 2 |
| --- | --- | --- |
| DeepSWE 1.1 | 59.9% | 73.2% |
| TerminalBench 2.1 | 78.3% | 84.6% |
| SWE Atlas | 44.8% | 43.1% |

No GPT-6.1 Sol row. No Claude Opus 5.5 row. No FrontierCode v1.1 row, although FrontierCode is one of the four benchmarks the 98% and 96% figures are averaged over. No per-task token counts and no per-task dollar figures. So the two percentages that are driving procurement conversations across Europe this week cannot be reproduced from anything Microsoft has published. They are vendor claims produced in a vendor harness, and the competitor scores behind them are not in public.

One line in that table deserves attention on its own. On SWE Atlas, the small model beats the large one: 44.8% against 43.1%. SWE Atlas is described in the card as expert-authored tasks from 18 actively maintained open-source repositories across codebase Q&A, test writing and refactoring, graded with a mix of programmatic checks and rubric assessment. That is the benchmark closest to what an enterprise engineering team does all day, and it is the one where the flagship does not win. Microsoft published it anyway, which is to its credit, and it is a reason not to assume the bigger model is the right default for your repos.

## The rate math, and what the percentages imply

Take the published token rates and run three workload shapes through them. The shapes below are illustrative envelopes, not measured figures from any customer. Cache write charges are excluded because MAI Code 2 has no published cache write rate, while GPT-6.1 Sol lists $2.50 and Claude Opus 5.5 lists $5.00 per million.

| Workload per task | MAI Code 2 (promo) | MAI Code 2 (list) | GPT-6.1 Sol | Claude Opus 5.5 |
| --- | --- | --- | --- | --- |
| Interactive assist: 5k fresh, 15k cached, 2k out | $0.0079 | $0.0158 | $0.0315 | $0.0630 |
| Agentic multi-file run: 80k fresh, 320k cached, 25k out | $0.1105 | $0.2210 | $0.4420 | $0.8840 |
| Repo-wide refactor: 200k fresh, 700k cached, 60k out | $0.2675 | $0.5350 | $1.0700 | $2.1400 |

The ratio never moves. Whatever the token mix, promotional MAI Code 2 lands at 25.0% of GPT-6.1 Sol and 12.5% of Claude Opus 5.5, because the rate card is a clean scalar multiple on all three meters. Now compare that with Microsoft's claims of 40% and 5%. They point in opposite directions from the rate ratios, and the only variable left is tokens consumed per task.

Work it through. If MAI Code 2 costs 40% as much as GPT-6.1 Sol per task while its rates are 25% of Sol's, MAI Code 2 must burn roughly 1.6 times as many tokens per task as Sol does. If it costs 5% as much as Opus 5.5 per task while its rates are 12.5% of Opus's, it must burn roughly 0.4 times Opus's tokens. Put those together and the claims imply Claude Opus 5.5 consumes on the order of four times the tokens per task that GPT-6.1 Sol does, in the same harness at max reasoning effort. That may well be true. It is not published, and it is the single largest hidden variable in the whole comparison.

The Flash numbers confirm the mechanism. GPT-6 Luna and Claude Haiku 5.5 carry identical published rates of $0.10 input and $0.50 output per million. MAI Code 2 Flash sits at $0.05 and $0.25, exactly half of both. Yet the vendor claim is 65% of the price against Luna and 20% against Haiku 5.5. Two different percentages against two identically priced models can only come from token consumption, not from the rate card.

So the percentages are not price claims in any procurement sense. They are claims about efficiency on Microsoft's task set, in Microsoft's harness, at max reasoning effort, with the token counts withheld. Your agent loop has a different prompt, a different tool set, a different cache hit rate and a different retry policy. Measure it.

## 17 May 2027

GitHub's documentation is explicit that current MAI Code 2 pricing is promotional. The $0.50 input, $0.025 cached input and $2.50 output rates hold until 17 May 2027. From that date the published rates are $1.00, $0.05 and $5.00. That is a straight doubling on every meter. MAI Code 2 Flash is on the same clock, at $0.05, $0.005 and $0.25 until 17 May 2027.

After the doubling, MAI Code 2 is 50% of GPT-6.1 Sol's rate and 25% of Opus 5.5's rate rather than 25% and 12.5%. Apply the same token-consumption inference and the vendor's own framing would become roughly 80% of Sol's cost per task and roughly 10% of Opus's. The Opus comparison stays dramatic. The GPT comparison stops being a reason to switch anything, which is worth remembering if the business case you are being shown has a three-year horizon.

Build the May 2027 rate into the model now. We went through the same exercise when the [Foundry EU Data Zone premium doubled](/en/blog/foundry-eu-data-zone-premium-doubles-swedish-cost-math), and the pattern is identical: a promotional rate sets an expectation, the expectation becomes an architecture, and the architecture outlives the discount.

## Why cheap-first-then-escalate beats picking a winner

The interesting consequence of a large rate gap is not which model you choose. It is that you stop choosing. Take the agentic run shape above and 100 tasks a developer sends in a week.

```
100 tasks, agentic run shape, GitHub Copilot published rates

All Claude Opus 5.5            100 x $0.8840  = $88.40
All GPT-6.1 Sol                100 x $0.4420  = $44.20
All MAI Code 2 (promo)         100 x $0.1105  = $11.05
All MAI Code 2 (from May 2027) 100 x $0.2210  = $22.10

MAI Code 2 first, escalate the failures to Opus 5.5:
  4 escalations   $11.05 + 4 x $0.8840  = $14.59   (16.5% of all-Opus)
 20 escalations   $11.05 + 20 x $0.8840 = $28.73   (32.5% of all-Opus)

Break-even escalation rate vs all-Opus:
  promo rates  (88.40 - 11.05) / 0.8840 = 87 of every 100 tasks
  list rates   (88.40 - 22.10) / 0.8840 = 75 of every 100 tasks

Break-even escalation rate vs all-GPT-6.1-Sol:
  promo rates  (44.20 - 11.05) / 0.4420 = 75 of every 100 tasks
  list rates   (44.20 - 22.10) / 0.4420 = 50 of every 100 tasks
```

You would have to send 87 of every 100 tasks on to Opus 5.5 before trying MAI Code 2 first stops saving money, and even at list rates the figure is 75. No plausible quality gap makes that happen. The cheap-first pattern wins by a margin so wide that the exact quality delta barely enters the calculation, which is exactly why the 98% and 96% claims should not drive your decision either way.

What that pattern demands instead is a reliable failure signal. Tests that actually fail when the change is wrong. A reviewer who catches the silently-plausible diff. A retry budget with a cap. Without those, cheap-first does not escalate, it just ships worse code at a lower unit price. Spend the engineering effort there rather than on model selection, and the model selection becomes cheap to change later.

Keep absolute numbers in view as well. Forty developers at sixty agentic runs each a month on the shape above is roughly $265 on promotional MAI Code 2, $530 at list, $1,061 on GPT-6.1 Sol and $2,122 on Claude Opus 5.5. The spread is real but it is not a budget line worth a strategic concession, and the one number in that row that people forget is the cost of a developer's week spent debugging an output nobody trusted.

## Where you can actually run it, and the Swedish problem

Availability is messier than the announcement suggests, and this is where the plan meets reality for a regulated Swedish estate.

The official Microsoft blog says the Code 2 models are generally available on GitHub Copilot, in the model picker and as part of Copilot Fusion, and "also available in Foundry". The Foundry engineering blog, published the same day, says something narrower: MAI Code 2 Flash is in limited-access preview in Foundry and MAI Code 2 is "coming soon to Foundry". Microsoft AI's own news page splits it the same way. Treat Foundry availability for the flagship as not yet shipped.

Then check the documentation. The Microsoft Learn page listing Foundry Models sold by Azure, last updated 24 November 2026, does not list MAI-Code-2 or MAI-Code-2-Flash at all. The only MAI coding model on that page is MAI-Code-1.1-Flash, and it appears in the fine-tuning table, where Global is the only serving-style deployment option ticked and Data zone is marked unavailable. So there is no documented region list for MAI Code 2, no documented deployment type, and no documented data zone option. That is not a criticism of a model three weeks old. It is a statement about what you can put in a data protection impact assessment today, which is nothing.

Compare the two catalogue neighbours on the same documentation set. GPT-6.1 Sol appears on the Azure OpenAI pricing page with separate Data Zone rows, and the page describes data zones as geographic, EU or US. Claude models in Foundry are documented differently: for Global Standard in Europe, claude-opus-5-5 is listed in swedencentral only, and the Data Zone Standard table for Europe says "Not available", with claude-opus-5-5 marked "US (Hosted on Azure for Data Zone Standard)". Three model families, three different residency stories, one catalogue.

For a Swedish enterprise with a genuine EU processing requirement, the ranking today is therefore the opposite of the price ranking. Azure OpenAI models have a documented EU data zone. Anthropic models in Foundry do not, and their European footprint is Sweden Central under a global deployment type. Microsoft's own cheap coding model has no published residency position at all. If your model policy is written against documented commitments rather than announcements, MAI Code 2 is not yet selectable for anything touching personal data. Our [Azure OpenAI integration work](/en/services/azure-openai-integration) starts from that documentation rather than the keynote, for precisely this reason.

## The catalogue is no longer neutral, and that changes three things

Foundry's pitch for two years has been breadth and neutrality: one endpoint, one billing relationship, one governance surface, and the pick of the frontier. The Foundry blog now puts the catalogue at more than 11,000 models, with Model Router Auto able to route across 45 models from seven providers in 32 regions without deploying a router resource. Microsoft is now also a competitor inside that catalogue, with first-party models at a quarter and an eighth of its partners' rates. Three practical consequences follow.

**Routing is now a commercial decision, not just a technical one.** Anything that picks a model on your behalf, a router, a Copilot default, a fallback chain, is a mechanism by which the platform owner can shift volume toward its own product. That is not an accusation of bad faith. It is a reason to pin models explicitly where the choice matters, to log which model served each request, and to alert when a default changes under you. If you cannot answer "which model ran this week's production traffic, by percentage" from telemetry, you have given away a decision you care about.

**Negotiation leverage improves in one direction only.** A credible first-party option strengthens your hand with OpenAI and Anthropic pricing inside an Azure agreement, and it is reasonable to use it in a renewal conversation. It does nothing for your position against Microsoft, because Microsoft now owns both the alternative and the platform. If your entire fallback story is a Microsoft model running on Microsoft infrastructure under a Microsoft agreement, you have one supplier wearing three hats. Keep at least one non-Microsoft model in production use, not just in a test harness, so the switch is exercised rather than theoretical.

**MAI weights have no second source.** OpenAI and Anthropic models are sold through more than one channel, so a bad renewal has an alternative route to the same weights. MAI models are offered on Microsoft surfaces. The partial exception is MAI Licensed Weights, announced through the Frontier Company programme, where Microsoft describes giving trusted customers access to model weights to customise with proprietary data and then "run it securely in your own Azure environment". Read that last clause carefully. It reduces your exposure to a model's deprecation schedule and increases your dependence on Azure.

## What to do in December

Five things, in order, and none of them require a strategy document.

**Run your own eval before you believe any percentage.** Microsoft told you the harness: MSBench, Copilot CLI 1.0.102, subagents disabled, max reasoning effort, three runs per task, infrastructure errors counted as failures. Build the equivalent against thirty tasks from your own repositories with your own tests as the grader, and record tokens consumed per task alongside pass rate. Tokens per task is the number both vendors and benchmark aggregators leave out, and it is the number that sets your bill.

**Separate the Copilot decision from the Foundry decision.** In GitHub Copilot, MAI Code 2 is generally available today and the admin question is which models your organisation enables. In Foundry, the flagship is not yet there. Do not write one policy that assumes both.

**Put 17 May 2027 in the model.** Any business case comparing MAI Code 2 to a frontier model should show both the promotional and the published post-promotion rates, and should state which one the payback period depends on.

**Keep the residency question separate from the price question.** Code assistance on open-source dependencies and code assistance on a repository full of customer identifiers are different risk classes. The first can take a Global deployment of an undocumented model. The second cannot, and no price justifies pretending otherwise.

**Instrument the escalation path, then let model choice be boring.** The break-even numbers say your architecture should be cheap model first, frontier model on failure, with a hard retry cap and a trustworthy failure signal. Build that, and the next time a vendor claims 96% of someone else's performance, you will be able to check it in an afternoon. We sketched the same posture for the rest of the Ignite announcements in [the Ignite 2026 triage](/en/blog/ignite-2026-triage-what-a-swedish-azure-team-acts-on).

One gap is worth naming plainly. Neither Microsoft's news page nor the model card publishes a per-task token count, a per-task dollar figure or any competitor score, and no EU data zone or regional availability is documented for either MAI Code 2 model. Every figure above is either arithmetic on published token rates or an inference drawn from the vendor's own percentages.

## Sources

- [Microsoft AI, Seven new world-class models at scalable price-performance](https://microsoft.ai/news/microsoft-ignite-2026/)
- [The Official Microsoft Blog, Ignite 2026: Building the frontier ecosystem](https://blogs.microsoft.com/blog/2026/11/17/ignite-2026-building-the-frontier-ecosystem/)
- [Microsoft Foundry blog, What's new in Microsoft Foundry at Ignite 2026](https://devblogs.microsoft.com/foundry/whats-new-in-microsoft-foundry-ignite-2026/)
- [MAI Code 2 and MAI Code 2 Flash model card, 17 November 2026](https://microsoft.ai/pdf/MAI-Code-2-And-MAI-Code-2-Flash-Model-Card.pdf)
- [GitHub Docs, Models and pricing for GitHub Copilot](https://docs.github.com/en/copilot/reference/copilot-billing/models-and-pricing)
- [Microsoft Learn, Foundry Models sold by Azure](https://learn.microsoft.com/en-us/azure/ai-foundry/foundry-models/concepts/models-sold-directly-by-azure)
- [Microsoft Learn, Foundry Models from partners and community](https://learn.microsoft.com/en-us/azure/foundry/foundry-models/concepts/models-from-partners)
- [Azure OpenAI pricing](https://azure.microsoft.com/en-us/pricing/details/azure-openai/)
- [Microsoft Foundry blog, From model choice to your durable advantage](https://techcommunity.microsoft.com/blog/azure-ai-foundry-blog/from-model-choice-to-your-durable-advantage-build-ai-that-keeps-improving/4573609)

---

Technspire AB builds AI agents, Azure OpenAI solutions, and production web platforms for Swedish and EU enterprises. Book a call: https://calendly.com/technspire · hello@technspire.com · More articles: https://technspire.com/en/blog · Site overview for agents: https://technspire.com/llms.txt
