Grok 4.7 vs MAI Code 2
xAI 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 $6.00 out. MAI Code 2 accepts Vision input; Grok 4.7 does not. MAI Code 2 carries the larger context window at 1,050,000 tokens against 500,000 tokens. No decision turns on context window, closed weights.
Within 5% or equal: Context window (500,000 tokens and 1,050,000 tokens) · Closed weights
Where they differ
3 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 | Grok 4.7 | MAI Code 2 |
|---|---|---|
| Price, 1M in plus 1M out2.7x cheaper on MAI Code 2 | $8.00 | $3.00 |
| InputsVision input on MAI Code 2 | Text, Code | Text, Vision, Code |
| ReleasedMAI Code 2 is newer by 8 weeks | 2026-09-21 | 2026-11-17 |
Released Sept 21, 2026; xAI's Grok 4.7 for coding and knowledge work, on a new, larger base model than Grok 4.6, with a 500k-token context and the same $2/$6 per 1M tokens (under 200k-token prompts; $4/$12 at 200k or more). xAI reports 46.3% on CursorBench 4.0, 71.0% on DeepSWE v1.1 and 37.6% on Terminal-Bench 4.0 (lab-reported).
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 | Grok 4.7 | MAI Code 2 |
|---|---|---|
| Context window | 500,000 tokens | 1,050,000 tokens |
| Max output | Undisclosed | 128,000 tokens |
| Input price / 1M | $2.00 | $0.50 |
| Output price / 1M | $6.00 | $2.50 |
| 1M in + 1M out | $8.00 | $3.00 |
| Weights | Closed (API only) | Closed (API only) |
| Licence | Proprietary API / Grok Build | Microsoft Foundry / Enterprise AI Services Code of Conduct |
| Released | 2026-09-21 | 2026-11-17 |
| Inputs | Text, 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 (unstated version vs Terminal-Bench 2.1, max effort).Grok 4.7: 37.6% · MAI Code 2: 84.6% (Terminal-Bench 2.1, max effort)
Where Grok 4.7 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.
- Larger context: 1,050,000 tokens vs 500,000 tokens on Grok 4.7.
Common questions
Is Grok 4.7 cheaper than MAI Code 2?
Yes for MAI Code 2. Grok 4.7 lists $2.00 in / $6.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, Grok 4.7 or MAI Code 2?
MAI Code 2 accepts 1,050,000 tokens; Grok 4.7 accepts 500,000 tokens.
Is Grok 4.7 or MAI Code 2 open weights?
Neither publishes weights; both are closed API models (Proprietary API / Grok Build; Microsoft Foundry / Enterprise AI Services Code of Conduct).
When were Grok 4.7 and MAI Code 2 released?
Grok 4.7 was released on 2026-09-21 and MAI Code 2 on 2026-11-17. MAI Code 2 is the more recent release.
Do Grok 4.7 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 (4 for Grok 4.7, 3 for MAI Code 2). Prices are official list prices per 1M tokens and change without notice. Methodology