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.
API price per 1M
Not published yet
Microsoft's claim
65% of Luna's, 20% of Haiku 5.5's cost
Context window
1,050,000
Input / output limit
922,000 / 128,000
Parameters
12B active · ~398B total
DeepSWE 1.1
59.9%
TerminalBench 2.1
78.3%
Available in
GitHub Copilot · Foundry preview
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
Context
Notes
Quality vs cost for your workloadQuality = Agent Arena Index (arena.ai, checked Nov 19, 2026; effort level shown under each score). Cost = this calculator's cost per request. Models on the green line are not beaten on both price and quality by any other model shown.
* 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.
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.