top of page

MAI Code 2 vs Claude Sonnet 5.5: Complete Comparison and Report on GitHub Copilot Pricing, DeepSWE Scores, Effort Levels, and API Access

7 hours ago
15 min read
MAI Code 2 vs Claude Sonnet 5.5 comparison cover with Microsoft and Claude logos over a city skyline, Data Studios original cover

MAI Code 2 is the first frontier coding model that Microsoft trained from scratch, released on November 17, 2026 at Ignite and offered inside GitHub Copilot on the Pro, Pro+, Max, Business and Enterprise plans. Claude Sonnet 5.5 is Anthropic's mid-tier model, released on September 28, 2026, available in the Claude apps, on the Claude API, on Amazon Bedrock, Google Cloud and Microsoft Foundry, and in the same GitHub Copilot plans. Both models accept text and images, both expose five reasoning effort levels from low to max, and both carry a context window of roughly one million tokens, so the developer who meets them side by side in the Copilot model picker is choosing between two models with very similar controls and very different prices.


The verdict is clear on price and close on measured coding quality. Under GitHub Copilot usage-based billing, MAI Code 2 costs $0.50 per million input tokens and $2.50 per million output tokens until May 17, 2027, against $2.00 and $10.00 for Claude Sonnet 5.5, which makes Microsoft's model four times cheaper for the same token count during the promotion and two times cheaper afterwards. On the only benchmark both vendors report in the same version, DeepSWE 1.1, MAI Code 2 scores 73.2% and Sonnet 5.5 scores 71.0%, a 2.2-point gap measured with different agent setups and a different number of runs, so it does not establish a clear winner. Sonnet 5.5 has the far deeper evidence base: published scores on SWE-Bench Pro, Terminal-Bench 4.0, FrontierCode, CursorBench and OSWorld, plus independent results from Artificial Analysis, Arena and Epoch AI, none of which list MAI Code 2 yet.


For a Copilot user who spends most of the day in agent mode and pays for tokens, MAI Code 2 is the cheaper default and its published coding results are in the same range. Claude Sonnet 5.5 is the better choice for anyone who needs the model outside Copilot (MAI Code 2 has no public API), who works with third-party evaluations as a buying criterion, or who needs Batch API pricing, zero data retention or cloud-provider deployment. Prices in this report were verified on GitHub's models and pricing documentation and on Anthropic's pricing documentation on November 29, 2026.


··········


⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣

MAI CODE 2 AND CLAUDE SONNET 5.5: RELEASE TIMELINE AND MODEL IDENTITY.


Microsoft announced MAI Code 2 together with a smaller sibling, MAI Code 2 Flash, on November 17, 2026, and GitHub published its changelog entry the same day. The model card, last updated on November 17, describes a decoder-only transformer with sparse Mixture-of-Experts layers and an integrated vision encoder, pre-trained and post-trained by Microsoft from scratch. The weights are not distributed. The card states a training cutoff of August 2026, a pre-training corpus of about 50 trillion tokens plus about 150 billion tokens of long-context extension, and optimization for English. The parameter count cannot be quoted with confidence, because the card gives two incompatible figures in different sections: "50B-100B (80B active)" in its summary and roughly 2.8 trillion total parameters with 77 billion active in its first section.


Anthropic released Claude Sonnet 5.5 on September 28, 2026, with the API identifier `claude-sonnet-5-5`, and GitHub added it to Copilot on the same date. Anthropic's model documentation gives a reliable knowledge cutoff of June 2026 and commits to keeping the model available until at least September 28, 2027. Anthropic does not publish a parameter count or architecture details for its Claude models, and the Sonnet 5.5 system card follows that practice.


........


Item

MAI Code 2

Claude Sonnet 5.5

Developer

Microsoft

Anthropic

Release date

November 17, 2026

September 28, 2026

Model family

MAI Code 2 and MAI Code 2 Flash

Claude 5.5 (Opus, Sonnet, Haiku)

Architecture disclosed

Sparse MoE transformer with vision encoder

Not published

Training or knowledge cutoff

August 2026 (training cutoff)

June 2026 (reliable knowledge cutoff)

Weights

Not distributed

Not distributed

Earliest retirement

Not published

