Microsoft logo

Microsoft: MAI Code 2

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

Source-linked mai-code Closed weights Released 2026-11-17
API record Report
InputT
OutputT
Input price$0.5/M
Output price$2.5/M
Context1.05M
Max output128K
Providers1
Inference availability

Providers

Provider-specific identifiers, limits, and listed prices per million tokens. Every row links back to the provider's own documentation.

Report a price
Providers offering MAI Code 2
ProviderProvider model IDContextMax outputInputOutputCache readCapabilitiesDocs
GitHub Copilot mai-code-2 1.05M 128K $0.5 $2.5 $0.025 ReasoningToolsJSON Docs ↗

Capability badges appear only where the provider catalog explicitly lists support. A blank cell means the source is silent, not that the feature is absent.

Listed rates

Price across providers

Input price per million tokens as published by each provider. Bars are drawn from listed rates only — no traffic weighting, since the catalog observes no requests.

Lowest input $0.5/M

Across 1 priced provider

Median input $0.5/M

Midpoint of listed rates

Highest input $0.5/M

Same as the lowest listed rate

Output range $2.5 – $2.5

Per million output tokens

GitHub Copilot $0.5/MLowest
Cost calculator

Estimate a workload

$0.00
Excludes taxes, non-token charges, and tiered discounts.
Specification

Capabilities

Recorded from the source catalog and provider listings.

✓ Reasoning Yes
✓ Tool calling Yes
✓ Structured output Yes
✓ Attachments Yes
✓ Vision input Yes
× Open weights No
Creator
Microsoft
Model family
mai-code
Knowledge cutoff
Not documented
License
Not documented
Release date
2026-11-17
Model ID
microsoft/mai-code-2
Published evaluations

Benchmarks

Every result stays attached to its source, version, metric and harness. Scores from different versions are never merged, and the profile below plots each benchmark against its own population rather than on a shared scale.

Benchmark registry
No published benchmark results

ModelBench does not infer quality from price, context size, or model name. When a source publishes a comparable result, it appears here with its version and link.

Read the methodology
Catalog activity

Change log

Field-level changes detected between successful source imports.

Full change log
No changes recorded

This record has not changed within the retained import history.

Public API

Use this record

Fetch the complete source-linked model record. No key, no account, no rate-limited tier.

API documentation
Endpoint
GET https://modelbench.lol/api/v1/models/microsoft/mai-code-2
curl
curl "https://modelbench.lol/api/v1/models/microsoft/mai-code-2"
Common questions

Frequently asked questions

Answered directly from the stored record — nothing here is generated beyond the catalog's own fields.

What is MAI Code 2?

Microsoft's larger agentic coding model for debugging, multi-file changes and repository-wide reasoning. It is published by Microsoft and catalogued here from Models.dev.

How much does MAI Code 2 cost?

Listed input pricing starts at $0.5 per million tokens from GitHub Copilot.

What is the context length of MAI Code 2?

MAI Code 2 accepts up to 1.05M tokens of context and returns up to 128K output tokens.

Does MAI Code 2 support tool calling and structured output?

Provider catalogs list support for tool calling, structured output, reasoning, and image input.

Which providers serve MAI Code 2?

1 provider list this model: GitHub Copilot.

Are the weights for MAI Code 2 open?

No. This model is served through hosted APIs only.

When was MAI Code 2 released?

The catalog records a release date of 2026-11-17, last verified Nov 29, 2026.

More models from Microsoft

View all →