Skip to content
llmmodels
Reasoning LLMReasoningTool callingStructured outputVision

MAI Code 2

by Microsoft · Nov 17, 2026

MAI Code 2 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.5 per million input tokens and $2.50 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

Microsoft's larger agentic coding model for debugging, multi-file changes and repository-wide reasoning

Where to run MAI Code 2 — API providers & pricing

ProviderInput $/1MOutput $/1MCached inputContext
GitHub Copilot$0.5$2.50$0.0251.1M

MAI Code 2 vs alternatives

Alternatives to MAI Code 2
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
Qwen3.6 PlusAlibaba (Qwen)Apr 2026—1M$0.5$3148.9
Mistral Large 4Mistral AIOct 20261.1T1M$0.7$2.10154.6
Qwen3.7 PlusAlibaba (Qwen)Jun 2026—1M$0.4$1.60147.9
Gemini 3.8 FlashGoogle DeepMindSep 2026—1M$0.75$3.75158.8
Gemini 3.7 FlashGoogle DeepMindAug 2026—1M$0.75$3.75158.4
GPT-5.4 miniOpenAIMar 2026—400K$0.75$4.50149.4
GPT-6.1 TerraOpenAIOct 2026—1.1M$1$5167.7
Muse Spark 1.1MetaApr 2026—1M$1.25$4.25154.9

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?

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

What is the context window of MAI Code 2?

MAI Code 2 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 cost?

MAI Code 2 costs $0.5 per 1M input tokens and $2.50 per 1M output tokens, with cached input at $0.025 per 1M. Prices vary across the 1 providers that serve it.

Is MAI Code 2 open source?

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

Where can I use MAI Code 2?

MAI Code 2 is available via 1 API provider.

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