MAI Code 2: Copilot Access, Specs & Price

By Versus Tools AI Team · Published · Updated · 9 min read · AI Models & News

We may earn a commission if you buy through links on this page. Read the affiliate disclosure · How we review tools

Quick answer. MAI Code 2 and MAI Code 2 Flash were released Nov 17, 2026. Both are in GitHub Copilot. Flash is also a limited Foundry preview. Official per-million token prices were not on the pages we read. Microsoft's cost claims use a 50% promotional price. We did not test them.

MAI Code 2 and MAI Code 2 Flash were released Nov 17, 2026, at Microsoft Ignite. Microsoft calls them coding models for everyday enterprise work, at a fraction of competing cost. Both are in GitHub Copilot. Flash is also a limited-access preview in Microsoft Foundry. A public per-million-token list price was not on the official pages we read.

This page is based on official documentation, benchmarks and public reports. We did not run MAI Code 2, MAI Code 2 Flash, or the benchmarks below.

How this page was checked

We read Microsoft’s Nov 17, 2026 MAI Code 2 post, the Ignite 2026 post from the same day, the MAI Code 2 model page, and the model card PDF last updated 17 November 2026. GPT-6.2 prices point at GPT-6.2. The comparison with Sol is MAI Code 2 vs GPT-6.2 Sol. Gemini 4 Neon is a different mid-tier coding model, from Google, with a published $3 and $15 card. If a page does not print a cell, the table says “not published”.

The launch is on the AI model release timeline and in best AI models. This page does not rank the model from Microsoft’s scores.

Key facts

MAI Code 2MAI Code 2 Flash
ReleasedNov 17, 2026. Model card release date: 17 November 2026.Same release
MakerMicrosoft. Trained by Microsoft from scratch.Same family
RoleLarger coding model for everyday enterprise coding: production changes, debugging, multi-file work, repo-wide reasoning, and UI.Smaller, faster model for high-volume routine coding.
ArchitectureDecoder-only transformer, sparse mixture-of-experts, integrated vision encoder. Dependency named on the card: MAI-Base-2.Same architecture family
Context1,050,000 tokens1,050,000 tokens
Max input922,000 tokens922,000 tokens
Max output128,000 tokens. Text only.128,000 tokens. Text only.
InputText and imageText and image
Reasoning effortlow, medium, high, xhigh, maxSame list
KnowledgePre-training data cut-off Aug 2026. Training dates Aug 2026 to Nov 2026.Same cutoff on the card
LanguagesOptimized for English code production only, at releaseSame sentence on the card
List pricenot published on the official pages we readnot published on the official pages we read
WhereGitHub CopilotGitHub Copilot, and limited-access preview in Microsoft Foundry

The model card’s size lines do not match each other. The summary gives ranges: Code 2 at 50B–100B with 80B active, and Flash at 5B–15B with 12B active. Section 1 gives point figures: Code 2 at 77 billion active, 3 billion embedded, and about 2.8 trillion total; Flash at 12 billion active and about 398 billion total. This page does not pick one set and call it the size. A Flash mid-training token line on the card is internally inconsistent, so it is not quoted here.

What the models are for

Microsoft’s post says the pair is built for the coding work customers do every day, and that the models are explicitly not yet tuned for harder problems, like fundamental science research and very long-horizon agentic work. The model card’s overview calls Code 2 the larger model for complex, long-horizon software engineering in real repositories, and Flash the smaller model for everyday developer workflows. Both sentences are on official pages. This article does not merge them into one slogan.

Out of scope, on the model card: general-purpose consumer chat, medical, legal, or financial advice, and other high-stakes decisions about people without qualified human review. Code is not for production, safety-critical, or regulated systems without human review and testing. Malware, unauthorized intrusion, and other uses banned by GitHub or Microsoft policy are out of scope.

At release, the card says the model is optimized for English code production only. Performance outside English, and on less common languages and frameworks, has not been extensively evaluated.

Price and access

Checked Nov 20, 2026. There is no token table to copy, because the pages do not print one.

What the official pages print
Per-million input and outputnot published on the launch post, Ignite post, model page, or model card
Foundry price cardThe Microsoft Foundry models price page we opened does not list MAI Code 2 or MAI Code 2 Flash
GitHub CopilotBoth models, selected in the model picker. The subscription price is Copilot’s, not a model token rate printed on these posts
Foundry APIMAI Code 2 Flash only, limited-access preview, OpenAI-compatible Responses API, with Azure authentication, quotas, and content filtering
Later platformsThe blog says soon: OpenRouter, Vercel, Hermes, OpenCode, and Kilo. Not current availability
Mainland ChinaThe pages we read do not describe a mainland China access path

