MAI Code 2 Flash is a coding model from Microsoft AI, introduced alongside MAI Code 2 as one of two new models built for everyday enterprise coding tasks. Microsoft AI says it offers performance comparable to GPT-6 Luna and Claude Haiku 5.5 at a fraction of the cost of competing models. It is built for high-volume work such as code explanations, targeted edits, routine fixes and rapid iterations, and the maker says it is not yet tuned for harder problems like fundamental science research or very long-horizon agentic work.
- Multimodal model
- Accepts images
- 1.1M context
- Reasoning
- Tools
How it compares
LightweightThe lab's smallest, cheapest and lowest-latency hosted line, built for high volume and simple tasks.
Add the models you use to see how this one compares.
Sign inAdditional source evidence
- Source model
- microsoft/mai-code-2-flash
- Source family
- mai-code-flash
- Last updated
- 2026-11-17
- Model context
- 1.1M
- Maximum input
- 922K
- Model output limit
- 128K
- Open weights
- No
- File attachments
- Yes
- Reasoning
- Yes
- Tool calling
- Yes
- Temperature control
- No
Official references
Complete source record (JSON)
{
"id": "microsoft/mai-code-2-flash",
"name": "MAI Code 2 Flash",
"description": "Microsoft's lightweight coding model for explanations, targeted edits and routine fixes at high volume",
"family": "mai-code-flash",
"last_updated": "2026-11-17",
"attachment": true,
"reasoning": true,
"tool_call": true,
"temperature": false,
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
},
"limit": {
"context": 1050000,
"input": 922000,
"output": 128000
},
"release_date": "2026-11-17",
"open_weights": false,
"links": [
{
"url": "https://microsoft.ai/news/introducing-mai-code-2-and-mai-code-2-flash/",
"label": "Announcement",
"type": "announcement"
}
]
}Frequently asked questions
Capabilities and specs
MAI Code 2 Flash has a 1.1M token context window. It can write up to 128K output tokens per response.
Yes, MAI Code 2 Flash accepts images as input alongside text.
Yes, MAI Code 2 Flash supports tool calling (function calling), so it can request calls to tools you define.
Yes, MAI Code 2 Flash has a reasoning mode.
Quality and benchmarks
Similar models from other labs include Ultramarine 1 Flash (Paperinstruments), GPT-6 Astra Healthcare (OpenAI) and GPT-6.1 Sol Healthcare (OpenAI). They are the closest matches by kind and release date.
Ultramarine 1 FlashMAI Code 2 Flash vs Ultramarine 1 FlashGPT-6 Astra HealthcareMAI Code 2 Flash vs GPT-6 Astra HealthcareGPT-6.1 Sol HealthcareMAI Code 2 Flash vs GPT-6.1 Sol Healthcare
Kimi K3 is the highest-ranked open-weight model on Arena Text (#22), so it is the strongest open alternative to MAI Code 2 Flash by that measure.
Versions and lineage
Both have a 1.1M token context window.
Licensing and access
No, MAI Code 2 Flash is a closed model: Microsoft AI has not published its weights, so it is available only through APIs and apps.
Basics
MAI Code 2 Flash was made by Microsoft AI. It was released on November 17, 2026.
Generated from Vertical Tabs data, updated November 25, 2026.

Discussion
No comments yet
Be the first to share your thoughts.