Skip to content

Grok 4.7 vs Qwen3.8 Max Prime pricing

xAI Grok 4.7 and Qwen3.8 Max Prime side by side: token prices, cache and batch prices, limits, and the monthly cost of your own workload.

Your workload

90M input and 18M output tokens a month (30-day month; token counts are per request).

Assumes: 1,000 conversations a day, each sending about 3,000 tokens of history and instructions and receiving about 600 tokens of replies.

For this workload xAI Grok 4.7 costs $288 a month and Qwen3.8 Max Prime costs $576: 2 times as much.

AttributeGrok 4.7Qwen3.8 Max Prime
ProviderxAIQwen
Input, per 1M tokens$2.00$4.00
Output, per 1M tokens$6.00$12.00
Cached input (read)$0.50$0.50
Batch (input / output)not listednot listed
Provider list price (input / output)$2.00 / $6.00not recorded
Context window500,0001,000,000
Maximum output450,000131,072
Acceptstext, image, filetext, image, video
Intelligence Index (Artificial Analysis)46.4not listed
Your cost per month$288lowest$576
Unit
Currency

The cost uses each model’s published cache-read price for the cached share and normal input price where none is published. Full detail: Grok 4.7 pricing and Qwen3.8 Max Prime pricing.

Collected from the OpenRouter models API (466 entries). 99 models are cross-checked against provider list prices in the LiteLLM price table.

How to read this comparison

A lower price per token does not settle which model is cheaper for you. The two models can differ in how the bill splits between input and output: one may have cheaper input and dearer output than the other. Which side wins depends on how long your prompts are compared with the answers you ask for, so set the workload above to your own traffic before reading the last row.

If your requests repeat a long prefix, such as a system prompt or a document, raise “From cache”. The share you set is billed at each model’s cache-read price when one is published, which can change the result when only one of the two offers it. Reasoning models bill hidden thinking as output: for those, raise the output tokens to what your requests really consume.

Price is one axis. Context window, maximum output and accepted inputs are listed because they decide whether a model can do the job at all; the Intelligence Index, where shown, is a third-party score from Artificial Analysis and not a judgement by this site.

Related comparisons

Questions and answers

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

For 1,000 requests a day with 3,000 input and 600 output tokens each, xAI Grok 4.7 costs $288 a month and Qwen3.8 Max Prime costs $576, so xAI Grok 4.7 is cheaper for that workload. A different mix of input and output can change the answer; use the simulator on this page.

What are the prices per million tokens?

xAI Grok 4.7: $2.00 input and $6.00 output. Qwen3.8 Max Prime: $4.00 input and $12.00 output. These are the OpenRouter prices at the collection of 3 Oct 2026, 08:40 UTC.

Which one has the larger context window?

Qwen3.8 Max Prime, with 1,000,000 tokens against 500,000.

Do both offer a cached-input price?

xAI Grok 4.7: $0.50 per million cached input tokens. Qwen3.8 Max Prime: $0.50 per million cached input tokens.

Does this comparison say which model is better?

No. It compares prices and limits. Quality depends on your task; where OpenRouter relays the Artificial Analysis Intelligence Index for a model, the table shows it as a third-party reference.