Microsoft’s cost percentages, below, are not a substitute for this missing card. Footnotes 1 and 3 say the MAI cost is shown at a 50% promotional price.

What Microsoft claims

Every percentage in this section is Microsoft’s. We did not rerun it. The cost figures use the promotional price named in the footnotes.

Averaged over DeepSWE 1.1, Terminal Bench 2.1, SWE-Atlas, and FrontierCode v1.1, the launch post says MAI Code 2 gives 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. Footnote 1: all models at max reasoning effort. DeepSWE 1.1, TerminalBench 2.1, and SWE Atlas were run on MSBench with the GitHub Copilot CLI without subagents. FrontierCode 1.1 scores and costs are from Artificial Analysis. MAI Code 2 cost is shown at its 50% promotional price. The Ignite lineup bullet says “about 40%” against GPT-6.1 Sol. The longer Ignite paragraph says 40%.

On visual coding, the launch post says developers preferred MAI Code 2 over GPT-6 Sol 64% of the time. Footnote 2 says the comparison is MAI Code 2 and GPT-6 Sol, across user interfaces, games, data visualizations, 3D scenes, and SVG graphics, annotated by 258 people, covering aesthetics and functionality. The model-page text we could read names GPT-6.1 Sol in that preference line and does not print 64% in the sentence. This page does not rewrite either line as GPT-6.2 Sol.

For Flash, the launch post and the Ignite post say comparable performance to GPT-6 Luna and Claude Haiku 5.5 at 65% and 20% of the cost. Footnote 3: max reasoning effort, the same three MSBench runs without subagents, and MAI Code 2 Flash cost shown at its 50% promotional price. The model-page text we could read instead says one-fifth the cost of Claude Haiku 5.5 and 12% higher performance. Those two Haiku lines are not the same claim. Both are left as printed.

The model card also prints pass rates at max reasoning, on MSBench with Copilot CLI, and does not put GPT-6.2 Sol in that table:

BenchmarkMAI Code 2 FlashMAI Code 2
DeepSWE 1.159.9%73.2%
TerminalBench 2.178.3%84.6%
SWE Atlas44.8%43.1%

The card says results are a mean single-attempt pass rate over three runs, and infrastructure errors count as failures. Flash’s SWE Atlas cell is higher than Code 2’s. That is what the card prints.

Two customer quotes on the model page are quotes, not findings of this site. Abhay Dabholkar, identified there as AVP, Data Science, says a custom version of Code 2 Flash outperforms GPT-6.1 Sol on standard 5G network analysis while being 50 times cheaper, and that Code 2 delivers frontier performance at a significantly lower price than alternatives on more complex workflows. Suigen Koide, identified as Head of DevBoost at Woven by Toyota, says that after fine-tuning on their MISRA fix history, MAI Code 2 Flash delivered ready-to-merge fixes for 44% of cases where fixes from the frontier models they run in production needed human rework, at less than one-tenth of the cost.

👍 Pros

  • Both models are in GitHub Copilot on Windows, macOS, and Linux, including Copilot CLI and VS Code
  • Context, max input, and max output are printed: 1,050,000, 922,000, and 128,000
  • Microsoft's coding claims name the benches, the harness, and the 50% promotional price

👎 Cons

  • A public per-million token price is not on the official pages we read
  • Cost claims are against GPT-6.1 Sol, Opus 5.5, Luna, and Haiku, not against GPT-6.2 Sol
  • English code only at release, and the blog says the models are not yet tuned for very long-horizon agentic work

The rest of the Ignite lineup

The Ignite post, Nov 17, 2026, lists seven models plus an accelerator. This page does not review them. Names, as that post prints them: MAI Cyber 2 Flash, MAI Code 2, MAI Code 2 Flash, MAI Image 2.7, MAI Realtime 1, Dragon Copilot Transcribe on MAI Transcribe 2, and Decision 1.1, plus the Maia 200 accelerator. The post is Microsoft Ignite 2026. Some of those lines include prices or ranks that belong on a page about that product. They are not MAI Code 2 facts.

Who should use it

Use MAI Code 2 when the work is already in GitHub Copilot and you want Microsoft’s everyday coding model, including UI and multi-file changes, and you can judge the 98% and 40% lines as Microsoft’s, at a promotional price, against GPT-6.1 Sol rather than against GPT-6.2 Sol. Use Flash for the high-volume edits the post assigns to it, and for the Foundry preview if you are in that preview.

