ZMIME
Comparison · 3 models · Updated Nov 18, 2026

Grok 4.7 vs Qwen3.8 Max vs Claude Sonnet 5

Too close to call on our weighted score (Qwen3.8 Max 83, Claude Sonnet 5 80, Grok 4.7 79). The right pick depends on what you value most.

Price in rating: Excluded · Include price

  1. xAI

    Grok 4.7

    Released Sep 21, 2026New

    79/100
    • ECI156.4
    • Price$2.00 / $6.00
    • Context500K
  2. Alibaba (Qwen)

    Qwen3.8 Max

    Released Aug 3, 2026

    83/100
    • ECI157.6
    • Price$2.00 / $6.00
    • Context1M
  3. Anthropic

    Claude Sonnet 5

    Released Jun 30, 2026

    80/100
    • ECI156.9
    • Price$2.00 / $10.00
    • Context1M
01 — Verdict

Too close to call

It is close. Our weighted score puts them within 2 points (Qwen3.8 Max 83/100, Claude Sonnet 5 80/100, Grok 4.7 79/100), so choose by what matters most for your work: Qwen3.8 Max for raw capability and Grok 4.7 on price. The score weighs capability 67%, inputs & features 20%, context window 13%.

  • CapabilityQwen3.8 MaxCapabilities Index (ECI): Qwen3.8 Max 157.6 · Claude Sonnet 5 156.9 · Grok 4.7 156.4
  • Lowest priceGrok 4.7 and Qwen3.8 MaxGrok 4.7 $3.00 · Qwen3.8 Max $3.00 · Claude Sonnet 5 $4.00 per 1M tokens (3:1 blend)
  • Longest contextQwen3.8 Max and Claude Sonnet 5Qwen3.8 Max 1,000,000 · Claude Sonnet 5 1,000,000 · Grok 4.7 500,000 tokens
  • Widest inputsQwen3.8 MaxGrok 4.7: Text, Images, PDFs · Qwen3.8 Max: Text, Images, PDFs, Video · Claude Sonnet 5: Text, Images, PDFs
  • Self-hostingNo confirmed open weightsAll three are available only through APIs
How the score is built
MeasureWeightGrok 4.7Qwen3.8 MaxClaude Sonnet 5
CapabilityCapabilities Index (ECI)67%838484
Inputs & features20%809080
Context window13%536464
Overall100%79/10083/10080/100
02 — Side by side

Every spec in one table

Highlighted cells lead their row. Dashes mean the data is not published.

Grok 4.7 vs Qwen3.8 Max vs Claude Sonnet 5 specifications side by side
SpecificationGrok 4.7xAIQwen3.8 MaxAlibaba (Qwen)Claude Sonnet 5Anthropic
Capability
Capabilities Index (ECI)156.4157.6 (best)156.9
ECI rank#37 of 158#30 of 158 (best)#35 of 158
GPQA DiamondGraduate-level science questions92.7% (best)92.7%90.5%
FrontierMath Tiers 1–3Research-level mathematics53.0%74.7% (best)65.6%
OTIS Mock AIME 2024–2025Competition mathematics98.1%99.4% (best)94.7%
SimpleQA VerifiedShort factual questions56.0% (best)45.8%33.7%
Price per million tokens
Input$2.00$2.00$2.00
Output$6.00 (best)$6.00 (best)$10.00
Cached input$0.50$0.25$0.20 (best)
Blended (3:1)$3.00 (best)$3.00 (best)$4.00
Long-context rateOver 200K: $4.00 / $12.00Same rateSame rate
Price sourceOfficial xAI APIOfficial Alibaba APIOfficial Anthropic API
Limits
Context window500,000 tokens1,000,000 tokens (best)1,000,000 tokens (best)
Max output500,000 tokens (best)131,072 tokens128,000 tokens
Inputs and features
TextYesYesYes
ImagesYesYesYes
PDFsYesYesYes
AudioNoNoNo
VideoNoYesNo
ReasoningYeslow · medium · high · xhighYeslow · medium · xhighYeslow · medium · high · xhigh · max
Tool callingYesYesYes
Structured outputYesYesYes
Availability
WeightsProprietaryProprietaryProprietary
API model IDgrok-4.7qwen3.8-maxclaude-sonnet-5
API providers353855 (best)
ReleasedSep 21, 2026Aug 3, 2026Jun 30, 2026
Knowledge cutoffMay 2026—Jan 31, 2026
03 — Cost

