GitHub Copilot adds two Microsoft coding models, with Flash on free plans
Edited and reviewed by AI Ping Editorial Team
3-line summary
- MAI Code 2 and Flash are generally available. Free and Student users can get Flash through automatic selection.
- Microsoft designed MAI Code 2 for complex changes and Flash for routine edits.
- GitHub lists May 17, 2027 as the start date for standard rates on both models.
GitHub added Microsoft’s MAI Code 2 and MAI Code 2 Flash to Copilot on Nov. 17, making both generally available. Developers in supported clients can choose between a model built for complex changes and a lighter one for routine edits. Flash is also available to Free and Student users, whose plans use automatic model selection.
MAI Code 2 is available on Pro, Pro+, Max, Business and Enterprise, all of which also include Flash. GitHub says eligible annual subscribers can use both models. Business and Enterprise administrators control model access. New models are normally enabled automatically, subject to the organization’s default settings and any policy for the individual model.
A model for multi-file changes and one for routine edits
Microsoft designed MAI Code 2 for work that reaches across a repository, such as implementing a change in multiple files, debugging a complicated issue or refactoring a project. Flash is aimed at smaller edits, code explanations and quick iterations. Both take text and images and return text, so a screenshot or design mockup can be part of the request. Microsoft lists a 1.05 million-token context window for each model.
Supported clients include Visual Studio Code, Visual Studio, the Copilot CLI and GitHub’s cloud agent. GitHub also names its Copilot app, mobile apps, JetBrains IDEs and Xcode. Features and version requirements vary by client. GitHub’s compatibility table specifies Visual Studio 17.14.6 as the minimum for both new models.
Benchmarks run through the same Copilot CLI
The two models led on different tests in Microsoft’s evaluation. MAI Code 2 passed 73.2% of tasks on DeepSWE 1.1 against 59.9% for Flash. On TerminalBench 2.1, which tests multistep terminal work, the scores were 84.6% and 78.3%, respectively. Flash led on SWE Atlas, with 44.8% against 43.1%. That benchmark covers work in real repositories, including questions about the codebase and writing tests.
Microsoft ran both models at maximum reasoning effort through the same version of the Copilot CLI with subagents disabled. It ran each task three times and reported the average single-attempt pass rate, counting infrastructure failures as failed runs. Those figures describe the test setup, where the models faced the same tasks and settings.
Copilot’s introductory rates run into May
GitHub’s launch prices per million tokens for MAI Code 2 are $0.50 for input, $0.025 for cached input and $2.50 for output. Flash costs $0.05, $0.005 and $0.25, respectively. GitHub converts token costs into AI credits at one credit per US cent. Business and Enterprise pool included credits across the billing entity. Unused included credits expire at the end of the month.
For example, a million uncached input tokens and a million output tokens would use 300 credits on MAI Code 2 and 30 on Flash at launch rates. That’s $3 and $0.30 worth of credits, respectively. It is an equal-volume calculation. The number of tokens each model uses on a real task can vary.
GitHub treats code completions and next edit suggestions separately. Those features do not consume AI credits, and request-based billing continues to use its own model rules for some existing annual Pro and Pro+ subscriptions. Microsoft also lists Foundry as an API distribution channel for Flash. The figures in GitHub’s price table describe Copilot billing.
GitHub lists May 17, 2027 as the start of standard rates. From that date, a million input, cached input or output tokens on MAI Code 2 will cost $1, $0.05 or $5. Flash’s corresponding rates will be $0.10, $0.01 and $0.50.
Sources
- MAI Code 2 and MAI Code 2 Flash in GitHub Copilot — GitHub
- Supported AI models in GitHub Copilot — GitHub Docs
- Models and pricing for GitHub Copilot — GitHub Docs
- MAI Code 2 and MAI Code 2 Flash — Microsoft AI
- Usage-based billing for organizations and enterprises — GitHub Docs