Stay on GPT-6.2 when you need a public token card. Sol is $2 and $10. Astra is $8 and $40. The comparison that keeps those limits visible is MAI Code 2 vs GPT-6.2 Sol. Gemini 4 Neon is the Google model at $3 and $15, with a model-card table that does name Sol. This page does not call a winner against either of them.

How to use MAI Code 2

From the model card and the Nov 17 posts:

  • GitHub Copilot: select MAI Code 2 or MAI Code 2 Flash in the model picker. The card names Copilot CLI and Visual Studio Code, on Windows, macOS, and Linux. Weights are not distributed. The models are hosted.
  • Reasoning effort: low, medium, high, xhigh, or max. Higher effort uses more latency and tokens, and the card says it does not always improve results.
  • Microsoft Foundry: MAI Code 2 Flash only, limited-access preview. The card says developers create a deployment and call the OpenAI-compatible Responses API.
  • Not yet, on the blog’s own wording: OpenRouter, Vercel, Hermes, OpenCode, and Kilo.
  • Review the diff. The card says generated code can be wrong, insecure, or out of date, and that the models are not for fully autonomous consequential actions without a person in the loop.

We are not publishing a sample request. Confirm the deployment name in the Foundry project you bill.

The announcement, the model page, the model card, and the Ignite post do not describe a mainland China access path. This article does not add one.

See Cursor →

MAI Code 2 is a model inside Copilot. These are separate products.

  • Cursor if the work is a different editor. Copilot’s model picker is its own.
  • GPT-6.2 for the OpenAI models announced the same day, with a public token card.

Sources

Read on Nov 20, 2026.

Pricing and availability last checked Nov 20, 2026. This page contains affiliate links. A commission does not change the model facts.

Frequently asked questions

When was MAI Code 2 released?

Microsoft's MAI Code 2 post, the Ignite 2026 post, and the model card are dated Nov 17, 2026. The model card's release date line is 17 November 2026. The pair is MAI Code 2 and MAI Code 2 Flash. This page covers both. It does not split them into two articles.

Where can I use MAI Code 2?

Both models are in GitHub Copilot, on all Copilot clients the model card names, including Copilot CLI and VS Code, on Windows, macOS, and Linux. You pick the model in the Copilot model picker. MAI Code 2 Flash is also in limited-access preview in Microsoft Foundry, through an OpenAI-compatible Responses API. The blog says a later release on OpenRouter, Vercel, Hermes, OpenCode, and Kilo. That sentence is a future claim. This page does not treat those platforms as current availability.

Is MAI Code 2 API pricing published?

Not on the official pages we read on Nov 20, 2026. The launch post, the Ignite post, the model page, and the model card do not print a per-million-token list price. The Azure Foundry Microsoft-models price page we opened the same day does not list MAI Code 2 or MAI Code 2 Flash. Copilot access is through a GitHub Copilot subscription and the model picker, not a token card this page can quote. Do not treat a third-party calculator as Microsoft's price.

How does MAI Code 2 compare with GPT-6.2 Sol?

Both were announced Nov 17, 2026. Sol has a public API price of $2 per million input tokens and $10 output, in ChatGPT Work, Codex, and the API. MAI Code 2 is in GitHub Copilot, and a public per-million price was not on the pages we read. Microsoft's published cost claims name GPT-6.1 Sol, Claude Opus 5.5, GPT-6 Luna, and Claude Haiku 5.5, not GPT-6.2 Sol. The head-to-head page is MAI Code 2 vs GPT-6.2 Sol. We did not test either model.

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

Microsoft describes Code 2 for everyday enterprise coding that includes production changes, deep debugging, multi-file work, repo-wide reasoning, and UI. Flash is for high-volume work such as explanations, targeted edits, routine fixes, and rapid iteration. Both take text and image input and return text, with a 1,050,000 context, 922,000 max input, and 128,000 max output. Reasoning effort on the model card is low, medium, high, xhigh, and max. On Microsoft's own MSBench table at max effort, Code 2 is higher on DeepSWE 1.1 and TerminalBench 2.1, and Flash is slightly higher on SWE Atlas (44.8% to 43.1%).

Did you test MAI Code 2?

No. This page is based on official documentation, benchmarks and public reports read on Nov 20, 2026. Performance and cost percentages are Microsoft's, and the cost footnotes say the MAI price shown is a 50% promotional price. Where a page did not print a figure, this page says not published.