LiteLLMLiteLLM/ MODELS

Qwen3.8 Max vs Qwen4 Max

As of November 17, 2026, Qwen3.8 Max costs 33% more per input token than Qwen4 Max ($2.00 vs $1.50 per 1M), and both have a 992K-token context window.

Prices from LiteLLM's price fileChecked

Qwen3.8 Max vs Qwen4 Max side by side

Headline prices in US dollars per 1M tokens: each model's own lab where it sells it, otherwise its cheapest provider. Source: LiteLLM model price file, as of November 17, 2026.
Qwen3.8 MaxQwen4 Max
Input, per 1M tokens$2.00$1.50
Output, per 1M tokens$6.00$4.50
Cache read, per 1M tokens$0.25$0.075
Cache write, per 1M tokens–$1.875
Context window991,808 tokens991,808 tokens
Max output131,072 tokens131,072 tokens
Image inputYesYes
Tool callingYesYes
Structured output (JSON)YesYes
Prompt cachingYesYes
ReasoningYesYes
Providers on LiteLLM121
Price shown is fromAlibaba Cloud Model StudioAlibaba Cloud Model Studio
Added to LiteLLMAugust 7, 2026November 16, 2026

Cheapest provider for each

When to pick which

Pick Qwen3.8 Max for

  • Available from 12 providers through LiteLLM, vs 1.

Pick Qwen4 Max for

  • Costs 25% less per input token: $1.50 vs $2.00 per 1M.

From differences in the data above only; where the data is equal, no reason is given.

Call Qwen3.8 Max or Qwen4 Max with LiteLLM

Both use the OpenAI format through LiteLLM, so switching is a model name change. Set each provider's API key in the environment first.

Python SDK
from litellm import completion

messages = [{"role": "user", "content": "Hello!"}]

# Qwen3.8 Max
response = completion(model="dashscope/qwen3.8-max", messages=messages)

# Qwen4 Max
response = completion(model="dashscope/qwen4-max", messages=messages)

# Qwen3.8 Max, falling back to Qwen4 Max if the call fails
response = completion(model="dashscope/qwen3.8-max", messages=messages, fallbacks=["dashscope/qwen4-max"])

FAQ

Which is cheaper, Qwen3.8 Max or Qwen4 Max?

Qwen4 Max is cheaper at 3 input tokens per output token: $2.25 per 1M tokens blended ($1.50 input, $4.50 output), versus $3.00 ($2.00 and $6.00) for Qwen3.8 Max, as of November 17, 2026.

Which has the larger context window, Qwen3.8 Max or Qwen4 Max?

Both have a 991,808-token context window.

Can I switch from Qwen3.8 Max to Qwen4 Max without changing my code?

Yes. Through LiteLLM both use the OpenAI format, so switching means changing the model name from "dashscope/qwen3.8-max" to "dashscope/qwen4-max", or pointing a LiteLLM gateway model alias at the other model. You can also use one as a fallback for the other.