MAI Code 2
Microsoft's larger agentic coding model for debugging, multi-file changes and repository-wide reasoning.
- Capability
- —No ECI score yet
- Input
- $0.50per 1M tokens
- Output
- $2.50per 1M tokens
- Context
- 1.05M128K max output
What it costs
- Input
- $0.50per million tokens
- Output
- $2.50per million tokens
- Cached input
- $0.025per million tokens
- Blended (3:1)
- $1.00pricier than 57% of priced models
Typical monthly bills
| Monthly usage | Estimated cost |
|---|---|
| Side project2M input + 0.5M output tokens | $2.25 |
| Team assistant25M input + 5M output tokens | $25.00 |
| Production app250M input + 50M output tokens | $250.00 |
Published rate from the model provider.
Independent benchmarks
Epoch AI has not published a Capabilities Index score for MAI Code 2 yet.
The details
- Lab
- Microsoft
- Task
- Coding
- Published capabilities
- Mixture-of-experts coding model for long-running engineering tasks and multi-file changes.
- Model size
- 80B active parameters
- Access
- GitHub Copilot
- Billing terms
- Promotional GitHub Copilot token rates until May 17, 2027.
- Released
- Nov 17, 2026
- Context window
- 1,050,000 tokens
- Max output
- 128,000 tokens
- Inputs
- Text, Images
- Output
- Text
- Reasoning
- Always on
- Tool calling
- Yes
- Structured output
- Unconfirmed
- Weights
- Proprietary
More from Microsoft
About MAI Code 2
How much does MAI Code 2 cost?
MAI Code 2 costs $0.50 input / $2.50 output per million tokens (official GitHub Copilot API price). Cached input is $0.025 per million tokens. At a 3:1 input-to-output mix that is $1.00 per million tokens, more expensive than 57% of the 472 priced models we track.
What is the context window of MAI Code 2?
MAI Code 2 accepts up to 1,050,000 tokens per request and can write up to 128,000 tokens in one response.
How good is MAI Code 2?
Epoch AI has not published a Capabilities Index score for MAI Code 2 yet.
Is MAI Code 2 open source?
No. MAI Code 2 is proprietary; you use it through an API or partner platforms.
What inputs does MAI Code 2 support?
MAI Code 2 accepts text and images. Mixture-of-experts coding model for long-running engineering tasks and multi-file changes.
When was MAI Code 2 released?
Microsoft released MAI Code 2 on Nov 17, 2026.
What are the best alternatives to MAI Code 2?
The closest current models from other labs on capability, price and release date are Hy4 (Tencent, $0.834 / $2.50), Pareto 26.10 (Unbiased, $0.80 / $3.20), openPangu 2.0 Pro (Huawei, $0.48 / $2.17) and Motif 3 (Motif Technologies, $0.50 / $2.00).