MAI Code 2: Copilot Pricing and Multi-File Coding
MAI Code 2 is Microsoft’s everyday engineering model for multi-file implementation, debugging and repository reasoning. Start with it when a change needs more context than a quick edit but has a clear test or review target. GitHub Copilot lists promotional rates of $0.50 input and $2.50 output per million tokens.
Content reviewed:
See MAI Code 2 in GitHub Copilot ↗
Use this model
See access details in the guide below.
Use cases
- Implement an issue across a few files, then run the relevant tests and review the diff.
- Trace a failing integration test to its cause and make the smallest fix that passes.
- Build a dashboard component and check both layout and behavior in the browser.
Select MAI Code 2 in GitHub Copilot
GitHub lists MAI Code 2 for eligible Copilot Pro, Pro+, Max, Business and Enterprise subscribers, including eligible annual subscribers. Choose it in the model picker in a supported client such as VS Code or Copilot CLI. If your organization manages model access, check its Copilot policy.
For a first trial, supply a repository issue, name the tests the change must pass and ask for a patch with a summary of what changed. Inspect the diff and rerun those tests before accepting it.
GitHub also lists Visual Studio, JetBrains, Xcode, Eclipse, the Copilot cloud agent, GitHub.com and GitHub Mobile among supported surfaces. Organizations with default model enablement get newly introduced models unless an administrator disables that default or blocks the specific model.
A useful first issue is a change to an API response used in several places: ask for the implementation, caller updates and a regression test. Check whether the patch leaves unrelated code alone. If the response looks right but the test fails, count the repair as part of the same task.
GitHub Copilot pricing: promotional and regular rates
For 100,000 uncached input tokens and 10,000 output tokens, the listed Copilot rates imply $0.075 at the promotional rate or $0.15 at the regular rate. This is a fixed-usage calculation, not a separate API quote or a statement of what your subscription includes.
Check your plan’s included usage and model access. Add all requests in the session, including failed edits and repairs, when comparing costs.
GitHub tracks usage-based Copilot billing in AI credits, worth $0.01 each. Check your plan’s included credits and whether extra usage is enabled before treating the token estimate as an extra charge. If several developers share an organization budget, review credit use across their sessions rather than extrapolating from a single prompt.
| GitHub Copilot rate | Input / cache read / output per million tokens |
|---|---|
| Promotional | $0.50 / $0.025 / $2.50 |
| From May 17, 2027 | $1.00 / $0.05 / $5.00 |
Code 2 vs Sol, Opus and Flash: compare the type of edit
Microsoft reports that MAI Code 2 reaches 98% of GPT-6.1 Sol’s benchmark average at 40% of the cost and 96% of Claude Opus 5.5’s average at 5% of the cost. The four tests are DeepSWE 1.1, TerminalBench 2.1, SWE-Atlas and FrontierCode 1.1. The models ran at maximum effort; three tests used Copilot CLI without subagents and FrontierCode came from Artificial Analysis. The Code 2 cost uses promotional pricing.
For a dashboard or interactive component, Microsoft’s separate blind test reported a 64% preference for Code 2 over GPT-6 Sol. That was GPT-6 Sol, not 6.1 or 6.2, and the test rated both function and appearance.
Use Flash for small, repeatable edits. For the next size up, compare Code 2 with GPT-6.2 Sol on the same multi-file issue. Include Opus if the work takes a longer session and needs several verification steps. Microsoft’s 6.1 Sol result does not establish a result against 6.2 Sol.
Before you use it
- The Copilot rates above are not Microsoft Foundry rates. Microsoft did not tune this release for fundamental research or very long, open-ended agent work.
How to get started
Compare total minutes, billed usage and review effort for a patch that the same tests accept.
Sources
Sources (3)
- Microsoft: Code 2 and Flash evaluations ↗
Source checked:
- GitHub: plans, client support and model policy ↗
Source checked:
- GitHub: promotional and regular token rates ↗
Source checked: