Skip to content
llmmodels
Reasoning LLMReasoningTool callingStructured outputVision

MAI Code 2 Flash

by Microsoft · Nov 17, 2026

MAI Code 2 Flash is a proprietary reasoning llm from Microsoft, released Nov 17, 2026. It has a 1.1M-token context window and accepts text, image input. API pricing starts at $0.05 per million input tokens and $0.25 per million output tokens.

Provider
Microsoft
Released
Nov 17, 2026
Type
Reasoning LLM
Parameters
Undisclosed
Context window
1,050,000 tokens
Max output
128,000 tokens
Input
text, image
Output
text
Weights
Closed
License
Proprietary
Knowledge cutoff
—
Status
Available via API

About MAI Code 2 Flash

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

Where to run MAI Code 2 Flash — API providers & pricing

ProviderInput $/1MOutput $/1MCached inputContext
GitHub Copilot$0.05$0.25$0.0051.1M

MAI Code 2 Flash vs alternatives

Alternatives to MAI Code 2 Flash
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
Claude Haiku 5.5AnthropicOct 2026—1M$0.1$0.5160.3
GPT-6 LunaOpenAISep 2026—1.1M$0.1$0.5156.4
Muse Spark 1.3 ContributorMetaSep 2026—1M$0.1$0.2158.2
Muse Spark 1.2MetaAug 2026—1M$0.1$0.2155.0
LongCat-2.5Meituan (LongCat)Nov 20261.8T1M———
Claude Haiku 5.5 (batch)AnthropicOct 2026—1M$0.05$0.25—
GPT-6 Luna Pro (batch)OpenAISep 2026—1.1M$0.05$0.25—
Liquid AutoLiquid AIOct 2026—10M———

More models from Microsoft

All Microsoft models →
ModelReleasedParamsContextInput $/1MOutput $/1M
Phi 4openDec 202415B16K$0.07$0.14
Phi-2openDec 20232.8B———
Phi-1.5openSep 20231.4B———
Phi 4 MiniopenFeb 20253.8B8K$0.17$0.68
Florence-2-baseopenJun 2024232M———
harrier-oss-v1-0.6bopenMar 2026596M———
harrier-oss-v1-270mopenMar 2026268M———
Phi-4-reasoning-vision-15BopenJan 202615B———

Frequently asked questions

Who made MAI Code 2 Flash?

MAI Code 2 Flash was developed by Microsoft (United States). It was released on Nov 17, 2026.

What is the context window of MAI Code 2 Flash?

MAI Code 2 Flash supports a context window of 1,050,000 tokens (1.1M) and can generate up to 128,000 output tokens per response.

How much does MAI Code 2 Flash cost?

MAI Code 2 Flash costs $0.05 per 1M input tokens and $0.25 per 1M output tokens, with cached input at $0.005 per 1M. Prices vary across the 1 providers that serve it.

Is MAI Code 2 Flash open source?

No. MAI Code 2 Flash is a proprietary model available only through its provider's API and apps.

Where can I use MAI Code 2 Flash?

MAI Code 2 Flash is available via 1 API provider.

Sources: models.dev. Last updated 2026-11-22.