Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Model comparison - Similar price, same tier

Grok 4.7 vs Qwen3.8-2.4T-A95B

Grok 4.7 is from xAI and Qwen3.8-2.4T-A95B is from Alibaba Cloud (Qwen). Both list the same first-party API price: $2 per 1M input tokens and $6 per 1M output tokens. Grok 4.7 has a 500,000-token context window and Qwen3.8-2.4T-A95B 1,000,000 tokens; Qwen3.8-2.4T-A95B returns up to 131,072 output tokens per response, and no primary source states a max output for Grok 4.7. Grok 4.7 was released on September 21, 2026 and Qwen3.8-2.4T-A95B on August 12, 2026. Qwen3.8-2.4T-A95B publishes open weights (Qwen3.8-Max license (Hugging Face license_name qwen3.8-max, license tag: other)); Grok 4.7 is closed-weights.

Last verified from each provider's pricing page. All sources

xAI - Closed

Grok 4.7
Input / 1M
$2
Output / 1M
$6
Context
500K

Alibaba Cloud (Qwen) - Open

Qwen3.8-2.4T-A95B
Input / 1M
$2
Output / 1M
$6
Context
1M

Side-by-side specs

SpecGrok 4.7Qwen3.8-2.4T-A95B
ProviderxAIAlibaba Cloud (Qwen)
Input / 1M tokens$2$2
Output / 1M tokens$6$6
Cache read / 1M$0.50$0.17
Cache write / 1M-$2.50
Long-context rates above200,000 tokens-
Context window500,0001,000,000
Max output-131,072
Release date
WeightsClosedOpen
License-Qwen3.8-Max license (Hugging Face license_name qwen3.8-max, license tag: other)
API model idgrok-4.7qwen3.8-2.4t-a95b
AI Gateway idspacexai/grok-4.7alibaba/qwen3.8-2.4t-a95b
Last verified

Prices in USD per 1M tokens at each provider's standard first-party rate. A dash means the provider does not bill that item separately or no primary page states it.

What each costs in practice

The same three workloads every model page uses, worked from each model's standard list rates. Swap in your own token counts with the math on each model's page.

WorkloadGrok 4.7Qwen3.8-2.4T-A95B
One agent session1M input tokens and 100K output tokens, no caching.$2.60$2.60
A chat app10,000 requests a day at 2K input and 500 output tokens each.$70.00$2,100.00 per 30-day month$70.00$2,100.00 per 30-day month
The same session at a 90% cache hit90% of the input is read from the prompt cache. The one-time cache write premium is not included.$1.25$0.953
Show the math

Grok 4.7

  • One agent sessionInput: 1M x $2 = $2.00Output: 0.1M x $6 = $0.60
  • A chat appInput: 20M x $2 = $40.00Output: 5M x $6 = $30.00
  • The same session at a 90% cache hitCached input: 0.9M x $0.50 = $0.45Uncached input: 0.1M x $2 = $0.20Output: 0.1M x $6 = $0.60

Qwen3.8-2.4T-A95B

  • One agent sessionInput: 1M x $2 = $2.00Output: 0.1M x $6 = $0.60
  • A chat appInput: 20M x $2 = $40.00Output: 5M x $6 = $30.00
  • The same session at a 90% cache hitCached input: 0.9M x $0.17 = $0.153Uncached input: 0.1M x $2 = $0.20Output: 0.1M x $6 = $0.60

Benchmarks under the same setting

No board in the benchmark directory lists both Grok 4.7 and Qwen3.8-2.4T-A95B under the same setting, so there is no like-for-like score to show here.

Set them up in your tools

Step-by-step guides whose official docs list Grok 4.7 or Qwen3.8-2.4T-A95B by model id.

Model pages

FAQ

How do Grok 4.7 and Qwen3.8-2.4T-A95B compare on price?

Both list the same first-party API price: $2 per 1M input tokens and $6 per 1M output tokens. For one agent session of 1M input and 100K output tokens with no caching, that is $2.60 on Grok 4.7 and $2.60 on Qwen3.8-2.4T-A95B. Prices are each provider's first-party list rates, verified October 17, 2026 and October 17, 2026.

What are the context windows of Grok 4.7 and Qwen3.8-2.4T-A95B?

Grok 4.7 has a 500,000-token context window and Qwen3.8-2.4T-A95B 1,000,000 tokens; Qwen3.8-2.4T-A95B returns up to 131,072 output tokens per response, and no primary source states a max output for Grok 4.7.

Are Grok 4.7 and Qwen3.8-2.4T-A95B open weights?

Grok 4.7 is closed-weights and is called through xAI's API as grok-4.7. Qwen3.8-2.4T-A95B's weights are published at huggingface.co under the Qwen3.8-Max license (Hugging Face license_name qwen3.8-max, license tag: other).

More comparisons

Sources

Grok 4.7 verified from docs.x.ai; Qwen3.8-2.4T-A95B verified from alibabacloud.com. This page is as current as the older of the two: .

Newsletter

Get model price changes as they ship

One email per week. New model releases, price cuts and what they mean for your bill.