Curated dataset78 models

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.

AxisGrok 4.7MAI Code 2
Price, 1M in plus 1M out2.7x cheaper on MAI Code 2$8.00$3.00
InputsVision input on MAI Code 2Text, CodeText, Vision, Code
ReleasedMAI Code 2 is newer by 8 weeks2026-09-212026-11-17

Specification

FieldGrok 4.7MAI Code 2
Context window500,000 tokens1,050,000 tokens
Max outputUndisclosed128,000 tokens
Input price / 1M$2.00$0.50
Output price / 1M$6.00$2.50
1M in + 1M out$8.00$3.00
WeightsClosed (API only)Closed (API only)
LicenceProprietary API / Grok BuildMicrosoft Foundry / Enterprise AI Services Code of Conduct
Released2026-09-212026-11-17
InputsText, CodeText, 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