Skip to content

ModelsMicrosoft

MAI Code 2 and MAI Code 2 Flash: Microsoft's AI coding models reach GitHub Copilot at promotional prices

MAI Code 2 at a glance

Microsoft launched MAI Code 2 and MAI Code 2 Flash, its AI coding models, in GitHub Copilot on November 17, 2026: in Microsoft's own benchmarks MAI Code 2 delivers 98% of GPT-6.1 Sol's performance at 40% of the cost, with promotional Copilot pricing from $0.05 per million input tokens.

Ask your AI about this story

Ask what changed in MAI Code 2 and MAI Code 2 Flash and what to check before using it in your business. Compare it on price, speed, intelligence and the price-to-speed ratio against the models I would otherwise use, and say which tasks it suits or does not suit.

Sources checked Primary source (opens in a new tab)

What changed with MAI Code 2

Microsoft announced MAI Code 2 and MAI Code 2 Flash on November 17, 2026, at Ignite, as its everyday enterprise AI coding models, and both are live in GitHub Copilot today. MAI Code 2 is built for taking code to production: deep debugging, multi-file implementation, repo-wide reasoning and user interfaces. MAI Code 2 Flash is the high-volume sibling for code explanations, targeted edits, routine fixes and rapid iteration. GitHub's changelog puts MAI Code 2 on Copilot Pro, Pro+, Max, Business and Enterprise plans, and MAI Code 2 Flash on every plan including Free and Student, for eligible subscribers on annual plans. MAI Code 2 Flash is also in a limited-access preview in Microsoft Foundry.

In Microsoft's own evaluations, averaged over DeepSWE 1.1, Terminal Bench 2.1, SWE-Atlas and FrontierCode v1.1, MAI Code 2 delivers 98% of GPT-6.1 Sol's performance at 40% of the cost, and 96% of Claude Opus 5.5's at 5% of the cost; in blind frontend evaluations, reviewers preferred its results over GPT-6 Sol 67% of the time. MAI Code 2 Flash matches GPT-6 Luna at 65% of the price and Claude Haiku 5.5 at 20%, across DeepSWE 1.1, Terminal Bench 2.1 and SWE-Atlas (Microsoft's figures). GitHub's Copilot pricing docs list promotional usage rates until May 17, 2027: MAI Code 2 at $0.50 input / $2.50 output per million tokens, and Flash at $0.05 / $0.25, doubling afterwards. Microsoft says the pair is not yet tuned for fundamental science research or very long-horizon agentic work, and as of November 17, 2026, Artificial Analysis had not published pages for either model.

MAI Code 2 benchmarks and pricing

Values are copied from the linked source on the date shown. They are not IA Compa measurements.

Input price per 1M tokens (Copilot promotional rate)as of · Source for Input price per 1M tokens (Copilot promotional rate): docs.github.com (opens in a new tab)
$0.50
Output price per 1M tokens (Copilot promotional rate)as of · Source for Output price per 1M tokens (Copilot promotional rate): docs.github.com (opens in a new tab)
$2.50
Performance vs GPT-6.1 Sol (Microsoft's average, four coding benchmarks)as of · Source for Performance vs GPT-6.1 Sol (Microsoft's average, four coding benchmarks): microsoft.ai (opens in a new tab)
98% of the performance at 40% of the cost
Input price per 1M tokens (Copilot promotional rate) · MAI Code 2 Flashas of · Source for Input price per 1M tokens (Copilot promotional rate): docs.github.com (opens in a new tab)
$0.05
Output price per 1M tokens (Copilot promotional rate) · MAI Code 2 Flashas of · Source for Output price per 1M tokens (Copilot promotional rate): docs.github.com (opens in a new tab)
$0.25
Performance vs GPT-6 Luna (Microsoft's average, three coding benchmarks) · MAI Code 2 Flashas of · Source for Performance vs GPT-6 Luna (Microsoft's average, three coding benchmarks): microsoft.ai (opens in a new tab)
Matches GPT-6 Luna at 65% of the price

How it compares

Current models we have covered: released in the last six months, newest version of each line only. Each value is the model's latest recorded value. (Models)

Input price (USD per 1M tokens) · MAI Code 2lower is better
Input price (USD per 1M tokens) · MAI Code 2 Flashlower is better
Output price (USD per 1M tokens) · MAI Code 2lower is better
Output price (USD per 1M tokens) · MAI Code 2 Flashlower is better

Where to compare MAI Code 2

Independent leaderboards and official resources for comparing this model yourself. Rankings change often; each site shows its own current data.

Why MAI Code 2 matters for businesses

Why it matters: if your team already pays for GitHub Copilot, MAI Code 2 gives you a cheaper default for the everyday work that fills most sprints — debugging, refactors and multi-file changes — at promotional rates far below flagship prices, with no new vendor or migration. Route routine fixes and explanations to MAI Code 2 Flash, keep MAI Code 2 for production work, and your Copilot credits stretch further across the month; just note the models are aimed at everyday enterprise coding, not research-grade problems or very long autonomous runs.

Put it to work: AI services

Get AI News by email

Verified AI stories, each with its official source, on Monday and Thursday mornings. Add breaking news to hear about the biggest ones as soon as we publish them.

Every story links its official source

Free, in English or Spanish

Unsubscribe with one click, any time

What to send

Sources for this story

  1. Official
  2. Official
  3. Official
  4. Official

Last verified: . IA Compa summarizes public announcements for business readers. We are not affiliated with the companies mentioned. Always confirm details, pricing, and availability with the official source.

  • #llm
  • #microsoft
  • #mai-code-2
  • #mai-code-2-flash
  • #github-copilot
  • #coding

Want this working in your business?

We turn new AI capabilities into agents, voice receptionists, and automations you can actually use.