MAI Code 2 Flash
Summary
MAI Code 2 Flash is a proprietary language model from Microsoft, released on 17 Nov 2026. It accepts text and images and generates text, with a 1.1M-token context window and up to 128K output tokens per response.
Microsoft's lightweight coding model for explanations, targeted edits and routine fixes at high volume
Last verified 19 Nov 2026. Every figure on this page links to its source.
Specifications
| Developer | Microsoft |
|---|---|
| Release date | 17 Nov 2026 [models.dev] |
| Status | Generally available [models.dev] |
| Weights | Proprietary (API only) [models.dev] |
| Context window | 1.1M (1,050,000 tokens) [models.dev] |
| Max output | 128K tokens [models.dev] |
| Input | Text and images [models.dev] |
| Output | Text [models.dev] |
| Reasoning mode | Yes [models.dev] |
| Tool calling | Yes [models.dev] |
| Structured output | Yes [models.dev] |
MAI Code 2 Flash API pricing by provider
USD per million tokens. Sorted by input price.
We do not currently track a paid API listing for this model.
Frequently asked questions
What is the context window of MAI Code 2 Flash?
MAI Code 2 Flash has a context window of 1,050,000 tokens (1.1M) and can generate up to 128,000 tokens in a single response, according to models.dev.
Is MAI Code 2 Flash open source?
No. MAI Code 2 Flash is a proprietary model; Microsoft has not released its weights.
When was MAI Code 2 Flash released?
Microsoft released MAI Code 2 Flash on 17 Nov 2026, according to models.dev.
Similar models from other labs
Comparable on output type, weights, release date, price and context window. Prices are the lowest listed, USD per million tokens.
| Model | Lab | Released | Context | Input $/1M | Output $/1M | Weights |
|---|---|---|---|---|---|---|
| GPT-6.2 Astra | OpenAI | 17 Nov 2026 | 1.1M | $8 | $40 | Closed |
| GPT-6.2 Astra Pro | OpenAI | 17 Nov 2026 | 1.1M | $8 | $40 | – |
| Gemini 4 Neon | Google DeepMind | 18 Nov 2026 | 1M | $3 | $15 | Closed |
| Gemini 4 Hydrogen | Google DeepMind | 12 Nov 2026 | 1M | $1.50 | $7.50 | Closed |
| Muse Ember | Meta | 9 Nov 2026 | 1M | $0.10 | $0.50 | Closed |
| Qwen4 Max | Alibaba (Qwen) | 16 Nov 2026 | 1M | $1.41 | $4.24 | Closed |
Change history
- Added to the directory