MAI Code 2 Flash
Everyday coding at scalable prices — the cheap Copilot default for routine fixes.
Microsoft's fast, low-cost coding model for routine work in GitHub Copilot: explanations, targeted edits and fixes at $0.05 per million input tokens.

Microsoft AI launch post for MAI Code 2 and Code 2 Flash
Overview
What is MAI Code 2 Flash?
Everyday coding at scalable prices — the cheap Copilot default for routine fixes.
MAI Code 2 Flash is Microsoft's small, fast coding model, announced on November 17, 2026 at Ignite as part of the MAI Code 2 family. It is built for high-volume everyday work — code explanations, targeted edits, routine fixes and rapid iteration — inside GitHub Copilot, where it is available on every plan including Free and Student.
Microsoft reports Flash averaging 61.0% across three coding benchmarks (DeepSWE 59.9%, Terminal-Bench 2.1 78.3%, SWE-Atlas 44.8%), ahead of GPT-6 Luna at 55.1% and Claude Haiku 5.5 at 53.9% on the same average, at 65% and 20% of their cost. Those figures are Microsoft's own, run at maximum reasoning effort, and have no independent replication yet.
Pricing is promotional: $0.05 per million input tokens and $0.25 per million output tokens until May 17, 2027, then $0.10 and $0.50. Microsoft says the models are explicitly not yet tuned for harder problems such as fundamental science research and very long-horizon agentic work.
Platforms and languages
MAI Code 2 Flash Availability
Platforms
Languages
Capabilities
MAI Code 2 Flash Key Features
Built for routine coding
Code explanations, targeted edits, routine fixes and rapid iteration — the high-volume work in a developer's day.
In GitHub Copilot on every plan
Available in Copilot Free, Student, Pro, Pro+, Max, Business and Enterprise, in VS Code, Visual Studio, JetBrains and the Copilot CLI.
61.0% across three benchmarks
Microsoft reports a 61.0% average on DeepSWE, Terminal-Bench 2.1 and SWE-Atlas, ahead of GPT-6 Luna and Claude Haiku 5.5 on the same average.
Promo pricing until May 2027
$0.05 input and $0.25 output per million tokens until May 17, 2027, then $0.10 and $0.50. Microsoft quotes $0.052 per task at promo rates.
12B active parameters
A compact model with 12 billion active parameters (about 398 billion total), built for speed and low cost per call.
Plans and access
MAI Code 2 Flash Pricing
Freemium
Promo $0.05 in / $0.25 out per 1M tokens until May 17, 2027; then $0.10 / $0.50.
Common questions
MAI Code 2 Flash FAQs
How much does MAI Code 2 Flash cost?
$0.05 per million input tokens and $0.25 per million output tokens until May 17, 2027, then $0.10 and $0.50. Cached input is $0.005, rising to $0.01.
Where can I use MAI Code 2 Flash?
In GitHub Copilot on every plan, including Free and Student, and in a limited-access preview in Microsoft Foundry.
What is MAI Code 2 Flash best for?
High-volume routine work: code explanations, targeted edits, routine fixes and rapid iteration. Microsoft says it is not yet tuned for hard, long-horizon agentic work.
How does Flash compare with GPT-6 Luna?
Microsoft reports Flash averaging 61.0% against Luna's 55.1% on three coding benchmarks, at 65% of Luna's cost — but only at the promotional price. At list prices after May 2027, Flash costs about 130% of Luna.
Reviews
See what the community thinks and share your experience.
—
Based on 0 ratings
Rating distribution
Community reviews
No reviews
No written reviews yet.