Home › Guides › MAI Code 2 vs Code 2 Flash

MAI Code 2 vs Code 2 Flash: Microsoft's cheap new coding models in Copilot

TL;DR · 🧠 Models

Flash for routine, Code 2 for features

MAI Code 2 is a quarter of Sol's per-token price in Copilot, but that is a launch promo.

$0.50 / $2.50MAI Code 2 per M tokens
1/4price of Sol or Sonnet 5.5
May 17, 2027rates double
Models guide illustration: abstract glowing code editor windows
Read the full short answer

Short answer: use Code 2 Flash for routine work (explanations, small edits, quick fixes) and MAI Code 2 for multi-file features and debugging. Keep a frontier model like Claude Opus 5.5 or GPT-6.2 Sol for the hardest, longest agent runs: Microsoft itself says these models are not yet tuned for very long-horizon agentic work.

The price is the story. In GitHub Copilot, MAI Code 2 costs $0.50 input / $2.50 output per million tokens, a quarter of GPT-6.2 Sol or Claude Sonnet 5.5 per token and an eighth of Opus 5.5. But that's a 50% launch promo. On May 17, 2027 every MAI Code 2 rate doubles, and Flash ends up the same per-token price as GPT-6 Luna and Claude Haiku 5.5. And on Copilot Pro ($10), MAI Code 2 is one of the few "Powerful" models you can pick at all.

Checked Nov 19, 2026 against the GitHub changelog (Nov 17), GitHub's Copilot models and pricing, supported models per plan, AI credit allowances, the legacy annual plan multipliers, Microsoft AI's launch post and the model card. Benchmark claims are Microsoft's, not our tests.

MAI Code 2 vs Code 2 Flash at a glance

Table
MAI Code 2 FlashMAI Code 2
Microsoft says use it forCode explanations, targeted edits, routine fixes, rapid iterationDeep debugging, multi-file changes, refactoring, repo-wide reasoning, UI and dashboards
Copilot price per 1M tokens now (input / cached / output)$0.05 / $0.005 / $0.25$0.50 / $0.025 / $2.50
From May 17, 2027$0.10 / $0.01 / $0.50$1.00 / $0.05 / $5.00
Copilot plansFree, Student, Pro, Pro+, Max, Business, EnterprisePro, Pro+, Max, Business, Enterprise
Microsoft's comparison"Comparable" to GPT-6 Luna and Claude Haiku 5.5 at 65% and 20% of the cost per task98% of GPT-6.1 Sol's score at 40% of the cost; 96% of Claude Opus 5.5 at 5% of the cost
Legacy annual plan multiplier0.33x premium request1x premium request
Context (model card)1,050,000 tokens total, up to 922,000 input and 128,000 output. Text and image input. Configurable reasoning. Hosted only, no downloadable weights.

Microsoft's cost-per-task figures were measured with MAI prices at the 50% promo, all models at max reasoning, in Copilot CLI without subagents (FrontierCode costs from Artificial Analysis). After May 17, 2027, roughly double the MAI side of those ratios. The 64% preference over GPT-6 Sol for frontend work comes from a blind test with 258 annotators, run by Microsoft.

Which model should you pick?

Interactive

Three questions. Runs in your browser.

The May 17, 2027 catch

Table

Both models launched at half price, and GitHub's pricing page says so in a footnote. Here's how they stack up per token against the models people actually compare them to, now and after the promo ends. Prices are Copilot's, per million tokens, input / output.

Compare toIts priceMAI nowMAI from May 17, 2027
Claude Opus 5.5$4 / $20Code 2 is 1/81/4
GPT-6.2 Sol, Claude Sonnet 5.5$2 / $10Code 2 is 1/41/2
Gemini 4 Hydrogen$1.50 / $7.50Code 2 is 1/32/3
GPT-6.1 Terra$1 / $5Code 2 is 1/2Same price
GPT-6 Luna, Claude Haiku 5.5 (up to 100K)$0.10 / $0.50Flash is 1/2Same price

So the Flash discount vs Luna and Haiku is temporary. What stays: MAI models have a single rate in GitHub's table, with no long-context tier. Haiku 5.5 jumps to $0.50 / $2.50 over 100K input tokens and Luna to $0.20 / $0.75 over 272K, so on big-context requests Flash stays cheaper even after May. And OpenAI and Anthropic models in Copilot also charge a cache-write fee; GitHub lists none for MAI.

