Official list prices · USD per 1M tokens · last checked
Microsoft · MAI Code 2 Flash · released Nov 17, 2026 · checked Nov 19, 2026

MAI Code 2 Flash: Pricing, Specs and Benchmarks

As of November 19, 2026, Microsoft has not published a per-token API price for MAI Code 2 Flash. It says Flash matches GPT-6 Luna and Claude Haiku 5.5 at 65% and 20% of their cost (at a 50% promotional price). The model has a 1,050,000-token context window and 128,000 output tokens, and is available in GitHub Copilot and a limited preview in Microsoft Foundry.

How much does MAI Code 2 Flash cost? There is no per-token price yet. Microsoft only gives relative figures: performance comparable to GPT-6 Luna and Claude Haiku 5.5 at 65% and 20% of their cost, measured at a 50% promotional price. Both of those models list $0.10 input / $0.50 output per 1M tokens, so Microsoft's percentages compare total cost per task, not per-token rates.

Microsoft AI announcement, MAI Code 2 model page and model card (microsoft.ai). Benchmarks: pass rate at max reasoning effort on MSBench with the GitHub Copilot CLI harness. Checked November 19, 2026.
per request
of those, cache hits
per request, incl. reasoning
per month
Examples
LLM API prices in USD per 1 million tokens, Agent Arena Index quality score, and estimated cost for the workload above
ContextNotes
* long-prompt rate applied (see notes)Standard tier, global endpoint. Batch = the provider's batch rate (50% off at OpenAI, Anthropic and Google; 20% off at xAI). Cache-write and storage fees not included. Quality: Agent Arena Index, median cost per real agent task in brackets.

MAI Code 2 Flash pricing: what Microsoft has published

Microsoft announced MAI Code 2 and MAI Code 2 Flash on November 17, 2026. Its announcement and model page give relative cost claims, not per-token prices:

Claim (Microsoft's wording) Model
Comparable performance to GPT-6 Luna and Claude Haiku 5.5 at 65% and 20% of the cost MAI Code 2 Flash
1/5 of the cost of Claude Haiku 5.5 with 12% higher performance MAI Code 2 Flash
98% of GPT-6.1 Sol's performance at 40% of the cost MAI Code 2
96% of Claude Opus 5.5's performance at 5% of the cost MAI Code 2

Both comparisons use each MAI model's 50% promotional price; Microsoft does not say when the promotion ends. Its Azure Foundry pricing page has no MAI Code 2 row yet. We will add per-token prices here when Microsoft or OpenRouter lists them.

For reference, the models Microsoft compares Flash with list $0.10 input / $0.50 output per 1M tokens (GPT-6 Luna and Claude Haiku 5.5). The calculator above prices your workload on them.

Specs

From Microsoft's MAI Code 2 model card:

MAI Code 2 Flash MAI Code 2
Parameters 12B active, ~398B total 77B active, ~2.8T total
Context window 1,050,000 tokens 1,050,000 tokens
Input / output limit 922,000 / 128,000 922,000 / 128,000
Input types Text, image Text, image
Reasoning effort low, medium, high, xhigh, max same
Best for Low latency, low serving cost Complex, long-horizon tasks

Benchmarks

Pass rate at max reasoning effort, run by Microsoft on MSBench with the GitHub Copilot CLI harness, averaged over three runs:

Benchmark MAI Code 2 Flash MAI Code 2
DeepSWE 1.1 59.9% 73.2%
TerminalBench 2.1 78.3% 84.6%
SWE Atlas 44.8% 43.1%

Microsoft notes the models are not yet tuned for harder problems such as fundamental science research and very long-horizon agentic work.

Where to use it

  • GitHub Copilot: both models.
  • Microsoft Foundry: MAI Code 2 Flash in limited-access preview.
  • Coming: OpenRouter, Vercel, Hermes, OpenCode and Kilo, per Microsoft.

Compare every priced model in the LLM pricing calculator or see the cheapest LLM APIs today.

Frequently asked questions

Microsoft has not published a per-token price yet. Its announcement says MAI Code 2 Flash delivers performance comparable to GPT-6 Luna and Claude Haiku 5.5 at 65% and 20% of their cost, measured at a 50% promotional price whose end date is not stated. The calculator above prices the two models Microsoft compares it with.

Microsoft says MAI Code 2 and Code 2 Flash are available in GitHub Copilot, and Code 2 Flash is in limited-access preview in Microsoft Foundry. It plans to release them on OpenRouter, Vercel, Hermes, OpenCode and Kilo.

1,050,000 tokens, with up to 922,000 input tokens and 128,000 output tokens, and text and image input, according to Microsoft's model card.

Microsoft's model card reports, at max reasoning effort: DeepSWE 1.1 59.9%, TerminalBench 2.1 78.3% and SWE Atlas 44.8%. The larger MAI Code 2 scores 73.2%, 84.6% and 43.1%.

Scale. MAI Code 2 has 77 billion active and about 2.8 trillion total parameters and is meant for complex, long-horizon tasks; Flash has 12 billion active and about 398 billion total and is optimized for low latency and serving cost. Microsoft says MAI Code 2 reaches 96% of Claude Opus 5.5's performance at 5% of the cost.

Sources

Every price on this page was copied from these official pages on November 19, 2026. If a provider changes a price, its page wins.