Not sooner than September 28, 2027


........


The two models arrive from opposite directions. Sonnet 5.5 is a general-purpose model that Anthropic positions for coding, agents and office work, and its system card spends as much space on computer use and knowledge work as on software engineering. MAI Code 2 is a dedicated coding model: GitHub's changelog describes it as built for deep debugging, multi-file implementation, refactoring and repository-wide reasoning, and Microsoft's launch material reports coding results almost exclusively.


··········


GITHUB COPILOT PRICING FOR MAI CODE 2 AND CLAUDE SONNET 5.5.


Inside GitHub Copilot both models are billed under usage-based billing at a price per million tokens, converted into AI credits worth $0.01 each. GitHub's models and pricing page lists MAI Code 2 at a promotional rate until May 17, 2027 and at a standard rate after that date; the MAI Code 2 row appears in the plain-text version of the page, while the rendered version fetched the same day showed only the older MAI Code 1.1 Flash entry. Claude Sonnet 5.5 is listed at Anthropic's list prices, which GitHub's changelog describes as provider list pricing under usage-based billing.


........


Price per 1M tokens (GitHub Copilot)

MAI Code 2, promo until May 17, 2027

MAI Code 2, from May 17, 2027

Claude Sonnet 5.5

Input

$0.50

$1.00

$2.00

Cached input

$0.025

$0.05

$0.10

Cache write

Not listed

Not listed

$2.50

Output

$2.50

$5.00

$10.00

Release stage in Copilot docs

GA

GA

GA


........


The ratio is the same on every line of the table: Sonnet 5.5 costs four times the promotional MAI Code 2 price and twice the standard one for input, cached input and output. The one structural difference is the cache write charge. GitHub lists $2.50 per million tokens written to the prompt cache for Sonnet 5.5 and no cache write price for MAI Code 2, so long agent sessions that keep rewriting a large cached prefix widen the gap further.


Outside Copilot, only Sonnet 5.5 has a public price list. Anthropic's pricing documentation gives $2 input and $10 output per million tokens, $2.50 for five-minute cache writes, $4 for one-hour cache writes, $0.10 for cache reads, and $1 input and $5 output on the Batch API. The full one-million-token context is billed at standard rates with no long-context surcharge. US-only inference through the `inference_geo` setting costs 1.1 times the standard price, and regional endpoints on Bedrock and Vertex AI carry a 10% premium. Microsoft has not published an API price for MAI Code 2, and the Microsoft Foundry pricing page checked on November 29 had no row for either MAI Code 2 model.


··········


CONTEXT WINDOW, OUTPUT LIMITS AND EFFORT LEVELS OF MAI CODE 2 AND SONNET 5.5.


On paper the two models expose almost identical controls. Both accept up to about one million tokens of context, both cap a single response at 128,000 tokens in normal use, and both offer the same five effort settings. The differences sit in the details of how the context is split and how thinking is configured.


........


Specification

MAI Code 2

Claude Sonnet 5.5

Context length

1,050,000 tokens

1,000,000 tokens

Input limit

922,000 tokens

Within the 1M context

Maximum output

128,000 tokens

128,000 tokens (300,000 on Batch API with a beta header)

Input modalities

Text and images

Text and images

Effort levels

low, medium, high, xhigh, max

low, medium, high, xhigh, max

Default effort

Not published

high on the API; medium in Claude Code and the apps

Thinking control

Configurable reasoning

Adaptive thinking, always on; manual budgets rejected


........


Anthropic's documentation for Sonnet 5.5 sets out several API constraints that matter to developers porting code from older Claude models. Thinking is adaptive and enabled by default, and requests that set a manual `budget_tokens` value or disable thinking return a 400 error. Setting temperature, top_p or top_k also returns a 400 error, as does forcing a specific tool through `tool_choice`. The lowest thinking setting, `between_tools`, works only at high effort or below. Microsoft's model card lists MAI Code 2's effort levels and its tool support (shell, file and search tools in agent frameworks, plus tool calling for custom agents) but does not document a default effort or parameter restrictions, which is consistent with a model reached today only through Copilot clients.


