MAI Code 2
by Microsoft · Nov 17, 2026
MAI Code 2 is a proprietary reasoning llm from Microsoft, released Nov 17, 2026. It has a 1.1M-token context window and accepts text, image input. API pricing starts at $0.5 per million input tokens and $2.50 per million output tokens.
- Provider
- Microsoft
- Released
- Nov 17, 2026
- Type
- Reasoning LLM
- Parameters
- Undisclosed
- Context window
- 1,050,000 tokens
- Max output
- 128,000 tokens
- Input
- text, image
- Output
- text
- Weights
- Closed
- License
- Proprietary
- Knowledge cutoff
- —
- Status
- Available via API
About MAI Code 2
Microsoft's larger agentic coding model for debugging, multi-file changes and repository-wide reasoning
Where to run MAI Code 2 — API providers & pricing
| Provider | Input $/1M | Output $/1M | Cached input | Context |
|---|---|---|---|---|
| GitHub Copilot | $0.5 | $2.50 | $0.025 | 1.1M |
MAI Code 2 vs alternatives
- MAI Code 2 vs Qwen3.6 Plus
- MAI Code 2 vs Mistral Large 4
- MAI Code 2 vs Qwen3.7 Plus
- MAI Code 2 vs Gemini 3.8 Flash
- MAI Code 2 vs Gemini 3.7 Flash
- MAI Code 2 vs GPT-5.4 mini
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| Qwen3.6 Plus | Alibaba (Qwen) | Apr 2026 | — | 1M | $0.5 | $3 | 148.9 |
| Mistral Large 4 | Mistral AI | Oct 2026 | 1.1T | 1M | $0.7 | $2.10 | 154.6 |
| Qwen3.7 Plus | Alibaba (Qwen) | Jun 2026 | — | 1M | $0.4 | $1.60 | 147.9 |
| Gemini 3.8 Flash | Google DeepMind | Sep 2026 | — | 1M | $0.75 | $3.75 | 158.8 |
| Gemini 3.7 Flash | Google DeepMind | Aug 2026 | — | 1M | $0.75 | $3.75 | 158.4 |
| GPT-5.4 mini | OpenAI | Mar 2026 | — | 400K | $0.75 | $4.50 | 149.4 |
| GPT-6.1 Terra | OpenAI | Oct 2026 | — | 1.1M | $1 | $5 | 167.7 |
| Muse Spark 1.1 | Meta | Apr 2026 | — | 1M | $1.25 | $4.25 | 154.9 |
More models from Microsoft
All Microsoft models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| Phi 4open | Dec 2024 | 15B | 16K | $0.07 | $0.14 |
| Phi-2open | Dec 2023 | 2.8B | — | — | — |
| Phi-1.5open | Sep 2023 | 1.4B | — | — | — |
| Phi 4 Miniopen | Feb 2025 | 3.8B | 8K | $0.17 | $0.68 |
| Florence-2-baseopen | Jun 2024 | 232M | — | — | — |
| harrier-oss-v1-0.6bopen | Mar 2026 | 596M | — | — | — |
| harrier-oss-v1-270mopen | Mar 2026 | 268M | — | — | — |
| Phi-4-reasoning-vision-15Bopen | Jan 2026 | 15B | — | — | — |
Frequently asked questions
Who made MAI Code 2?
MAI Code 2 was developed by Microsoft (United States). It was released on Nov 17, 2026.
What is the context window of MAI Code 2?
MAI Code 2 supports a context window of 1,050,000 tokens (1.1M) and can generate up to 128,000 output tokens per response.
How much does MAI Code 2 cost?
MAI Code 2 costs $0.5 per 1M input tokens and $2.50 per 1M output tokens, with cached input at $0.025 per 1M. Prices vary across the 1 providers that serve it.
Is MAI Code 2 open source?
No. MAI Code 2 is a proprietary model available only through its provider's API and apps.
Where can I use MAI Code 2?
MAI Code 2 is available via 1 API provider.
Sources: models.dev. Last updated 2026-11-22.