Gemini 4 Carbon vs MAI Code 2
Google DeepMind vs MicrosoftDataset revised
Answer
MAI Code 2 costs less per token: $0.50 in and $2.50 out per 1M, against $2.00 in and $10.00 out. MAI Code 2 allows 128,000 output tokens in one response, 2.0x larger than the ceiling of Gemini 4 Carbon at 65,536 tokens. Gemini 4 Carbon accepts Audio and Video input; MAI Code 2 does not. No decision turns on context window, max output, closed weights, release date.
Within 5% or equal: Context window (1,048,576 tokens and 1,050,000 tokens) · Max output (65,536 tokens and 128,000 tokens) · Closed weights · Release date (2026-11-10 and 2026-11-17)
Where they differ
2 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 | Gemini 4 Carbon | MAI Code 2 |
|---|---|---|
| Price, 1M in plus 1M out4.0x cheaper on MAI Code 2 | $12.00 | $3.00 |
| InputsAudio, Video input on Gemini 4 Carbon | Text, Vision, Audio, Video, Code | Text, Vision, Code |
Now generally available (Nov 10, 2026) to developers, enterprises, scientists, and consumers; Google DeepMind's strongest model - 60 on Artificial Analysis Intelligence Index v5.0.1, with state-of-the-art cybersecurity; introductory $2/$10 per 1M tokens (cached 95% off), reverting to $4/$20 after Nov 30, 2026.
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.
Specification
| Field | Gemini 4 Carbon | MAI Code 2 |
|---|---|---|
| Context window | 1,048,576 tokens | 1,050,000 tokens |
| Max output | 65,536 tokens | 128,000 tokens |
| Input price / 1M | $2.00 | $0.50 |
| Output price / 1M | $10.00 | $2.50 |
| 1M in + 1M out | $12.00 | $3.00 |
| Weights | Closed (API only) | Closed (API only) |
| Licence | Proprietary API | Microsoft Foundry / Enterprise AI Services Code of Conduct |
| Released | 2026-11-10 | 2026-11-17 |
| Inputs | Text, Vision, Audio, Video, 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 (AA vs Terminal-Bench 2.1, max effort).Gemini 4 Carbon: 65.2% (AA) · MAI Code 2: 84.6% (Terminal-Bench 2.1, max effort)
Where Gemini 4 Carbon leads
- Nothing measured separates it from MAI Code 2: price, context, output, modalities, weights and published benchmarks are equal or within 5%.
Where MAI Code 2 leads
- Cheaper input: $0.50 vs $2.00 per 1M tokens.
- Longer single response: 128,000 output tokens vs 65,536 tokens on Gemini 4 Carbon.
Common questions
Is Gemini 4 Carbon cheaper than MAI Code 2?
Yes for MAI Code 2. Gemini 4 Carbon lists $2.00 in / $10.00 out per 1M tokens; MAI Code 2 lists $0.50 in / $2.50 out. Both are official list prices recorded with a source link.
Which has the larger context window, Gemini 4 Carbon or MAI Code 2?
MAI Code 2 accepts 1,050,000 tokens; Gemini 4 Carbon accepts 1,048,576 tokens.
Is Gemini 4 Carbon or MAI Code 2 open weights?
Neither publishes weights; both are closed API models (Proprietary API; Microsoft Foundry / Enterprise AI Services Code of Conduct).
When were Gemini 4 Carbon and MAI Code 2 released?
Gemini 4 Carbon was released on 2026-11-10 and MAI Code 2 on 2026-11-17. MAI Code 2 is the more recent release.
Do Gemini 4 Carbon and MAI Code 2 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 Gemini 4 Carbon, 3 for MAI Code 2). Prices are official list prices per 1M tokens and change without notice. Methodology