The model card also warns that MAI Code 2's quality drops near the context limit and that the model can drift in long sessions. Anthropic's materials do not carry a comparable warning for Sonnet 5.5, but neither vendor has published a long-context retrieval benchmark for the pair that would allow a direct comparison of how each behaves past several hundred thousand tokens.


··········


WHERE MAI CODE 2 AND CLAUDE SONNET 5.5 ARE AVAILABLE: COPILOT PLANS, APPS, API AND CLOUDS.


Access is the widest gap between the two models. MAI Code 2 lives inside GitHub Copilot, while Sonnet 5.5 is sold everywhere Anthropic sells models. For a team that standardizes on Copilot the two look equivalent; for a team building its own agents, only one of them is an option today.


........


Channel

MAI Code 2

Claude Sonnet 5.5

Copilot Free and Student

No (MAI Code 2 Flash only)

No

Copilot Pro, Pro+, Max

Yes

Yes

Copilot Business and Enterprise

Yes, on by default unless an admin disables it

Yes

Copilot surfaces

VS Code, Visual Studio, Copilot CLI, cloud agent, Copilot app, github.com, GitHub Mobile, JetBrains, Xcode, Eclipse

Same list, with gradual rollout at launch

Own consumer app

None

Claude apps (Sonnet listed on Free, Pro, Max, Team, Enterprise)

Public API

None; only MAI Code 2 Flash in a limited-access Foundry preview

Claude API, Batch API

Cloud platforms

Not published

Amazon Bedrock, Google Cloud, Microsoft Foundry, Claude Platform on AWS

Third-party routers

Announced as coming soon (OpenRouter, Vercel, OpenCode, Kilo and others)

Available through cloud and API partners


........


The Copilot side of the table is nearly symmetrical. GitHub's changelogs list the same paid plans and the same client surfaces for both models, and the supported-models page gives Visual Studio 17.14.6 as the minimum version for both. The difference for administrators is the default: GitHub states that MAI Code 2 is enabled on Business and Enterprise unless an admin turns it off, so organizations that restrict which vendors process their code need to check their model policies after November 17.


Claude's own pricing page marks Sonnet access on all five consumer and business plans without naming the version, and Claude Code is included on the paid plans only. For readers comparing Copilot with Anthropic's subscriptions, our list of all Claude models and where each one is available covers the plan-by-plan picture, and our GitHub Copilot Pro vs Pro+ comparison explains how AI credits are allocated across Copilot tiers.


··········


HOW MICROSOFT AND ANTHROPIC MEASURED CODING PERFORMANCE.


The benchmark evidence for the two models was produced in very different ways, and reading the scores without the settings leads to the wrong conclusion. Microsoft ran its evaluations on its internal MSBench platform inside GitHub Copilot CLI version 1.0.102, at max effort, with subagents disabled, reporting the mean single-attempt pass rate over three runs per task and counting infrastructure errors as failures. Anthropic's system card uses adaptive thinking at max effort, up to one million tokens of context, and averages five trials; several of its results come from third-party test setups such as Cursor's production environment or Cognition's FrontierCode suite run inside Claude Code.


Two further problems limit what Microsoft's numbers can support. The model card reports MAI Code 2's DeepSWE 1.1 and SWE Atlas results twice, at 73.2% and 43.1% in its main benchmark table and at 60.2% and 80.9% in its advanced-autonomy table, without explaining the difference in setup. The launch post's headline claims are relative: MAI Code 2 reaches "96% of Claude Opus 5.5's performance at 5% of its cost" and "98% of GPT-6.1 Sol's performance at 40% of its cost", averaged across DeepSWE 1.1, Terminal-Bench 2.1, SWE Atlas and FrontierCode v1.1, with FrontierCode scores and costs taken from Artificial Analysis. Microsoft does not publish the competitor scores behind those ratios, and Claude Sonnet 5.5 is absent from all of Microsoft's comparisons.


Anthropic, for its part, publishes no SWE Atlas score and no Terminal-Bench 2.1 score for Sonnet 5.5; its terminal results use Terminal-Bench 4.0. The result is that the two vendors overlap on a single benchmark version.


··········


DEEPSWE 1.1: THE ONE BENCHMARK BOTH VENDORS PUBLISHED.


