Qwen 4 Max
Qwen 4 Max costs $1.413 per 1M input tokens and $4.24 per 1M output tokens on LLM API, with a 1M-token context window.
Pricing
Lowest price among 3 providers, after discounts.
| Input | $1.413 | per 1M tokens |
|---|---|---|
| Output | $4.24 | per 1M tokens |
| Cache read | $0.071 | per 1M tokens |
| Cache write, 5 minutes | $1.767 | per 1M tokens |
| Cache write, 1 hour | $2.85 | per 1M tokens |
Providers
Prices after each provider’s discount; the lowest in bold.
| $1.413 | $4.24 | $0.071 | 1M | 393K | |
| $1.425 | $4.275 | $0.0712 | 1M | 393K | |
| $1.6 | $4.8 | $0.08 | 1M | 393K |
Features
“Some providers”: not every provider of this model supports it.
- ToolsYes
- Parallel tool callsNo
- Image inputYes
- ReasoningYes
Levels: low, medium, xhigh · default xhigh
- Prompt cachingYes
- Structured outputsSome providers
- JSON modeSome providers
- StreamingYes
- Web searchYes
Call Qwen 4 Max
POST /v1/chat/completionsSet LLMAPI_KEY to your LLM API key.Chat Completions docs
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.llmapi.ai/v1",
api_key=os.environ["LLMAPI_KEY"],
)
response = client.chat.completions.create(
model="qwen4-max",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.llmapi.ai/v1",
apiKey: process.env.LLMAPI_KEY,
});
const response = await client.chat.completions.create({
model: "qwen4-max",
messages: [{ role: "user", content: "Hello" }],
});
console.log(response.choices[0].message.content);curl https://api.llmapi.ai/v1/chat/completions \
-H "Authorization: Bearer $LLMAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen4-max",
"messages": [{"role": "user", "content": "Hello"}]
}'More from Alibaba
All Alibaba text models
Qwen 3.8 Maxqwen3.8-max$1.7 / $5.1per 1M input / output
Qwen3.8 Flash Nextqwen3.8-flash-next$0.201 / $0.5per 1M input / output
Qwen 3.8 Omni Flashqwen/qwen3.8-omni-flash$0.3655 / $1.411per 1M input / output
Prices synced .