Curated dataset78 models

MAI Code 2 vs Hy4

Microsoft vs Tencent HunyuanDataset revised

Answer

MAI Code 2 costs less per token: $0.50 in and $2.50 out per 1M, against $0.83 in and $2.50 out. No decision turns on context window, price, closed weights, inputs, release date. Neither record publishes a benchmark score.

Within 5% or equal: Context window (1,050,000 tokens and 1,048,576 tokens) · Price ($3.00 and $3.33 per 1M in plus 1M out) · Closed weights · Inputs (Text, Vision, Code) · Release date (2026-11-17 and 2026-11-04)

Where they differ

0 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.

AxisMAI Code 2Hy4

Specification

FieldMAI Code 2Hy4
Context window1,050,000 tokens1,048,576 tokens
Max output128,000 tokensUndisclosed
Input price / 1M$0.50$0.83
Output price / 1M$2.50$2.50
1M in + 1M out$3.00$3.33
WeightsClosed (API only)Closed (API only)
LicenceMicrosoft Foundry / Enterprise AI Services Code of ConductTencent Hunyuan API (weights and system card planned)
Released2026-11-172026-11-04
InputsText, Vision, 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.

Where MAI Code 2 leads

  • Cheaper input: $0.50 vs $0.83 per 1M tokens.

Where Hy4 leads

  • Nothing measured separates it from MAI Code 2: price, context, output, modalities, weights and published benchmarks are equal or within 5%.

Common questions

Is MAI Code 2 cheaper than Hy4?

Yes for MAI Code 2. MAI Code 2 lists $0.50 in / $2.50 out per 1M tokens; Hy4 lists $0.83 in / $2.50 out. Both are official list prices recorded with a source link.

Which has the larger context window, MAI Code 2 or Hy4?

MAI Code 2 accepts 1,050,000 tokens; Hy4 accepts 1,048,576 tokens.

Is MAI Code 2 or Hy4 open weights?

Neither publishes weights; both are closed API models (Microsoft Foundry / Enterprise AI Services Code of Conduct; Tencent Hunyuan API (weights and system card planned)).

When were MAI Code 2 and Hy4 released?

MAI Code 2 was released on 2026-11-17 and Hy4 on 2026-11-04. MAI Code 2 is the more recent release.

Do MAI Code 2 and Hy4 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, 2 for Hy4). Prices are official list prices per 1M tokens and change without notice. Methodology