Per-token price isn't cost per task. A model that needs more turns or retries can cost more overall. Test on your own repo for a week before you switch your default.

How far your Copilot credits go

Interactive

1 AI credit = $0.01. Enter a typical task; we price it on every model and show how many fit in your plan's monthly credits. Runs in your browser.

Same token counts for every model, which is a simplification: Microsoft says its models use fewer tokens, and that claim isn't independently checked yet. Long-context surcharges and cache-write fees (OpenAI and Anthropic models) are left out, so those rows are, if anything, a bit low. Pro+ and Max credits include a flex allotment GitHub says can change; base credits are 1,000 (Pro), 3,900 (Pro+) and 10,000 (Max). Business and Enterprise credits are pooled across the org. Auto model selection takes 10% off; Copilot Fusion takes 30% off through Nov 30, 2026 (paid plans).

Which Copilot plans get which models

Table

From GitHub's per-plan model table (Nov 19, 2026). This is why MAI Code 2 matters most on the $10 plan.

ModelPro $10Pro+ $39, Max, Business, Enterprise
MAI Code 2, MAI Code 2 FlashYesYes
Claude Sonnet 5.5, Gemini 4 Hydrogen, GPT-6.1 Terra, Kimi K3, Claude Haiku 5.5, GPT-6 LunaYesYes
GPT-6.2 Sol and Astra, Claude Opus 5.5, Claude Fable 5.2, Gemini 4 Carbon, Gemini 4 Neon (new Nov 18)NoYes
  • Copilot Free and Student: GitHub's changelog lists Code 2 Flash, but the plan docs say Free and Student get models through auto model selection only, and Flash is in the auto pool. So you'll likely get Flash when Auto picks it, not from the picker.
  • Business and Enterprise: new models are on by default unless an admin turned off default enablement or disabled them in the model policy.
  • Copilot Fusion: MAI Code 2 joined Fusion Standard on Nov 17, so Fusion may route work to it on its own.
  • Where it works: VS Code, Visual Studio, JetBrains, Xcode, Eclipse, Copilot CLI, the cloud agent, the Copilot app, github.com and GitHub Mobile. GitHub's minimum-version table lists Visual Studio 17.14.6; other IDE minimums say TBD, so update your extension if you don't see it.

Still on an annual plan with premium requests?

Table

If you kept an annual Copilot Pro or Pro+ plan on the old premium-request billing after June 1, 2026, this is the bigger deal. GitHub's legacy multiplier table charges:

ModelPremium requests per use
MAI Code 2 Flash0.33
Claude Haiku 4.50.33
MAI-Code-1.1-Flash0.25
MAI Code 21
GPT-5.3-Codex6
Claude Sonnet 4.69
Claude Opus 4.827

So one Sonnet 4.6 request costs the same as nine MAI Code 2 requests. The same page says legacy annual plans "will not receive access to new models," yet lists MAI Code 2 and Flash, and the changelog says both are available to eligible annual-plan subscribers. Check your model picker; if they're there, they're the cheapest decent models you have.

Can you use it outside Copilot?

  • Microsoft Foundry: Code 2 Flash only, in limited-access preview, through the OpenAI-compatible Responses API. MAI Code 2 isn't in Foundry yet.
  • OpenRouter, Vercel, Hermes, OpenCode, Kilo: Microsoft says "soon." No date, no prices.
  • Cursor, Claude Code, Codex: not on Microsoft's list. If you want these models today, Copilot is the way. See Cursor vs Copilot.

What we couldn't confirm

  • Benchmarks. Every score and cost-per-task ratio is Microsoft's, run on its own eval platform, with MAI at promo prices. No independent coding-agent results yet.
  • Free and Student access. The changelog says Flash is available; plan docs say auto model selection only. We read that as Auto-only, but GitHub hasn't spelled it out.
  • The "annual plans" line. GitHub says both models are "available to eligible GitHub Copilot subscribers on annual plans" without saying who's eligible.
  • Third-party availability. No dates or prices for OpenRouter, Vercel, OpenCode or Kilo.
  • Pricing after the promo. GitHub publishes the May 17, 2027 rates; whether the promo gets extended is anyone's guess.

Ready to try one?

Every tool here can be cancelled monthly, so the fastest way to decide is a real task on each.

GitHub Copilot

Start on: Pro $10. The best value for most individuals: 1,500 AI credits and a choice of models including Claude and GPT. Verified teachers and popular open-source maintainers may get it free.

Cursor

