MAI Code 2 vs Sarvam 105B
Microsoft vs Sarvam AIDataset revised
Answer
The two are billed in different units (MAI Code 2: per 1M tokens, Sarvam 105B: per 1M tokens), so no per-token price comparison is offered. MAI Code 2 allows 128,000 output tokens in one response, 31x larger than the ceiling of Sarvam 105B at 4,096 tokens. MAI Code 2 accepts Vision input; Sarvam 105B does not. Only Sarvam 105B publishes weights, so only that one can be self-hosted or audited.
Where they differ
6 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 | Sarvam 105B |
|---|---|---|
| Context window8.2x more on MAI Code 2 | 1,050,000 tokens | 128,000 tokens |
| Max output31x larger output ceiling on MAI Code 2 | 128,000 tokens | 4,096 tokens |
| Billing unitdifferent units, not comparable | per 1M tokens | per 1M tokens |
| Weightsself-hostable: Sarvam 105B only | Closed | Open |
| InputsVision input on MAI Code 2 | Text, Vision, Code | Text, Code |
| ReleasedMAI Code 2 is newer by 37 weeks | 2026-11-17 | 2026-03-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 Mar 6, 2026; India's sovereign 105B MoE trained from scratch on 12T tokens, which Sarvam reports as state-of-the-art across 22 Indian languages, with 98.6 Math500 and 49.5 BrowseComp.
Specification
| Field | MAI Code 2 | Sarvam 105B |
|---|---|---|
| Context window | 1,050,000 tokens | 128,000 tokens |
| Max output | 128,000 tokens | 4,096 tokens |
| Billing unit | per 1M tokens | per 1M tokens |
| Weights | Closed (API only) | Open |
| Licence | Microsoft Foundry / Enterprise AI Services Code of Conduct | Apache 2.0 |
| Released | 2026-11-17 | 2026-03-06 |
| Inputs | Text, Vision, Code | Text, 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.
Where MAI Code 2 leads
- Larger context: 1,050,000 tokens vs 128,000 tokens on Sarvam 105B.
- Longer single response: 128,000 output tokens vs 4,096 tokens on Sarvam 105B.
Where Sarvam 105B leads
- Open weights under Apache 2.0: self-hostable and auditable, unlike MAI Code 2.
Common questions
Is MAI Code 2 cheaper than Sarvam 105B?
The two models are not billed in the same unit (MAI Code 2: per 1M tokens; Sarvam 105B: per 1M tokens), so a per-token comparison would be misleading.
Which has the larger context window, MAI Code 2 or Sarvam 105B?
MAI Code 2 accepts 1,050,000 tokens; Sarvam 105B accepts 128,000 tokens.
Is MAI Code 2 or Sarvam 105B open weights?
Sarvam 105B publishes open weights under Apache 2.0. MAI Code 2 is closed (Microsoft Foundry / Enterprise AI Services Code of Conduct).
When were MAI Code 2 and Sarvam 105B released?
MAI Code 2 was released on 2026-11-17 and Sarvam 105B on 2026-03-06. MAI Code 2 is the more recent release.
Do MAI Code 2 and Sarvam 105B report the same benchmarks?
No. The two records do not publish a score for the same benchmark. 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, 3 for Sarvam 105B). Prices are official list prices per 1M tokens and change without notice. Methodology