MAI Code 2 in GitHub Copilot: what it costs and when to pick it

Summary

MAI Code 2 is now the cheapest powerful model in GitHub Copilot, with promotional per-token prices that are a quarter of Claude Sonnet 5.5 or GPT-6.2 Sol and an eighth of Claude Opus 5.5 until May 17, 2027, after which its price doubles but stays half of Sonnet/Sol while Flash matches Haiku 5.5 and GPT-6 Luna. Copilot bills in AI credits at $0.01 each, and Business/Enterprise default model enablement means the new GA models are likely already selectable unless admins disable them; the included credit pools make model choice visible, since a sample agent session costs roughly 29 credits on promo MAI Code 2, 59 after the promo, 117 on Sonnet/Sol, and 234 on Opus. Microsoft's benchmark claims are vendor-run on mostly internal infrastructure and use promotional pricing, so treat them as a reason to test rather than a settled ranking. Use MAI Code 2 for everyday multi-file edits, reproducible debugging, refactors, and frontend work, keep a frontier model for long agent runs and hard design problems, and budget for the May 2027 price change.

MAI Code 2 is now the cheapest "powerful" model in GitHub Copilot's price list. Per token it costs a quarter of what Claude Sonnet 5.5 or GPT-6.2 Sol cost there, and an eighth of Claude Opus 5.5. Two catches matter before you switch your team over: those prices are a 50% launch promotion that ends on May 17, 2027, and Microsoft's headline claim that it matches Opus "at just 5% of the cost" is calculated with the promotional price. Also, if you run Copilot Business or Enterprise with default settings, your developers can probably pick it already.

What Microsoft shipped

Microsoft announced two models at Ignite on November 17, 2026, and GitHub made them available in Copilot the same day. In Microsoft's announcement, MAI Code 2 is aimed at "taking code to production, deep debugging, multi-file implementation, repo-wide reasoning, and UI", and MAI Code 2 Flash at "high-volume work such as code explanations, targeted edits, routine fixes, and rapid iterations". The post also says plainly that they're "not yet tuned for harder problems, like fundamental science research and very long-horizon agentic work". Few vendors say that about their own models, and it's worth taking at face value.

According to GitHub's changelog entry, MAI Code 2 is available on Copilot Pro, Pro+, Max, Business and Enterprise. Flash is also listed for Free and Student, but GitHub's billing docs say those two plans reach models "through auto model selection only", so there you get Flash when auto selection picks it, not from the picker. You can select both models in VS Code, Visual Studio, JetBrains, Xcode, Eclipse, the Copilot CLI, the cloud agent, the Copilot app, github.com and GitHub Mobile. GitHub's supported models page lists both as GA, not preview.

This is Microsoft's third coding model in Copilot. MAI-Code-1-Flash arrived in June 2026, followed by MAI-Code-1.1-Flash, which is still in the price list. The new release adds the first non-Flash model.

What it costs in Copilot's AI credits

Copilot now bills model use in AI credits, and one credit is $0.01. Each plan includes a monthly allowance: 1,500 credits on Pro, 7,000 on Pro+, 20,000 on Max, and 1,900 per user on Business (pooled across the organization). Each request is charged at the model's per-token rate. Code completions and next-edit suggestions don't use credits. Here are the prices from GitHub's models and pricing reference for the MAI models and the models people will compare them with, in USD per million tokens:

Model Input Cached input Output
MAI Code 2 (promo until May 17, 2027) $0.50 $0.025 $2.50
MAI Code 2 (after the promo) $1.00 $0.05 $5.00
MAI Code 2 Flash (promo until May 17, 2027) $0.05 $0.005 $0.25
MAI Code 2 Flash (after the promo) $0.10 $0.01 $0.50
Claude Haiku 5.5 / GPT-6 Luna $0.10 $0.01 $0.50
Claude Sonnet 5.5 / GPT-6.2 Sol $2.00 $0.10 $10.00
Claude Opus 5.5 $4.00 $0.20 $20.00

Look at the Flash row first. After the promo, MAI Code 2 Flash costs exactly what Claude Haiku 5.5 and GPT-6 Luna cost. Its price advantage over the other small models is the promotion and nothing else. MAI Code 2 keeps a real gap after May: at $1/$5 it's still half the per-token price of Sonnet 5.5 and GPT-6.2 Sol.

Per-token prices are hard to picture, so here's a short script that converts them into credits for one agent session. The session shape is an assumption, not a measurement: 2 million input tokens across all turns (agent mode resends the conversation and file context each turn, so input dominates), 85% of them served from cache, and 40,000 output tokens. To try your own numbers, change the three constants.

# Per-session cost in GitHub Copilot AI credits (1 credit = $0.01).
# Prices: USD per 1M tokens (input, cached input, output) from
# docs.github.com/en/copilot/reference/copilot-billing/models-and-pricing
PRICES = {
    "MAI Code 2 (promo)":       (0.50, 0.025, 2.50),
    "MAI Code 2 (from May 17)": (1.00, 0.05,  5.00),
    "MAI Code 2 Flash (promo)": (0.05, 0.005, 0.25),
    "Claude Haiku 5.5":         (0.10, 0.01,  0.50),
    "GPT-6 Luna":               (0.10, 0.01,  0.50),
    "GPT-6.2 Sol":              (2.00, 0.10, 10.00),
    "Claude Sonnet 5.5":        (2.00, 0.10, 10.00),
    "Claude Opus 5.5":          (4.00, 0.20, 20.00),
}