Start on: Premium $30. Cursor's pick for new AI users. Needed for cloud agents (including Live Apps, which build and host web apps), Bugbot code reviews, and any Claude or GPT use (billed extra).

Claude Code

Start on: Pro $20. Start here. Includes Claude Code with usage limits; $17/mo if you pay $200 for the year.

FAQ

5 questions

Should I use MAI Code 2 or MAI Code 2 Flash?

Use Code 2 Flash for explanations, small targeted edits and routine fixes, and MAI Code 2 for multi-file features, debugging, refactoring and UI work. Microsoft says neither is tuned yet for very long-horizon agent work, so keep a frontier model such as Claude Opus 5.5 or GPT-6.2 Sol for the hardest runs.

How much do MAI Code 2 and Code 2 Flash cost in GitHub Copilot?

Per million tokens, MAI Code 2 is $0.50 input, $0.025 cached input and $2.50 output, and Code 2 Flash is $0.05, $0.005 and $0.25. These are 50% promotional rates until May 17, 2027. From then, MAI Code 2 is $1, $0.05 and $5, and Flash is $0.10, $0.01 and $0.50. Usage is billed in GitHub AI Credits (1 credit = $0.01).

Which Copilot plans include MAI Code 2?

MAI Code 2: Copilot Pro, Pro+, Max, Business and Enterprise. Code 2 Flash: also Copilot Free and Student, where plan docs say models come through auto model selection only. On Copilot Pro ($10), MAI Code 2 is one of the few Powerful models available, since GPT-6.2 Sol, Claude Opus 5.5 and Gemini 4 Carbon need Pro+ or higher.

Is MAI Code 2 really cheaper than GPT-6.2 Sol and Claude Opus 5.5?

Per token, yes: at the launch promo it is a quarter of GPT-6.2 Sol and an eighth of Opus 5.5, and after May 17, 2027 it is half of Sol and a quarter of Opus 5.5. Microsoft's claim of 98% of GPT-6.1 Sol's performance at 40% of the cost, and 96% of Opus 5.5 at 5%, is its own benchmark with MAI at promo prices.

Can I use MAI Code 2 outside GitHub Copilot?

Not yet for MAI Code 2. Code 2 Flash is in a limited-access preview in Microsoft Foundry. Microsoft says both are coming soon to OpenRouter, Vercel, Hermes, OpenCode and Kilo, with no date. They are not offered in Cursor, Claude Code or Codex.

Ship your app: the rest of the stack

Picked your AI coding tool? These are the usual next costs. Free tiers first, and prices checked Oct 20, 2026 on each vendor's pricing page.

Code review

AI writes code fast; something should read it before it ships.

  • CodeRabbitAI review on every pull request, in GitHub or GitLabFree for public repos; Essentials $24/user/mo billed annually ($30 monthly)

Already paying for Copilot or Codex Plus? Both include AI pull request review, so try that first.

Hosting

Where your app lives once it works on your machine.

  • VercelNext.js and front-end appsHobby free (personal, non-commercial); Pro $20/mo per developer seat
  • Netlify referralStatic sites and front ends, unlimited Pro membersFree; Personal $9/mo; Pro $20/mo with unlimited members
  • RailwayBack ends, workers and databases with no server setupFree trial $5 credit; Hobby $5/mo incl. $5 usage; Pro $20/mo
  • RenderHeroku-style web services, cron jobs and PostgresHobby $0 + compute; Pro $25/mo + compute

Database and auth

Most AI-built apps need a Postgres database and logins.

  • SupabasePostgres + auth + storage in one; Lovable and Bolt connect to itFree (2 projects, pause after 1 week idle); Pro from $25/mo
  • NeonServerless Postgres with branching, pay for what you useFree (100 projects); paid plans usage-based

Domain name

A real domain for your app.

  • Cloudflare RegistrarDomains at cost with no markupWholesale price per TLD
  • PorkbunCheap domains with free WHOIS privacyVaries by TLD
  • NamecheapPopular registrar with hosting and email add-onsVaries by TLD

Referral link: we may earn a commission at no extra cost to you. It never changes our picks.

Editorial disclosure

Rankings are not for sale. Sponsored placements and affiliate links are always labeled, and they never change our recommendations, quiz results, prices, or comparison data. Links marked "referral" are affiliate links (Netlify): if you buy through them, we may earn a commission at no extra cost to you. Every other link is a plain link that pays us nothing, and pricing source links are never affiliate links. Editorial policy.