DeepSWE 1.1 is the only test that appears in both the MAI Code 2 model card and the Sonnet 5.5 system card under the same version name. The scores are close, and the setups behind them differ on the agent framework, the number of runs and the operator.


........


DeepSWE 1.1

MAI Code 2

Claude Sonnet 5.5

Score

73.2%

71.0%

Effort

max

max (adaptive thinking)

Agent environment

GitHub Copilot CLI 1.0.102 on MSBench, subagents off

Anthropic's evaluation setup

Runs averaged

3 per task

5 trials

Task count stated

Not stated

113 tasks

Reported by

Microsoft (model card)

Anthropic (system card)


........


A 2.2-point lead measured by two different companies with two different agent environments is within the range that setup choices alone can move. Microsoft's own card contains a second DeepSWE 1.1 figure of 60.2% for MAI Code 2 in another table, which shows how much the number depends on configuration. The fair reading is that, on Microsoft's preferred setup, MAI Code 2 lands in the same band as Sonnet 5.5 on long software engineering tasks, at a quarter of the token price during the promotion.


··········


[[ADPLUS_300x250_1]]

CODING AND AGENT BENCHMARKS ONLY ONE VENDOR PUBLISHED.


Outside DeepSWE, every published figure belongs to one model only. The table groups them by vendor so that no score appears next to a missing counterpart as if the two were comparable.


........


Benchmark

MAI Code 2

Claude Sonnet 5.5

Settings

Terminal-Bench 2.1

84.6%

Not published

Microsoft: max effort, Copilot CLI, mean of 3

Terminal-Bench 4.0

Not published

70.6%

Anthropic: Claude Code bare mode, max effort, 66 tasks x 5 trials

SWE Atlas

43.1%

Not published

Microsoft: max effort, Copilot CLI, mean of 3

SWE-Bench Pro

Not published

81.3%

Anthropic: max effort, 5 trials

SWE-Bench Multilingual

Not published

90.3%

Anthropic: 5 trials

FrontierCode v1.1 (Main)

Used only inside a relative claim

46.2% at max, 52.1% at xhigh

Cognition suite run in Claude Code, 150 tasks

CursorBench 4.0

Not published

55.5% at max, 47.8% at high

Measured by Cursor in its production environment

OSWorld 2.1

Not published

80.1% partial, 43.5% strict

108 tasks, 5 runs, max effort, 500 steps

Toolathlon-Verified

Not published

77.8% pass@1

Anthropic

Frontend preference

64% preferred over GPT-6.1 Sol

Not published

Blind test, 258 annotators


........


Two details in the table deserve a closer look. Sonnet 5.5 scores lower on FrontierCode at max effort than at xhigh, which Anthropic attributes to the model more often invoking Claude Code's code-review skill at max; teams that pick max effort by default for Sonnet 5.5 are paying more for a lower score on that suite. Microsoft's frontend preference result names the opponent as "GPT-6 Sol" in the launch post and "GPT-6.1 Sol" on the model page, an inconsistency that makes the figure harder to use. Neither result tells a buyer how MAI Code 2 and Sonnet 5.5 compare with each other on those tasks.


··········


INDEPENDENT EVALUATIONS OF CLAUDE SONNET 5.5 AND MAI CODE 2.


Independent evaluators have had two months to test Sonnet 5.5 and twelve days to test MAI Code 2, and the coverage reflects it. On November 29, MAI Code 2 did not appear on Artificial Analysis's FrontierCode 1.1 page, on Arena's code leaderboards or changelog, or on Epoch AI's benchmark hub. The FrontierCode 2.0 page could be read only in part, so its absence there is likely but not certain.


........


Organization

Metric

Claude Sonnet 5.5

MAI Code 2

Artificial Analysis

Intelligence Index v5.0.2 (max effort)

55

Not listed

Artificial Analysis

Output speed

154 tokens per second

Not listed

Artificial Analysis

Output tokens to run the Intelligence Index

335 million

Not listed

Artificial Analysis

Cost per Intelligence Index task

$10.02

Not listed

Arena (WebDev, updated Nov 18, 2026)

Score at xhigh

1,773 (rank 4, 6,588 votes)

Not listed

Arena (WebDev, updated Nov 18, 2026)

Score at high

1,716 (rank 12, 8,666 votes)

Not listed

