Model comparison - Similar price, same tier
Grok 4.7 vs Qwen3.8-Max
Grok 4.7 is from xAI and Qwen3.8-Max 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-Max 1,000,000 tokens; Qwen3.8-Max 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-Max on August 2, 2026. Both are closed-weights models, available only through an API.
Last verified from each provider's pricing page. All sources
Side-by-side specs
| Spec | Grok 4.7 | Qwen3.8-Max |
|---|---|---|
| Provider | xAI | Alibaba 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 above | 200,000 tokens | - |
| Context window | 500,000 | 1,000,000 |
| Max output | - | 131,072 |
| Release date | ||
| Weights | Closed | Closed |
| API model id | grok-4.7 | qwen3.8-max |
| AI Gateway id | spacexai/grok-4.7 | alibaba/qwen3.8-max |
| 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.
| Workload | Grok 4.7 | Qwen3.8-Max |
|---|---|---|
| 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-Max
- 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-Max 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-Max by model id.
- Use Grok in ClineLists Grok 4.7
- Use Grok in Codex CLILists Grok 4.7
- Use Grok in ContinueLists Grok 4.7
- Use Grok in GitHub CopilotLists Grok 4.7
- Use Grok in GooseLists Grok 4.7
- Use Grok in Kilo CodeLists Grok 4.7
- Use Grok in OpenCodeLists Grok 4.7
- Use Grok in Roo CodeLists Grok 4.7
- Use Grok in ZedLists Grok 4.7
- Use Qwen in Claude CodeLists Qwen3.8-Max
- Use Qwen in Codex CLILists Qwen3.8-Max
- Use Qwen in CursorLists Qwen3.8-Max
- Use Qwen in Kilo CodeLists Qwen3.8-Max
- Use Qwen in OpenCodeLists Qwen3.8-Max
Model pages
FAQ
How do Grok 4.7 and Qwen3.8-Max 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-Max. 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-Max?
Grok 4.7 has a 500,000-token context window and Qwen3.8-Max 1,000,000 tokens; Qwen3.8-Max 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-Max open weights?
Grok 4.7 is closed-weights and is called through xAI's API as grok-4.7. Qwen3.8-Max is closed-weights and is called through Alibaba Cloud (Qwen)'s API as qwen3.8-max.
More comparisons
- Gemini 4 Argon vs Grok 4.7Similar price, same tier
- Gemini 4 Argon vs Qwen3.8-MaxSimilar price, same tier
- GPT-6.1 Sol vs Grok 4.7Similar price, same tier
- GPT-6.1 Sol vs Qwen3.8-MaxSimilar price, same tier
- Claude Sonnet 5.5 vs Grok 4.7Similar price, same tier
- Claude Sonnet 5.5 vs Qwen3.8-MaxSimilar price, same tier
- Claude Opus 5.5 vs Grok 4.7Similar price, same tier
- Claude Opus 5.5 vs Qwen3.8-MaxSimilar price, same tier
Sources
Grok 4.7 verified from docs.x.ai; Qwen3.8-Max verified from alibabacloud.com. This page is as current as the older of the two: .
- https://docs.x.ai/developers/pricing
- https://www.alibabacloud.com/help/en/model-studio/model-pricing
- https://docs.x.ai/developers/models
- https://docs.x.ai/developers/models/grok-4.7
- https://docs.x.ai/developers/models/grok-4.7.md
- https://docs.x.ai/developers/release-notes
- https://x.ai/news
- https://modelstudio.console.alibabacloud.com/ap-southeast-1/model/market/detail/qwen3.8-max
- https://www.qwencloud.com/models/qwen3.8-max
- https://www.alibabacloud.com/help/en/model-studio/text-generation-model
- https://www.alibabacloud.com/help/en/model-studio/context-cache
- https://www.alibabacloud.com/help/en/model-studio/newly-released-models
Newsletter
Get model price changes as they ship
One email per week. New model releases, price cuts and what they mean for your bill.