Qwen3.8 27B vs Grok 4.7

Side-by-side pricing per provider, context window, benchmark scores and speed, all on one OpenAI-compatible API.

Estimate monthly cost for these models
Metric
Qwen3.8 27BAlibabaqwen/qwen3.8-27b
Grok 4.7xAIx-ai/grok-4.7
Creator
Alibaba
xAI
Released
Aug 14, 2025
Sep 21, 2026
Context window
262K
500K (best)
Max output
33K
500K (best)
Input / 1MLowest provider price
$0.40 (best)
$2.00
Output / 1MLowest provider price
$3.00 (best)
$6.00
Providers
1
1
IntelligenceArtificial Analysis index
20.1
35.0 (best)
Accepts
Text, Image, Video
Text, Image
Produces
Text
Text
Tool calling
Yes
Yes
Structured output
Yes
Yes
Reasoning
No
No

Qwen3.8 27B vs Grok 4.7: summary

Qwen3.8 27B and Grok 4.7 are both available through FastRouter's OpenAI-compatible API, so switching between them is a change of model id, not a new integration.

Qwen3.8 27B, from Alibaba, has a 262,144-token context window, costs $0.40/1M input and $3.00/1M output tokens and scores 20.1 on the Artificial Analysis Intelligence Index.

Grok 4.7, from xAI, has a 500,000-token context window, costs $2.00/1M input and $6.00/1M output tokens and scores 35.0 on the Artificial Analysis Intelligence Index.

Qwen3.8 27B is the cheapest on input, 5× cheaper than the next model, Grok 4.7 has the largest context window and Grok 4.7 scores highest for intelligence.

Switch with one line

client = OpenAI(base_url="https://api.fastrouter.ai/api/v1", api_key="<FASTROUTER_API_KEY>") client.chat.completions.create(model="qwen/qwen3.8-27b", messages=[...]) # or client.chat.completions.create(model="x-ai/grok-4.7", messages=[...])
Full API docs

Frequently asked questions

More comparisons

Benchmark scores sourced from ArtificialAnalysis