ZMIME
Microsoft · Released Nov 17, 2026

MAI Code 2 Flash

Microsoft's lightweight coding model for explanations, targeted edits and routine fixes at high volume.

  • New
  • Proprietary
  • Reasoning
  • Tool calling
  • Vision
Capability
—No ECI score yet
Input
$0.05per 1M tokens
Output
$0.25per 1M tokens
Context
1.05M128K max output
Pricing

What it costs

Input
$0.05per million tokens
Output
$0.25per million tokens
Cached input
$0.005per million tokens
Blended (3:1)
$0.10cheaper than 89% of priced models

Typical monthly bills

Monthly usageEstimated cost
Side project2M input + 0.5M output tokens$0.225
Team assistant25M input + 5M output tokens$2.50
Production app250M input + 50M output tokens$25.00

Published rate from the model provider.

Capability

Independent benchmarks

Epoch AI has not published a Capabilities Index score for MAI Code 2 Flash yet.

Specifications

The details

Lab
Microsoft
Task
Coding
Published capabilities
Smaller mixture-of-experts coding model for quick edits, explanations and iteration.
Model size
12B active parameters
Access
GitHub Copilot and limited-access Microsoft Foundry preview
Billing terms
Promotional GitHub Copilot token rates until May 17, 2027.
Released
Nov 17, 2026
Context window
1,050,000 tokens
Max output
128,000 tokens
Inputs
Text, Images
Output
Text
Reasoning
Always on
Tool calling
Yes
Structured output
Unconfirmed
Weights
Proprietary

Microsoft model documentation

Same lab

More from Microsoft

Questions

About MAI Code 2 Flash

How much does MAI Code 2 Flash cost?

MAI Code 2 Flash costs $0.05 input / $0.25 output per million tokens (official GitHub Copilot API price). Cached input is $0.005 per million tokens. At a 3:1 input-to-output mix that is $0.10 per million tokens, cheaper than 89% of the 472 priced models we track.

What is the context window of MAI Code 2 Flash?

MAI Code 2 Flash accepts up to 1,050,000 tokens per request and can write up to 128,000 tokens in one response.

How good is MAI Code 2 Flash?

Epoch AI has not published a Capabilities Index score for MAI Code 2 Flash yet.

Is MAI Code 2 Flash open source?

No. MAI Code 2 Flash is proprietary; you use it through an API or partner platforms.

What inputs does MAI Code 2 Flash support?

MAI Code 2 Flash accepts text and images. Smaller mixture-of-experts coding model for quick edits, explanations and iteration.

When was MAI Code 2 Flash released?

Microsoft released MAI Code 2 Flash on Nov 17, 2026.

What are the best alternatives to MAI Code 2 Flash?

The closest current models from other labs on capability, price and release date are Hy4 flash (Tencent, $0.07 / $0.281), Gemini Decision 1 (Google, $0.10 / Free), Ling 3.0 Flash VL (inclusionAI, $0.075 / $0.224) and Nemotron 3.5 Lightning 30B A3B (NVIDIA, $0.06 / $0.20).