MAI Code 2
New dropReleased Nov 17, 2026; Microsoft's frontier agentic coding model with a 1M-token context window, reaching 98% of GPT-6.1 Sol coding quality at 40% of the price and 96% of Claude Opus 5.5 at 5% of the cost; 84.6% on Terminal-Bench 2.1 and 73.2% on DeepSWE 1.1 (max reasoning effort, GitHub Copilot CLI harness, self-reported). The $0.50/$2.50 price is a promotional rate through May 17, 2027; the later rate is $1/$5.
- Context
- 1,050,000
- tokens
- Architecture
- 77B active
- 3B embedded, ~2.8T total
- Lab price
- $0.50 in$2.50 out
- per 1M tokens
- License
- Microsoft Foundry/ Enterprise AI Services Code of Conduct
Published benchmarks, lab reported
Figures published by the lab, not reproduced independently.
curl -s https://modelregistry.tirup.in/api/cli?model=mai-code-2Sources3 sources · checked Nov 19, 2026
Every displayed field is traced to a primary source. What this means
- MAI Code 2 and MAI Code 2 Flash: Everyday coding at scalable prices · Announcement · checked 2026-11-19
- MAI Code 2 and MAI Code 2 Flash Model Card · Model card · checked 2026-11-19
- Models and pricing for GitHub Copilot (MAI Code 2 usage-based rates) · Documentation · checked 2026-11-19
Where each fact comes from
- Release date MAI Code 2 model card: release date 17 November 2026
- Context window MAI Code 2 model card: context length 1,050,000 tokens (922,000 input limit)
- Maximum output MAI Code 2 model card: 128,000 output tokens limit
- Architecture MAI Code 2 model card: 77B active, 3B embedded, ~2.8T total parameters
- License MAI Code 2 model card: Microsoft Foundry terms and Enterprise AI Services Code of Conduct
- Pricing GitHub Copilot pricing: MAI Code 2 at $0.50 input / $2.50 output per 1M tokens (usage-based)
- Modalities MAI Code 2 model card: text and image inputs, text output
- Flagship status MAI Code 2: the model card calls MAI Code 2 the larger frontier model of the MAI Code 2 family
- Latest release status MAI Code 2: the model card is dated 17 November 2026 and describes MAI Code 2 as Microsoft's newest coding model family
- Benchmarks MAI Code 2: the model card's table gives Terminal-Bench 2.1 84.6% and DeepSWE 1.1 73.2% at max reasoning effort
Badge New drop is a laboratory designation. Restates the laboratory's own positioning or release status.
Cite this record
ModelRegistry, "MAI Code 2" datasheet, dataset revision 2026.11.20-r4, revised 2026-11-20, https://modelregistry.tirup.in/models/mai-code-2Where it ranks
Not ranked yet. Its published scores cannot join a comparison table:
Artificial Analysis has not published a result for this model: No Artificial Analysis page exists for MAI Code 2 and the model list names no Microsoft MAI model, so the evaluator has published no result for it. Searched Nov 19, 2026, and re-checked weekly. The page checked.
- Terminal-Bench 84.6% (Terminal-Bench 2.1, max effort): Fewer than 4 tracked models report Terminal-Bench (Terminal-Bench 2.1, max effort), so no rank is computed.
A missing rank means the evidence is missing, not that the model is weak. Leaders by task.
Common questions
How much does MAI Code 2 cost?
MAI Code 2 lists at $0.50 per 1M input tokens and $2.50 per 1M output tokens, according to the price published by Microsoft. Cached, batch and committed-throughput tiers are billed differently and are not included in that figure.
What is the context window of MAI Code 2?
MAI Code 2 accepts 1,050,000 tokens of context, with a maximum output of 128,000 tokens. Both figures are as published by Microsoft.
Is MAI Code 2 open source or open weights?
No. MAI Code 2 is a closed model available through Microsoft's API under Microsoft Foundry / Enterprise AI Services Code of Conduct; the weights are not published.
When was MAI Code 2 released?
MAI Code 2 was released on Nov 17, 2026 (2026-11-17) and the record's sources were last checked on 2026-11-19.
Head-to-head comparisons
Alternatives to MAI Code 2: cheaper, stronger and open-weight options