Epoch AI

Epoch Capabilities Index

166 (12th of 247 models)

Not listed

METR

Time horizon

Not listed (page no longer updated)

Not listed


........


Artificial Analysis's launch article on September 28 gave Sonnet 5.5 an Intelligence Index of 56, second only to Claude Opus 5.5 at the time, and described its token use of about 193,000 output tokens per index task as the highest the organization had measured. The index has since moved to version 5.0.2, where the model scores 55. The same organization measured 64% on Terminal-Bench 4.0 at max effort, below Anthropic's own 70.6%, a reminder that vendor and independent runs of the same test diverge.


··········


TOKEN CONSUMPTION AND COPILOT COST FOR THREE CODING WORKLOADS.


Price per token is only half of the cost of a task; the other half is how many tokens the model spends. Artificial Analysis's data shows that Sonnet 5.5 is a heavy token user at max effort, and no independent organization has measured MAI Code 2's consumption yet. The calculation below therefore applies the same token counts to both models, which isolates the price difference and leaves the consumption question open.


Assumptions: an agent session reads 3 million input tokens across its turns, 85% of them served from the prompt cache, and writes 60,000 output tokens; a single bug fix reads 400,000 input tokens, 70% from cache, and writes 15,000 output tokens; a month of heavy use is 40 agent sessions. Prices are the GitHub Copilot per-million-token rates verified on November 29, 2026. A fourth row adds 300,000 tokens of cache writes to the agent session, charged only on Sonnet 5.5 because GitHub lists no cache write price for MAI Code 2.


........


Workload

MAI Code 2 (promo)

MAI Code 2 (from May 17, 2027)

Claude Sonnet 5.5

Agent session: 3M input (85% cached), 60K output

$0.44

$0.88

$1.76

Bug fix: 400K input (70% cached), 15K output

$0.10

$0.21

$0.42

Month of 40 agent sessions

$17.55

$35.10

$70.20

Agent session with 300K cache writes billed

$0.44

$0.88

$1.91


........


With identical token counts, Sonnet 5.5 costs exactly four times the promotional MAI Code 2 price and two times the standard price, and the cache write charge raises the agent-session multiple to about 4.3 during the promotion. The same arithmetic sets a break-even point: Sonnet 5.5 would match MAI Code 2's promotional cost only if MAI Code 2 used four times as many tokens for the same task, and two times as many after May 17, 2027. Microsoft's own claim of reaching 96% of Claude Opus 5.5's performance at 5% of its cost implies a low cost per task on Microsoft's own measurements, but the cost basis behind that claim is not published, so the break-even multiple is the safer planning figure.


P = {"MAI Code 2 promo": (0.50, 0.025, 0, 2.50),
     "MAI Code 2 standard": (1.00, 0.05, 0, 5.00),
     "Claude Sonnet 5.5": (2.00, 0.10, 2.50, 10.00)}
def cost(p, fresh, cached, written, out):
    return (fresh*p[0] + cached*p[1] + written*p[2] + out*p[3]) / 1e6
# agent session: 450K fresh, 2.55M cached, 60K output
print({k: round(cost(v, 450_000, 2_550_000, 0, 60_000), 4) for k, v in P.items()})

Developers who call Sonnet 5.5 directly on the Claude API, rather than through Copilot, can halve the input and output rates with the Batch API for jobs that do not need an immediate answer, such as overnight test generation or bulk code review. MAI Code 2 offers no equivalent path today because it has no public API.


··········


⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁤

SPEED, SAFETY CLASSIFICATIONS AND DATA HANDLING.


Artificial Analysis measures Sonnet 5.5 at 154 output tokens per second at max effort, with a time to first answer token of about 254 seconds that reflects the long thinking phase at that setting. No speed or latency figure for MAI Code 2 has been published by Microsoft, GitHub or an independent organization, so the speed comparison cannot be made.


The safety documentation differs in format. Microsoft's model card rates MAI Code 2 "High" for CBRN and offensive cyber capabilities and states that the model is deployed with classifiers, logging and abuse monitoring, while its autonomy capabilities do not cross the High threshold. The card reports an AgentDojo prompt-injection attack success rate of 0.00% and an AgentHarm harmful completion rate of 10.23%, and it describes the model's alignment as similar to GPT-5.6 Sol and below GPT-6. Anthropic's system card for Sonnet 5.5 places the model at CB-1 and Autonomy-1 under its Responsible Scaling Policy, below the CB-2 and Autonomy-2 thresholds.