What would a month cost?

Enter your expected volume in millions of tokens. List prices only; caching and batch discounts would lower these.

  • Grok 4.7$32.00
  • Qwen3.8 Max$32.00
  • Claude Sonnet 5$40.00
04 — Questions

Which should you choose?

Which is better: Grok 4.7, Qwen3.8 Max or Claude Sonnet 5?

It is close. Our weighted score puts them within 2 points (Qwen3.8 Max 83/100, Claude Sonnet 5 80/100, Grok 4.7 79/100), so choose by what matters most for your work: Qwen3.8 Max for raw capability and Grok 4.7 on price. The score weighs capability 67%, inputs & features 20%, context window 13%.

Which is cheaper, Grok 4.7, Qwen3.8 Max or Claude Sonnet 5?

Grok 4.7 is cheaper at $2.00 input / $6.00 output per million tokens (official xAI API price). Qwen3.8 Max costs $2.00 input / $6.00 output per million tokens (official Alibaba API price); Claude Sonnet 5 costs $2.00 input / $10.00 output per million tokens (official Anthropic API price). At a typical mix of three input tokens to one output token, that is $3.00 per million tokens for Grok 4.7 versus $3.00 for Qwen3.8 Max (1× as much) and $4.00 for Claude Sonnet 5 (1.3× as much).

Which scores higher on benchmarks?

Qwen3.8 Max scores higher on the Capabilities Index (ECI): Qwen3.8 Max 157.6 (#30 of 158), Claude Sonnet 5 156.9 (#35 of 158) and Grok 4.7 156.4 (#37 of 158). The confidence ranges of the top two overlap (155.5–159.9 vs 154.9–159.1), so treat the gap as small. On individual benchmarks: GPQA Diamond — Grok 4.7 92.7%, Qwen3.8 Max 92.7%, Claude Sonnet 5 90.5%; FrontierMath Tiers 1–3 — Qwen3.8 Max 74.7%, Claude Sonnet 5 65.6%, Grok 4.7 53.0%; OTIS Mock AIME 2024–2025 — Qwen3.8 Max 99.4%, Grok 4.7 98.1%, Claude Sonnet 5 94.7%; SimpleQA Verified — Grok 4.7 56.0%, Qwen3.8 Max 45.8%, Claude Sonnet 5 33.7%.

Which is better for coding?

There are no published SWE-bench Verified results for Grok 4.7, Qwen3.8 Max and Claude Sonnet 5 yet, so there is no like-for-like coding score. On overall capability, Qwen3.8 Max leads, which tends to carry over to coding, but test on your own codebase. All three support tool calling for agent workflows.

Which has the bigger context window?

Qwen3.8 Max and Claude Sonnet 5 have the largest context windows (1,000,000 and 1,000,000 tokens), against 500,000 for Grok 4.7. Maximum output per response: Grok 4.7 up to 500,000, Qwen3.8 Max up to 131,072, Claude Sonnet 5 up to 128,000 tokens.

Which can read images, PDFs, audio or video?

Grok 4.7 accepts text, images and PDFs; Qwen3.8 Max accepts text, images, PDFs and video; Claude Sonnet 5 accepts text, images and PDFs. Qwen3.8 Max handles the widest range of inputs.

Are any of these open source?

No. Grok 4.7, Qwen3.8 Max and Claude Sonnet 5 are proprietary and only available through APIs and apps.

Which is newer?

Grok 4.7 is the newest, released Sep 21, 2026. Qwen3.8 Max came out Aug 3, 2026; Claude Sonnet 5 came out Jun 30, 2026. Knowledge cutoff: Grok 4.7 May 2026, Claude Sonnet 5 Jan 31, 2026.

How do you decide the winner?

This rating uses capability (67%, independent benchmark results); inputs & features (20%, image, PDF, audio and video input, tool calling, structured output and reasoning); context window (13%, maximum tokens per request, log scale). Dimensions missing for any model are dropped and the remaining weights rescaled, so every model is judged on the same evidence. Specs and prices come from public model listings and the labs’ own API pages; capability scores come from independent benchmark runs. Data updated Nov 18, 2026.