# Grok 4.7 vs Qwen3.8 Max

As of November 23, 2026, Grok 4.7 and Qwen3.8 Max cost the same: $2.00 per 1M input tokens and $6.00 per 1M output tokens. Qwen3.8 Max has the larger context window: 992K tokens versus 500K.

- Page: https://models.litellm.ai/compare/grok-4.7-vs-qwen3.8-max
- Grok 4.7: https://models.litellm.ai/models/grok-4.7
- Qwen3.8 Max: https://models.litellm.ai/models/qwen3.8-max

## Side by side

| | Grok 4.7 | Qwen3.8 Max |
|---|---|---|
| Input, per 1M tokens | $2.00 | $2.00 |
| Output, per 1M tokens | $6.00 | $6.00 |
| Cache read, per 1M tokens | $0.50 | $0.25 |
| Cache write, per 1M tokens | – | – |
| Context window | 500,000 tokens | 991,808 tokens |
| Max output | 500,000 tokens | 131,072 tokens |
| Image input | Yes | Yes |
| Tool calling | Yes | Yes |
| Structured output (JSON) | Yes | Yes |
| Prompt caching | Yes | Yes |
| Reasoning | Yes | Yes |
| Providers on LiteLLM | 11 | 12 |
| Price shown is from | xAI | Alibaba Cloud Model Studio |
| Added to LiteLLM | September 21, 2026 | August 7, 2026 |

Headline prices in USD per 1M tokens, from LiteLLM's model price file.

## Cheapest provider for each

- Grok 4.7: xAI at $2.00 input per 1M tokens (`xai/grok-4.7`)
- Qwen3.8 Max: DeepInfra at $1.65 input per 1M tokens (`deepinfra/Qwen/Qwen3.8-Max`)

## Benchmark scores

| Benchmark | Grok 4.7 | Qwen3.8 Max |
|---|---|---|
| FrontierSWE (Coding and agents) | 29.5% (xhigh) | 15.8% (xhigh) |
| APEX-Agents (Coding and agents) | 70.0% | 63.3% |
| GPQA Diamond (Reasoning and knowledge) | 92.7% (xhigh) | 92.7% (xhigh) |
| SimpleQA Verified (Reasoning and knowledge) | 56.0% (xhigh) | 45.8% (xhigh) |
| FrontierMath (tiers 1-3) (Math) | 53.0% (xhigh) | 74.7% (xhigh) |
| FrontierMath (tier 4) (Math) | 17.1% (xhigh) | 46.3% (xhigh) |
| OTIS Mock AIME 2024-2025 (Math) | 98.1% (xhigh) | 99.4% (xhigh) |

From the Epoch AI Benchmarking Hub (https://epoch.ai/benchmarks), CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/), data as of September 22, 2026: Epoch's own runs and results it collects from each benchmark's leaderboard. Higher is better.

## When to pick which

- Grok 4.7: Returns up to 500,000 tokens per response, vs 131,072.
- Qwen3.8 Max: Larger context window: 991,808 vs 500,000 tokens.

## FAQ

### Which is cheaper, Grok 4.7 or Qwen3.8 Max?

They cost the same: $2.00 per 1M input tokens and $6.00 per 1M output tokens, as of November 23, 2026.

### Which has the larger context window, Grok 4.7 or Qwen3.8 Max?

Qwen3.8 Max has the larger context window: 991,808 tokens, versus 500,000 for Grok 4.7.

### Can I switch from Grok 4.7 to Qwen3.8 Max without changing my code?

Yes. Through LiteLLM both use the OpenAI format, so switching means changing the model name from "xai/grok-4.7" to "dashscope/qwen3.8-max", or pointing a LiteLLM gateway model alias at the other model. You can also use one as a fallback for the other.