On data handling, Anthropic states that Sonnet 5.5 is available with zero data retention for eligible API customers, and its documentation notes that thinking blocks are bound to the account that produced them. Microsoft's launch materials and model card link to data cards and terms but do not state a retention or training-use policy for MAI Code 2.


··········


MAI CODE 2 AND SONNET 5.5: GAPS IN THE PUBLISHED EVIDENCE.


Several figures that a buyer would want are missing from both sides, and they set limits on any conclusion drawn from the tables above.


........


Missing item

MAI Code 2

Claude Sonnet 5.5

Head-to-head benchmark by one party

Not published

Not published

Absolute competitor scores behind marketing ratios

Not published

Not applicable

Consistent parameter count

Two conflicting figures in the model card

Not published

Independent evaluation

None as of November 29, 2026

Artificial Analysis, Arena, Epoch AI

Speed and latency

Not published

Measured by Artificial Analysis

API price

Not published (no public API)

Published

Copilot cache write price

Not listed

$2.50 per 1M tokens

Regions

Not published

US-only inference option at 1.1x


........


The most useful missing item would be an independent run of both models through the same agent environment on the same task set. Until Artificial Analysis or Arena adds MAI Code 2, the 2.2-point DeepSWE gap and Microsoft's relative claims against Opus 5.5 and GPT-6.1 Sol are the only quality signals, and both come from Microsoft's own setup. Our earlier MAI Code 2 vs Claude Opus 5.5 comparison reached the same limit against Anthropic's flagship, and the launch report on MAI Code 2 in GitHub Copilot covers the Flash model that Free users receive.


··········


WHICH TO CHOOSE: MAI CODE 2 OR CLAUDE SONNET 5.5 BY WORKLOAD.


The choice follows from three facts: MAI Code 2 is four times cheaper per token in Copilot until May 17, 2027, the two models are within about two points on the one shared benchmark, and only Sonnet 5.5 can be used outside Copilot.


........


Workload or constraint

Recommended model

Reason

Daily Copilot agent mode on a usage-billed plan

MAI Code 2

4x lower token price during the promotion, 2x after, similar DeepSWE result

Large refactors near the context limit

Claude Sonnet 5.5

Microsoft's card warns of quality drops near the limit; Anthropic ran its evaluations with up to 1M tokens of context

Your own agents, CI pipelines or apps via API

Claude Sonnet 5.5

MAI Code 2 has no public API

Overnight bulk jobs (test generation, code review)

Claude Sonnet 5.5 on the Batch API

$1 input and $5 output per 1M tokens, with no MAI Code 2 equivalent

Procurement that requires independent benchmarks

Claude Sonnet 5.5

Covered by Artificial Analysis, Arena and Epoch AI; MAI Code 2 is not yet

Frontend and web UI generation

Claude Sonnet 5.5 for evidence, MAI Code 2 to test

Sonnet 5.5 ranks 4th on Arena WebDev at xhigh; MAI Code 2 has only a vendor preference test

Zero data retention or cloud-provider deployment

Claude Sonnet 5.5

ZDR available; Bedrock, Google Cloud and Foundry endpoints

Copilot Business or Enterprise cost control

MAI Code 2 as default, Sonnet 5.5 for escalation

MAI Code 2 is enabled by default and cheaper per token


........


For a Copilot subscriber paying for usage, the numbers favor MAI Code 2 as the everyday model and Claude Sonnet 5.5 as the one to switch to when a task fails, needs evidence an auditor can check, or has to run outside GitHub. The price advantage halves on May 17, 2027, when MAI Code 2 moves to $1 input and $5 output per million tokens, and teams that set Copilot model policies on the promotional rate should plan their budgets on the standard one. Teams building on the API have one option between the two today, and it is Sonnet 5.5 at $2 and $10 per million tokens, or $1 and $5 through batch processing.


··········


FOLLOW US FOR MORE.


·····


DATA STUDIOS


·····


datastudios.org


bottom of page