Input / output, USD per 1M tokens. Arrow keys move, Enter opens.

MAI Code 2 from Microsoft: $0.50 input and $2.50 output per 1M tokens, 1,050,000 context. Microsoft's larger agentic coding model for debugging, multi-file changes and repository-wide reasoning Data last refreshed Nov 30, 2026, 07:15 AM UTC.

Models / Microsoft / MAI Code 2

Microsoft · mai-code

MAI Code 2

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

$0.50 in · $2.50 out

per 1M tokens · provider rate closest to the median. No first-party Microsoft price was listed. The reference price is GitHub Copilot's rate, the provider closest to the median.

Context
1,050,000
Max output
128,000
Cache read
$0.025
Cache write
—
Reasoning
Yes
Tool calls
Yes
Structured output
Unknown
Vision
Yes
Open weights
No
License
—
Released
Nov 17, 2026
Updated in source
Nov 17, 2026
Knowledge
—
Providers
1

Announcement

What this model costs per month

Prices are USD per 1M tokens. A month is 30 days. Cache hits use the cache-read rate when the model has one; otherwise the cache field is ignored.

monthly = requests/day × 30 × (input tokens × (1 − cache hit) × input price + input tokens × cache hit × cache-read price + output tokens × output price) ÷ 1,000,000

Providers

Base rates from Models.dev. One row per provider.
ProviderInputOutputCache readCache writeStatus
GitHub Copilotreference$0.50$2.50$0.025——