# Example agent session (an assumption, not a measurement):
# 2M input tokens across all turns, 85% of them served from cache,
# 40k output tokens.
INPUT, CACHED_SHARE, OUTPUT = 2_000_000, 0.85, 40_000


def credits(inp, cached, out):
    fresh = INPUT * (1 - CACHED_SHARE)
    hit = INPUT * CACHED_SHARE
    usd = (fresh * inp + hit * cached + OUTPUT * out) / 1_000_000
    return usd * 100


print(f"{'model':<26}{'credits':>8}{'per 1,900':>11}")
for name, p in PRICES.items():
    c = credits(*p)
    print(f"{name:<26}{c:>8.1f}{int(1900 // c):>11}")

Running it with Python 3.15.0 prints:

model                      credits  per 1,900
MAI Code 2 (promo)            29.2         64
MAI Code 2 (from May 17)      58.5         32
MAI Code 2 Flash (promo)       3.4        567
Claude Haiku 5.5               6.7        283
GPT-6 Luna                     6.7        283
GPT-6.2 Sol                  117.0         16
Claude Sonnet 5.5            117.0         16
Claude Opus 5.5              234.0          8

The last column is how many sessions like that fit into one Business seat's monthly 1,900 credits. Sixteen sessions a month on Sonnet 5.5 or GPT-6.2 Sol is less than one a working day. On MAI Code 2 it's 64 now and 32 after the promo. That's why model choice now shows up on your Copilot bill: Business and Enterprise have additional usage "enabled by default", so once the pool runs out, usage continues and gets billed at the per-credit rate.

The script leaves out two things. First, it ignores the cache-write charges the pricing table lists for Anthropic and GPT-6-series models, so their real figures come out a little higher. Second, it gives every model the same token count, which real sessions don't: a model that needs more turns to finish a task burns more input. Paid plans also get 10% off model costs when you use auto model selection.

Reading the benchmark claims

Microsoft says MAI Code 2 delivers "98% of the performance of GPT-6.1 Sol at 40% of the cost, and 96% of Claude Opus 5.5's performance at just 5% of the cost". The footnotes add the context. The score is an average over four benchmarks: DeepSWE 1.1, Terminal Bench 2.1, SWE-Atlas and FrontierCode v1.1. Three of them ran on MSBench, which Microsoft describes as its "internal eval platform", using the Copilot CLI without subagents, and every model ran at maximum reasoning effort. The cost figures use "its 50% promotional price".

Two things follow from that. The cost ratios are per task, not per token. At list price MAI Code 2 is one-eighth of Opus 5.5 per token, so getting to 5% means it also used fewer tokens in Microsoft's runs. And since those ratios rest on the promo price, after May 17, 2027 the same runs would show roughly 10% of Opus's cost and 80% of GPT-6.1 Sol's. That's still cheap, but the gap to Sol becomes small. These are vendor numbers on mostly vendor infrastructure; Microsoft itself says results "vary by workload, model configuration, reasoning effort, and pricing assumptions". Read them as a reason to run your own trial, not as a settled ranking.

Turning it on or off for an organization

On Pro, Pro+ and Max there's nothing to configure. The models are in the picker. For Business and Enterprise, the changelog says: "Under default model enablement, new models are enabled automatically unless an administrator has turned off the global default or explicitly disables the model."

The policy behind that is Default availability for released models. It applies to new GA models, and both MAI models are GA. Organization owners can override it per model under Settings, then Copilot, then Models. Enterprise owners do it under AI controls, then Copilot, then Configure models, and can set each model to Enabled, Disabled, or delegate the choice to organizations. If your company keeps a list of approved model vendors for code, check this page now rather than assume new models are off.

If you're on a legacy annual Pro or Pro+ plan that still uses request-based billing, the model multipliers table charges MAI Code 2 at 1 premium request and Flash at 0.33.

When to pick it

Use MAI Code 2 for the everyday work Microsoft built it for: multi-file changes, debugging with a clear reproduction, refactors, and frontend work. On those tasks the price gap is large enough that a team defaulting to Sonnet- or Sol-class models will feel it in their credit pool. Keep a frontier model for long agent runs and hard design problems, since Microsoft says MAI Code 2 isn't tuned for those. For Flash, the choice is less clear-cut. It's the cheapest option in the table until May 2027, but after that it costs the same as Haiku 5.5 and GPT-6 Luna, so pick between those three on quality, not price.

Whatever you choose, plan around the May 17, 2027 date. If you budget against today's MAI Code 2 price, the same usage costs twice as much from that day.

GITHUB COPILOT MAI CODE 2 MAI CODE 2 FLASH COPILOT AI CREDITS COPILOT PRICING AI CODING MODELS

  RELATED

  COMMENTS

0

No comment for this article.