Comprehensive side-by-side LLM comparison
Both models show comparable benchmark performance. Both models have their strengths depending on your specific coding needs.
xAI
Grok 4, released by xAI on July 10, 2025, is a large language model featuring first-principles reasoning and comprehensive multimodal support. It features a 260K token context window and demonstrated strong performance on advanced reasoning and coding benchmarks. Grok 4 targets complex multi-step reasoning tasks, scientific analysis, and agentic workflows via the xAI API.
Alibaba / Qwen
Qwen3.5-397B-A17B is a 397-billion-parameter mixture-of-experts model from Alibaba's Qwen team, released in February 2026 as the open-weight flagship of the Qwen3.5 series, featuring 17 billion active parameters per forward pass through a hybrid linear-attention and sparse-MoE architecture based on Gated Delta Networks. The model was co-trained on text, images, and video using early fusion, making it natively multimodal across a 262K token context window, while achieving significantly higher inference throughput than comparable dense models due to its sparse computation design. At release it was one of the most capable open-weight models publicly available, offered under Apache 2.0 and accessible through Alibaba's DashScope API as the Qwen3.5-Plus endpoint.
7 months newer

Grok 4
xAI
2025-07-10
Qwen3.5-397B-A17B
Alibaba / Qwen
2026-02-16
Context window and performance specifications
Average performance across 1 common benchmarks
Grok 4
Qwen3.5-397B-A17B
Performance comparison across key benchmark categories
Grok 4
Qwen3.5-397B-A17B
Available providers and their performance metrics
Grok 4
xAI
Qwen3.5-397B-A17B
Grok 4
Qwen3.5-397B-A17B
Grok 4
Qwen3.5-397B-A17B