Microsoft's in-house coding model for everyday enterprise development, built for price-performance inside GitHub Copilot.

MAI Code 2 launch visual from Microsoft AI
Overview
What is MAI Code 2?
Everyday enterprise coding at a fraction of frontier-model cost.
MAI Code 2 is Microsoft AI's coding model for everyday enterprise development, launched at Microsoft Ignite on November 17, 2026. It is available in GitHub Copilot, where it handles debugging, multi-file implementation, refactoring, repository-wide reasoning, and UI work.
According to Microsoft, MAI Code 2 averages 63.2% across four coding benchmarks (DeepSWE 1.1, Terminal-Bench 2.1, SWE-Atlas, and FrontierCode v1.1), which Microsoft says is 98% of GPT-6.1 Sol's average at about 40% of the cost, and 96% of Claude Opus 5.5's average at about 5% of the cost. Those cost comparisons use a 50% promotional price. In GitHub Copilot the promotional rate is $0.50 per million input tokens and $2.50 per million output tokens until May 17, 2027, after which the list price is $1.00 and $5.00.
Microsoft is explicit about the model's limits: it is not yet tuned for harder problems such as fundamental science research or very long-horizon agentic work. It was also tuned for frontend work, and in a blind side-by-side evaluation developers preferred its dashboards and visualizations over GPT-6 Sol 64% of the time, according to Microsoft.
Platforms and languages
MAI Code 2 Availability
Platforms
Languages
Capabilities
MAI Code 2 Key Features
Everyday enterprise coding
Built for the coding work teams do daily: taking code to production, debugging, multi-file changes, and repository-wide reasoning.
Available in GitHub Copilot
Ships in the Copilot model picker across VS Code, Visual Studio, Copilot CLI, the cloud agent, github.com, GitHub Mobile, JetBrains, Xcode, and Eclipse.
Frontend and visualization tuning
Tuned to generate dashboards and visualizations; Microsoft says developers preferred its frontend output over GPT-6 Sol in 64% of blind comparisons.
Promotional pricing until May 2027
In GitHub Copilot, $0.50 per million input tokens and $2.50 per million output tokens until May 17, 2027, then $1.00 and $5.00.
1M token context
GitHub lists a 1 million token context window for the model, offered in VS Code and Copilot CLI.
Plans and access
MAI Code 2 Pricing
Paid
Common questions
MAI Code 2 FAQs
Where can I use MAI Code 2?
In GitHub Copilot, on Pro, Pro+, Max, Business, and Enterprise plans. Pick it from the model picker in VS Code, Visual Studio, Copilot CLI, the cloud agent, github.com, GitHub Mobile, JetBrains, Xcode, or Eclipse.
How much does MAI Code 2 cost?
In GitHub Copilot it costs $0.50 per million input tokens and $2.50 per million output tokens at a promotional rate until May 17, 2027. After that the list price is $1.00 input and $5.00 output per million tokens.
How does MAI Code 2 compare with GPT-6.1 Sol and Claude Opus 5.5?
Microsoft reports an average of 63.2% across four coding benchmarks, versus 64.1% for GPT-6.1 Sol and 65.3% for Claude Opus 5.5, and says its cost per task is far lower. Those figures are vendor-reported and the cost comparison uses the promotional price.
What is MAI Code 2 not built for?
Microsoft says it is explicitly not yet tuned for harder problems such as fundamental science research or very long-horizon agentic work.
Is there a smaller, cheaper version?
Yes, MAI Code 2 Flash is designed for high-volume routine work such as code explanations, targeted edits, and routine fixes, and is available on every Copilot plan including Free.
Reviews
See what the community thinks and share your experience.
—
Based on 0 ratings
Rating distribution
Community reviews
No reviews
No written reviews yet.