MAI Code 2 is Microsoft AI's coding model, released with a cheaper MAI Code 2 Flash on 17 November 2026. In Microsoft's own tests it averaged a 63.2% pass rate across four coding benchmarks at $0.309 per task. In GitHub Copilot it costs $0.50 per million input tokens and $2.50 per million output tokens until 17 May 2027, then the price doubles.
Visit MAI Code 2AI-Powered
Leverages advanced AI technology to deliver cutting-edge capabilities and results.
Fast & Efficient
Optimized performance ensures quick results without compromising on quality.
Purpose-Built
Specifically designed for coding tasks and workflows.
Microsoft AI Model Timeline
Specifications
AI Evaluation
Strong value on Microsoft's own tests, a few points behind GPT-6.1 Sol and Claude Opus 5.5 at a fraction of the cost per task. Almost every figure is vendor-run and the promotional price ends in May 2027.
Pros
- $0.309 average cost per task in Microsoft's tests versus $0.761 for GPT-6.1 Sol
- 63.2% average pass rate across four coding benchmarks
- Cheaper Flash variant at $0.05 input and $0.25 output per million tokens
Cons
- Benchmarks are vendor-run and exclude models released the same week
- Price doubles on 17/05/2027
- Trails GPT-6.1 Sol (64.1%) and Claude Opus 5.5 (65.3%)
Related Tools
GitHub Copilot
GitHub Copilot is Microsoft's AI pair programmer, built into VS Code, JetBrains IDEs and GitHub.com. It offers inline code completion, a chat interface, an autonomous coding agent and support for multiple underlying models including GPT and Claude, making it one of the most widely deployed AI coding assistants.
Windsurf
Windsurf (formerly Codeium) is an agentic AI code editor built around its 'Cascade' flow for multi-step, multi-file coding. It is a leading rival to Cursor in the AI-IDE space, with strong autocomplete and agentic capabilities.
Replit
Replit is a browser-based coding platform whose AI Agent can build, run and deploy full applications from a prompt. It combines a cloud IDE, hosting and AI into one accessible environment popular with learners and rapid prototypers.


