Grok 4.7 vs Qwen3.8 Max Prime
API price, context window, capabilities and live speed, side by side.
Grok 4.7 is about 2.0× cheaper than Qwen3.8 Max Prime at a typical 3:1 input-to-output token mix. Qwen3.8 Max Prime has the larger context window (1M vs 500K tokens). Both run on the same UltraGPT API key, so you can switch between them by changing the model field - or list both in models: [...] for automatic fallback.
Grok 4.7 | Qwen3.8 Max Prime | |
|---|---|---|
| Lab | xAI | Alibaba (Qwen) |
| Model id | grok-4.7 | qwen3.8-max-prime |
| Input / 1M tokens | $2 | $4 |
| Cached input / 1M | $0.5 | $0.5 |
| Output / 1M tokens | $6 | $12 |
| Context window | 500K | 1M |
| Input | text, image, file | text, image, video |
| Output | text | text |
| Tool calling | ✓ | ✓ |
| Vision (image input) | ✓ | ✓ |
| Reasoning | — | — |
Cost of 1,000 requests
Estimated from the list prices above; your real cost is reported per request in usage.cost.
| Chatbot1.5K tokens in, 400 out | Grok 4.7 $5.40 | Qwen3.8 Max Prime $10.80 |
|---|---|---|
| RAG over documents20K in, 800 out | Grok 4.7 $44.80 | Qwen3.8 Max Prime $89.60 |
| Coding agent step40K in (80% cached), 1.5K out | Grok 4.7 $41.00 | Qwen3.8 Max Prime $66.00 |
Use both, with automatic fallback
Same key, same endpoint: change the model id between "grok-4.7" and "qwen3.8-max-prime".
curl https://api.ultragpt.pro/v1/chat/completions \
-H "Authorization: Bearer $ULTRAGPT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.7",
"models": ["qwen3.8-max-prime"],
"messages": [{ "role": "user", "content": "Hello!" }]
}'FAQ
Which is cheaper, Grok 4.7 or Qwen3.8 Max Prime?
Grok 4.7: $2 in / $6 out per 1M. Qwen3.8 Max Prime: $4 in / $12 out per 1M. Prices are in USD and billed per use from your UltraGPT balance.
Can I use Grok 4.7 and Qwen3.8 Max Prime with the same API key?
Yes. Both are available through the OpenAI-compatible UltraGPT API at https://api.ultragpt.pro/v1: set model to "grok-4.7" or "qwen3.8-max-prime".
Which has a bigger context window, Grok 4.7 or Qwen3.8 Max Prime?
Grok 4.7: 500,000 tokens. Qwen3.8 Max Prime: 1,000,000 tokens.

