MAI Code 2
Compare MAI Code 2 with another model
Choose a model to open its comparison page.
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.
Specifications
[2]- Model weights
- Closed / proprietary
Technical Details
- Released
- Nov 2026
- Reported product launch
- 2026-11-17 · Model card · Microsoft[2]
- Input modalities
- text / image
- Output modalities
- text
- reasoning_effort takes effect
- Yes
- reasoning_effort
- low / medium / high / xhigh / max
