MAI Code 2 is a coding model from Microsoft AI, announced together with MAI Code 2 Flash. Microsoft AI's launch announcement centers on price-performance for everyday enterprise coding, claiming quality comparable to Claude Opus 5.5 at a stated 5% of the cost. The model is built for routine enterprise coding work such as taking code to production, deep debugging, multi-file implementation, repo-wide reasoning, and UI or visual coding, and Microsoft says it is not yet tuned for fundamental science research or long-horizon agentic work.
- Multimodal model
- Accepts images
- 1.1M context
- Reasoning
- Tools
How it compares
Additional source evidence
- Source model
- microsoft/mai-code-2
- Source family
- mai-code
- 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",
"name": "MAI Code 2",
"description": "Microsoft's larger agentic coding model for debugging, multi-file changes and repository-wide reasoning",
"family": "mai-code",
"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 has a 1.1M token context window. It can write up to 128K output tokens per response.
Yes, MAI Code 2 accepts images as input alongside text.
Yes, MAI Code 2 supports tool calling (function calling), so it can request calls to tools you define.
Yes, MAI Code 2 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 vs Ultramarine 1 FlashGPT-6 Astra HealthcareMAI Code 2 vs GPT-6 Astra HealthcareGPT-6.1 Sol HealthcareMAI Code 2 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 by that measure.
Versions and lineage
Both have a 1.1M token context window.
Licensing and access
No, MAI Code 2 is a closed model: Microsoft AI has not published its weights, so it is available only through APIs and apps.
Basics
MAI Code 2 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.