Price Per TokenPrice Per Token
Qwen
Qwen
vs
Xai
Xai

Qwen3.5 397B A17B vs Grok 4

A detailed comparison of pricing, benchmarks, and capabilities

108 out of our 483 tracked models have had a price change in March.

Get our weekly newsletter on pricing changes, new releases, and tools.

Key Takeaways

Qwen3.5 397B A17B wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Larger context window
  • Faster response time

Grok 4 wins:

  • Higher intelligence benchmark
  • Better at coding
  • Better at math
  • Has reasoning mode
Price Advantage
Qwen3.5 397B A17B
Benchmark Advantage
Grok 4
Context Window
Qwen3.5 397B A17B
Speed
Qwen3.5 397B A17B

Pricing Comparison

Price Comparison

MetricQwen3.5 397B A17BGrok 4Winner
Input (per 1M tokens)$0.39$3.00 Qwen3.5 397B A17B
Output (per 1M tokens)$0.90$15.00 Qwen3.5 397B A17B
Cache Read (per 1M)$0.45$0.75 Qwen3.5 397B A17B
Using a 3:1 input/output ratio, Qwen3.5 397B A17B is 91% cheaper overall.

Qwen3.5 397B A17B Providers

No provider data available

Grok 4 Providers

No provider data available

Benchmark Comparison

8
Benchmarks Compared
0
Qwen3.5 397B A17B Wins
3
Grok 4 Wins

Benchmark Scores

BenchmarkQwen3.5 397B A17BGrok 4Winner
Intelligence Index
Overall intelligence score
40.141.5
Coding Index
Code generation & understanding
37.440.5
Math Index
Mathematical reasoning
-92.7-
MMLU Pro
Academic knowledge
-86.6-
GPQA
Graduate-level science
86.187.7
LiveCodeBench
Competitive programming
-81.9-
Aider
Real-world code editing
-79.6-
AIME
Competition math
-94.3-
Grok 4 shows stronger mathematical reasoning abilities.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
Other models

Context & Performance

Context Window

Qwen3.5 397B A17B
262,144
tokens
Grok 4
256,000
tokens
Qwen3.5 397B A17B has a 2% larger context window.

Speed Performance

MetricQwen3.5 397B A17BGrok 4Winner
Tokens/second55.5 tok/s48.1 tok/s
Time to First Token1.55s10.29s
Qwen3.5 397B A17B responds 15% faster on average.

Capabilities

Feature Comparison

FeatureQwen3.5 397B A17BGrok 4
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyQwen3.5 397B A17BGrok 4
LicenseOpen SourceProprietary
AuthorQwenXai
ReleasedFeb 2026Jul 2025

Qwen3.5 397B A17B Modalities

Input
textimagevideo
Output
text

Grok 4 Modalities

Input
imagetext
Output
text

Related Comparisons

Compare Qwen3.5 397B A17B with:

Compare Grok 4 with:

Frequently Asked Questions

Qwen3.5 397B A17B has cheaper input pricing at $0.39/M tokens. Qwen3.5 397B A17B has cheaper output pricing at $0.90/M tokens.
Grok 4 scores higher on coding benchmarks with a score of 40.5, compared to Qwen3.5 397B A17B's score of 37.4.
Qwen3.5 397B A17B has a 262,144 token context window, while Grok 4 has a 256,000 token context window.
Qwen3.5 397B A17B supports vision. Grok 4 supports vision.