MAI Code 2 vs Mistral Large 4
Microsoft vs Mistral AIDataset revised
Answer
Mistral Large 4 costs less per token: $0.70 in and $2.10 out per 1M, against $0.50 in and $2.50 out. Only Mistral Large 4 publishes weights, so only that one can be self-hosted or audited. MAI Code 2 carries the larger context window at 1,050,000 tokens against 1,000,000 tokens. No decision turns on inputs.
Within 5% or equal: Inputs (Text, Vision, Code)
Where they differ
4 axes with a real gap. The size of each gap is printed under the axis, because a five cent difference and a three times larger ceiling are not the same kind of fact.
| Axis | MAI Code 2 | Mistral Large 4 |
|---|---|---|
| Context window5% more on MAI Code 2 | 1,050,000 tokens | 1,000,000 tokens |
| Price, 1M in plus 1M out7% cheaper on Mistral Large 4 | $3.00 | $2.80 |
| Weightsself-hostable: Mistral Large 4 only | Closed | Open |
| ReleasedMAI Code 2 is newer by 6 weeks | 2026-11-17 | 2026-10-06 |
Released Nov 17, 2026; Microsoft's frontier agentic coding model with a 1M-token context window, reaching 98% of GPT-6.1 Sol coding quality at 40% of the price and 96% of Claude Opus 5.5 at 5% of the cost; 84.6% on Terminal-Bench 2.1 and 73.2% on DeepSWE 1.1 (max reasoning effort, GitHub Copilot CLI harness, self-reported). The $0.50/$2.50 price is a promotional rate through May 17, 2027; the later rate is $1/$5.
Released Oct 6, 2026 in public preview on Mistral Studio at $0.70/$2.10 per 1M tokens; Mistral's largest model, a natively multimodal MoE with 1.05T total and 52B active parameters, a 1M-token context and training data in 160+ languages. Mistral reports 61.7% on DeepSWE v1.1 and 28.3% on Terminal-Bench 4.0 (self-reported); the open weights were promised for the end of October.
Specification
| Field | MAI Code 2 | Mistral Large 4 |
|---|---|---|
| Context window | 1,050,000 tokens | 1,000,000 tokens |
| Max output | 128,000 tokens | Undisclosed |
| Input price / 1M | $0.50 | $0.70 |
| Output price / 1M | $2.50 | $2.10 |
| 1M in + 1M out | $3.00 | $2.80 |
| Weights | Closed (API only) | Open |
| Licence | Microsoft Foundry / Enterprise AI Services Code of Conduct | Mistral Ecosystem Open Weight License |
| Released | 2026-11-17 | 2026-10-06 |
| Inputs | Text, Vision, Code | Text, Vision, Code |
Benchmarks both laboratories published
Shown side by side only when both records name the same test and the same version.
No benchmark is reported by both laboratories at the same test and version, so no row is shown.
1 benchmarks withheldreported at different tests or versions
- Terminal-Bench, Different tests or versions (Terminal-Bench 2.1, max effort vs Terminal-Bench 4.0).MAI Code 2: 84.6% (Terminal-Bench 2.1, max effort) · Mistral Large 4: 28.3% (Terminal-Bench 4.0)
Where MAI Code 2 leads
- Cheaper input: $0.50 vs $0.70 per 1M tokens.
- Larger context: 1,050,000 tokens vs 1,000,000 tokens on Mistral Large 4.
Where Mistral Large 4 leads
- Open weights under Mistral Ecosystem Open Weight License: self-hostable and auditable, unlike MAI Code 2.
Common questions
Is MAI Code 2 cheaper than Mistral Large 4?
Yes for MAI Code 2. MAI Code 2 lists $0.50 in / $2.50 out per 1M tokens; Mistral Large 4 lists $0.70 in / $2.10 out. Both are official list prices recorded with a source link.
Which has the larger context window, MAI Code 2 or Mistral Large 4?
MAI Code 2 accepts 1,050,000 tokens; Mistral Large 4 accepts 1,000,000 tokens.
Is MAI Code 2 or Mistral Large 4 open weights?
Mistral Large 4 publishes open weights under Mistral Ecosystem Open Weight License. MAI Code 2 is closed (Microsoft Foundry / Enterprise AI Services Code of Conduct).
When were MAI Code 2 and Mistral Large 4 released?
MAI Code 2 was released on 2026-11-17 and Mistral Large 4 on 2026-10-06. MAI Code 2 is the more recent release.
Do MAI Code 2 and Mistral Large 4 report the same benchmarks?
No. Both laboratories publish a score for Terminal-Bench, but not on the same test or version, so ModelRegistry does not place them side by side. Comparing different evaluations would produce a ranking the evidence cannot support.
Related comparisons
Every figure above comes from the primary source on each model page (3 for MAI Code 2, 2 for Mistral Large 4). Prices are official list prices per 1M tokens and change without notice. Methodology