MAI Code 2 Flash
by Microsoft · Nov 17, 2026
MAI Code 2 Flash 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.05 per million input tokens and $0.25 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 Flash
Microsoft's lightweight coding model for explanations, targeted edits and routine fixes at high volume
Where to run MAI Code 2 Flash — API providers & pricing
| Provider | Input $/1M | Output $/1M | Cached input | Context |
|---|---|---|---|---|
| GitHub Copilot | $0.05 | $0.25 | $0.005 | 1.1M |
MAI Code 2 Flash vs alternatives
- MAI Code 2 Flash vs Claude Haiku 5.5
- MAI Code 2 Flash vs GPT-6 Luna
- MAI Code 2 Flash vs Muse Spark 1.3 Contributor
- MAI Code 2 Flash vs Muse Spark 1.2
- MAI Code 2 Flash vs LongCat-2.5
- MAI Code 2 Flash vs Claude Haiku 5.5 (batch)
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| Claude Haiku 5.5 | Anthropic | Oct 2026 | — | 1M | $0.1 | $0.5 | 160.3 |
| GPT-6 Luna | OpenAI | Sep 2026 | — | 1.1M | $0.1 | $0.5 | 156.4 |
| Muse Spark 1.3 Contributor | Meta | Sep 2026 | — | 1M | $0.1 | $0.2 | 158.2 |
| Muse Spark 1.2 | Meta | Aug 2026 | — | 1M | $0.1 | $0.2 | 155.0 |
| LongCat-2.5 | Meituan (LongCat) | Nov 2026 | 1.8T | 1M | — | — | — |
| Claude Haiku 5.5 (batch) | Anthropic | Oct 2026 | — | 1M | $0.05 | $0.25 | — |
| GPT-6 Luna Pro (batch) | OpenAI | Sep 2026 | — | 1.1M | $0.05 | $0.25 | — |
| Liquid Auto | Liquid AI | Oct 2026 | — | 10M | — | — | — |
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 Flash?
MAI Code 2 Flash was developed by Microsoft (United States). It was released on Nov 17, 2026.
What is the context window of MAI Code 2 Flash?
MAI Code 2 Flash 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 Flash cost?
MAI Code 2 Flash costs $0.05 per 1M input tokens and $0.25 per 1M output tokens, with cached input at $0.005 per 1M. Prices vary across the 1 providers that serve it.
Is MAI Code 2 Flash open source?
No. MAI Code 2 Flash is a proprietary model available only through its provider's API and apps.
Where can I use MAI Code 2 Flash?
MAI Code 2 Flash is available via 1 API provider.
Sources: models.dev. Last updated 2026-11-22.