# MAI Code 2

> Source: LMSpeed (https://lmspeed.net) — https://lmspeed.net/model/mai-code-2. When citing or reusing this content, credit "LMSpeed" and link to https://lmspeed.net/model/mai-code-2.

MAI Code 2 is Microsoft's larger coding model in the MAI Code 2 family, released on 17 November 2026. It is in GitHub Copilot. Microsoft says Code 2 Flash...

Canonical URL: https://lmspeed.net/model/mai-code-2
Last updated: 2026-11-18

Reproduction and quotation must name LMSpeed, link to the canonical HTML URL, and retain individual source citations.

MAI Code 2 is Microsoft's larger coding model in the MAI Code 2 family, released on 17 November 2026. It is in GitHub Copilot. Microsoft says Code 2 Flash is in a limited Foundry preview, and that both models will later be released on Open Router, Vercel, Hermes, Open Code, and Kilo. The model card says both models take text and images, with a 922,000 input-token limit, 128,000 output tokens, and a 1,050,000-token context. Reasoning effort can be low, medium, high, xhigh, or max. The card's summary table lists Code 2 as 50B–100B parameters with 80B active. A footnote on the same card says 77 billion active, 3 billion embedded, and about 2.8 trillion total. This page quotes both and does not choose one. GitHub Copilot lists a promotional rate until 2027-05-17: $0.50 input, $0.025 cached input, and $2.50 output per million tokens. From 2027-05-17 the Copilot standard rate is $1.00 input, $0.05 cached input, and $5.00 output per million tokens. This is the GitHub Copilot rate, not an Azure Foundry price and not a general API catalog price. Foundry has not published a dollar price per million tokens. The price row on this page is the current Copilot promotional rate. On the launch post, Code 2 averages 98% of GPT-6.1 Sol on four everyday coding benchmarks at about 40% of the cost, and 96% of Claude Opus 5.5 at about 5% of the cost. The post says the Artificial Analysis cost comparison uses a 50% promotional price. In a blind frontend test, reviewers preferred it over GPT-6 Sol 64% of the time. These are Microsoft's comparisons, not LMSpeed tests.

LLM

Official API price[[1]](https://lmspeed.net/model/mai-code-2#model-source-1)

$0.50input / 1M tokens

Output $2.50/1M

Official context window

1.05M

1,050,000[[1]](https://lmspeed.net/model/mai-code-2#model-source-1)

## Specifications

[[2]](https://lmspeed.net/model/mai-code-2#model-source-2)

Model weights

Closed / proprietary

License

[Microsoft Product Terms and Enterprise AI Services Code of Conduct](https://lmspeed.net/model/license/microsoft-product-terms-and-enterprise-ai-services-code-of-conduct)[[2]](https://lmspeed.net/model/mai-code-2#model-source-2)

Official context window

1.1Mtokens

1,050,000 tokens · [[1]](https://lmspeed.net/model/mai-code-2#model-source-1)

≈ 1.3K pages of text

Reported output limit

128Ktokens

128,000 tokens · [[1]](https://lmspeed.net/model/mai-code-2#model-source-1)

8K128K1M4M

1.1M

### Technical Details

Released

Nov 2026

Documentation

[Documentation](https://docs.github.com/en/copilot/reference/copilot-billing/models-and-pricing)[Ollama](https://ollama.com/search?q=MAI%20Code%202)

Reported product launch

2026-11-17 · Model card · Microsoft[[2]](https://lmspeed.net/model/mai-code-2#model-source-2)

Input modalities

text / image

Output modalities

text

reasoning_effort takes effect

Yes

reasoning_effort

low / medium / high / xhigh / max

## Frequently Asked Questions

### What is the MAI Code 2 API price?

Official Standard API: input $0.50, output $2.50 per 1M tokens, USD. Standard · USD · Cached input $0.025/1M tokens

## Sources & notes

- [1]

[Official · publisher](https://docs.github.com/en/copilot/reference/copilot-billing/models-and-pricing)Checked: 2026-11-18

- [2]

[Official model documentation · Microsoft · Model license](https://microsoft.ai/pdf/MAI-Code-2-And-MAI-Code-2-Flash-Model-Card.pdf?v=3)Checked: 2026-11-18

- [3]

[LMSpeed methodology](https://lmspeed.net/methodology)

---
Cite as: MAI Code 2 — LMSpeed, https://lmspeed.net/model/mai-code-2 (retrieved 2026-12-04)
