Quick answer: MAI Code 2 is Microsoft AI's sparse Mixture-of-Experts enterprise coding model introduced at Microsoft Ignite on November 17, 2026, integrated into GitHub Copilot and Microsoft Foundry. It offers a 1,050,000-token total context window (
922Kinput /128Koutput), five reasoning effort levels, and $1.00 input / $5.00 output standard list pricing ($0.50 / $2.50 promotional pricing through May 17, 2027).
| Field | Value |
|---|---|
| Organization | Microsoft |
| Context window | 1,050,000 tokens (922,000 input / 128,000 output) |
| Architecture | Sparse Mixture-of-Experts (5 reasoning effort levels) |
| Release date | 2026-11-17 |
| Standard pricing | $1.00 input / $5.00 output / $0.05 cached input per 1M tokens |
| Promotional pricing | $0.50 input / $2.50 output / $0.025 cached (through May 17, 2027) |
Microsoft reported an aggregate 63.2% average pass rate at maximum reasoning effort across four internal MSBench coding suites (DeepSWE 1.1, Terminal Bench 2.1, SWE-Atlas, and FrontierCode v1.1), compared in Microsoft's Ignite release against GPT-6.1 Sol (64.1%) and Claude Opus 5.5 (65.3%). Per-benchmark single-harness splits compatible with existing Benchgen competition entities and independent third-party Vals AI runs have not yet been published, so composite MSBench aggregates are excluded from Benchgen leaderboard tables.