Grok 4.7 vs Qwen4 35B-A3B pricing

Prices

Grok 4.7 and Qwen4 35B-A3B prices, USD per 1M tokens
USD per 1M tokensGrok 4.7Qwen4 35B-A3B
Input$2.00$0.06
Output$6.00$0.36
Cache read$0.50$0.003
Cache writeNot published$0.075
Batch inputNot publishedNot published
Batch outputNot publishedNot published

Grok 4.7: xAI's list price for its own API, as compiled by models.dev and checked Dec 4, 2026, 18:49 UTC. Prices on cloud platforms and resellers can differ. Provider documentation

Qwen4 35B-A3B: Alibaba's list price for its own API, as compiled by models.dev and checked Dec 4, 2026, 18:49 UTC. Prices on cloud platforms and resellers can differ. Provider documentation

Monthly cost by workload

WorkloadGrok 4.7Qwen4 35B-A3B
Chatbot1,000 in / 500 out tokens, 10,000 requests a day$1,500/mo$72.00/mo
RAG8,000 in / 500 out tokens, 5,000 requests a day$2,850/mo$99.00/mo
Coding agent50,000 in / 2,000 out tokens, 1,000 requests a day, 80% cached input$1,560/mo$43.20/mo

Cost = input tokens × input price + output tokens × output price, 30 days a month. Cached input uses the cache read price. Cache write fees are not included.

Context and capabilities

Grok 4.7Qwen4 35B-A3B
Context500,000 tokens1,000,000 tokens
Max output500,000 tokens262,144 tokens
Inputtext, image, pdftext, image, video
Tool callingYesYes
ReasoningYesYes
Structured outputsYesYes

Questions

What is the price difference between Grok 4.7 and Qwen4 35B-A3B?
Grok 4.7: $2.00 per 1M input tokens and $6.00 per 1M output tokens. Base prices apply to prompts up to 200,000 input tokens; longer prompts use separate prices. Qwen4 35B-A3B: $0.06 per 1M input tokens and $0.36 per 1M output tokens. For the Chatbot workload (1,000 in / 500 out tokens, 10,000 requests a day), that is about $1,500 per month for Grok 4.7 and $72.00 for Qwen4 35B-A3B.
Which has the longer context window, Grok 4.7 or Qwen4 35B-A3B?
Qwen4 35B-A3B has the longer context window: up to 1,000,000 tokens, compared with 500,000 for Grok 4.7.
Do Grok 4.7 and Qwen4 35B-A3B have prompt caching and batch prices?
Grok 4.7: cached input $0.50 per 1M tokens; no batch price published. Base prices apply to prompts up to 200,000 input tokens; longer prompts use separate prices. Qwen4 35B-A3B: cached input $0.003 per 1M tokens; no batch price published.

More comparisons