# MAI Code 2 — Microsoft's coding model at 40% of GPT-6.1 Sol's cost

> Microsoft AI ships two coding models, built for Copilot, that claim near-frontier scores at a fraction of the cost.

- Org: Microsoft AI
- Date: 2026-11-17
- Category: model, tool
- Source: https://microsoft.ai/news/introducing-mai-code-2-and-mai-code-2-flash/
- Canonical page: https://ai-tldr.dev/releases/microsoft-mai-code-2/

## In short

MAI Code 2 and MAI Code 2 Flash are Microsoft's new coding models, live in GitHub Copilot. Microsoft says Code 2 reaches 98% of GPT-6.1 Sol's score at 40% of its cost, at a 50% launch discount.

## What it is

MAI Code 2 is Microsoft's coding model for everyday enterprise work: taking code to production, deep debugging, multi-file changes, repo-wide reasoning and UI work. MAI Code 2 Flash is the lighter sibling for high-volume jobs such as code explanations, targeted edits and routine fixes.

## How it works

Microsoft tested both models on DeepSWE 1.1, Terminal Bench 2.1, SWE-Atlas and FrontierCode v1.1 at max reasoning effort, and reports scores relative to rival models averaged across those four. Microsoft says MAI Code 2 Flash performs comparably to GPT-6 Luna and Claude Haiku 5.5 at about one-fifth the cost of Haiku.

## Why it matters

Teams that pay for coding agents by the token get a first-party option that Microsoft says is much cheaper than the leading models. The prices are half-price launch prices, so the real cost after the promotion is not yet known.

## Who it's for

Teams using GitHub Copilot and coding-agent builders

## Try it

Pick MAI Code 2 in GitHub Copilot's model list

## Quick facts

- Maker: Microsoft AI
- Models: MAI Code 2 and MAI Code 2 Flash
- Benchmarks used: DeepSWE 1.1, Terminal Bench 2.1, SWE-Atlas, FrontierCode v1.1
- Availability: GitHub Copilot now; Code 2 Flash in limited preview on Microsoft Foundry
- Coming soon: OpenRouter, Vercel, Hermes, Open Code, Kilo
- Pricing: Shown at a 50% promotional price; no per-token rate published

## FAQ

### Where can I use MAI Code 2 today?

MAI Code 2 and MAI Code 2 Flash are available in GitHub Copilot now. Microsoft says MAI Code 2 Flash is in limited-access preview in Microsoft Foundry. Microsoft also lists OpenRouter, Vercel, Hermes, Open Code and Kilo as coming soon.

### How much does MAI Code 2 cost?

Microsoft has not published a per-token price for MAI Code 2 in its launch post. It states costs only relative to rivals: about 40% of GPT-6.1 Sol's cost and about 5% of Claude Opus 5.5's. Both models are shown at a 50% promotional price.

### How does MAI Code 2 compare with GPT-6.1 Sol and Claude Opus 5.5?

Microsoft says MAI Code 2 reaches 98% of GPT-6.1 Sol's performance and 96% of Claude Opus 5.5's, averaged over four benchmarks run at max reasoning effort. In blind frontend evaluations with 258 annotators, reviewers preferred MAI Code 2 over GPT-6 Sol 67% of the time.

### Are MAI Code 2 weights open?

Microsoft's MAI Code 2 launch post does not say the weights are open. A separate Microsoft offer, MAI Licensed Weights, lets customers customize frontier MAI models in their own Azure environment, but the post does not tie it to MAI Code 2.

## Links

- [Announcement](https://microsoft.ai/news/introducing-mai-code-2-and-mai-code-2-flash/)
- [Model Page](https://microsoft.ai/models/mai-code-2/)
- [Ignite Models Roundup](https://microsoft.ai/news/microsoft-ignite-2026/)
