# MAI Code 2 Flash

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

MAI Code 2 Flash is the smaller, faster coding model in the MAI Code 2 family, released on 17 November 2026. It is in GitHub Copilot and in a limited...

Canonical URL: https://lmspeed.net/model/mai-code-2-flash
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 Flash is the smaller, faster coding model in the MAI Code 2 family, released on 17 November 2026. It is in GitHub Copilot and in a limited preview on Microsoft Foundry. Microsoft says it will later be released on Open Router, Vercel, Hermes, Open Code, and Kilo. It takes text and images. The model card lists a 922,000 input-token limit, 128,000 output tokens, and a 1,050,000-token context, with reasoning effort of low, medium, high, xhigh, or max. The summary table lists 5B–15B parameters with 12B active. A footnote on the same card says 12 billion active and about 398 billion total. The active count matches. This page does not turn the two total-size figures into one number. GitHub Copilot lists a promotional rate until 2027-05-17: $0.05 input, $0.005 cached input, and $0.25 output per million tokens. From 2027-05-17 the Copilot standard rate is $0.10 input, $0.01 cached input, and $0.50 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. The launch post says that on three everyday coding benchmarks Flash is about even with GPT-6 Luna and Claude Haiku 5.5, at about 65% and 20% of the cost. The post says that cost comparison uses a 50% promotional price. These are Microsoft's comparisons, not LMSpeed tests.

LLM

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

$0.05input / 1M tokens

Output $0.25/1M

Official context window

1.05M

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

## Specifications

[[2]](https://lmspeed.net/model/mai-code-2-flash#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-flash#model-source-2)

Official context window

1.1Mtokens

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

≈ 1.3K pages of text

Reported output limit

128Ktokens

128,000 tokens · [[1]](https://lmspeed.net/model/mai-code-2-flash#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%20Flash)

Reported product launch

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

Active parameters (billions)

12

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 Flash API price?

Official Standard API: input $0.05, output $0.25 per 1M tokens, USD. Standard · USD · Cached input $0.005/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 Flash — LMSpeed, https://lmspeed.net/model/mai-code-2-flash (retrieved 2026-12-04)
