Speed
Output tokens / second
Custom pricing for production workloads
Alibaba's flagship reasoning and agentic LLM: 1M-token context, hybrid thinking mode, built-in tools and web search.
Qwen3.8 Max is a multimodal model from Alibaba for text and image inputs, with hybrid thinking, function calling, web search and structured text outputs.
alibaba/qwen3.8-maxhttps://api.aimlapi.com/v1Qwen3.8-Max is Alibaba's flagship reasoning and agentic LLM, positioned as its highest-capability tier for complex multi-step reasoning, coding and autonomous workflows. It is natively multimodal, accepting text and images and returning text, with a 1M-token context window.
It supports hybrid thinking mode, function calling, built-in tools (including web search) and structured outputs.
Qwen3.8 Max is documented as suited to autonomous coding and long-horizon execution, including completing full projects over extended periods without human intervention. It is also suited to complex real-world professional work such as legal document review, financial research, application design, and sports analytics.
The model is documented as suited to multimodal content creation, including editing personal footage into vlogs, generating educational animations from text prompts, and building interactive games or applications from natural-language requests. It is also suited to visual tasks such as reconstructing frontend web projects from screenshots and transforming 2D floor plans into 3D interior visualizations.
See how Qwen3.8 Max compares in generation speed and latency. Data retrieved Nov 3, 2026.
Output tokens / second
Compare 12 models available on AI/ML API across 5 independent benchmarks.
Expert-written questions across academic subjects.
Graduate-level science questions written to resist web search.
Agentic tasks completed in a command-line environment.
Reasoning across long documents of about 100k tokens.
Python coding tasks drawn from scientific research.
| Usage | Price | Unit |
|---|---|---|
| Input | $2 | 1M tokens |
| Output | $6 | 1M tokens |
| Cached input | $0.25 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $2 | $6 | |
| $0.15 | $0.47 | |
| $0.16 | $0.47 | |
| $0.4761 | $3.39 | |
| $4.23 | $12.7 |
Give your agent the model details, code and documentation.
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "alibaba/qwen3.8-max",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "alibaba/qwen3.8-max",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "alibaba/qwen3.8-max",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Qwen3.8 Max has a 1,000,000 tokens context window and can return up to 131,072 tokens.
Qwen3.8 Max takes image, text as input and returns text.
Use alibaba/qwen3.8-max as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
Qwen3.8 Max became available on August 3, 2026.
Qwen3.8 Max costs $2 input and $6 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Yes, Qwen3.8 Max can stream responses as they are generated.
Yes, Qwen3.8 Max accepts image input alongside text.
Qwen3.8 Max was built by Alibaba Cloud.