Qwen3.8 Max Prime overview
Qwen3.8 Max Prime by Alibaba Cloud
Qwen3.8 Max Prime API: the high-throughput SKU of Alibaba's flagship Qwen3.8 Max, with 1M-token context, video input and always-on reasoning.
Qwen3.8 Max Prime specs
- Model ID
alibaba/qwen3.8-max-prime- Developer
- Alibaba Cloud
- Context window
- 1,000,000 tokens
- Max output
- 131,072 tokens
- Input
- Image, Text, Video
- Output
- Text
- API
- OpenAI-compatible, base URL
https://api.aimlapi.com/v1
What Is Qwen3.8 Max Prime?
Qwen3.8 Max Prime is a higher-throughput variant of Qwen3.8 Max, Alibaba's flagship reasoning and agentic model, served as a separate SKU with its own model id and its own price. The capabilities match the flagship, a 1,000,000-token context window, text, image and video input, tool calling and structured outputs, and reasoning is always on rather than switchable.
Technical Reference
- Developer: Alibaba Cloud (Qwen)
- Model ID: alibaba/qwen3.8-max-prime
- Release date: 23 September 2026
- Endpoint: POST /v1/chat/completions
- Context window: 1,000,000 tokens
- Modalities: Image, Text, Video → Text
- Capabilities: always-on reasoning, tool calling, structured output, streaming, vision
What Prime Changes
Throughput, not capability
Prime is the same model family served for higher throughput. If a workload is bounded by how fast tokens come back rather than by what the model can do, this is the SKU for it; otherwise the standard Qwen3.8 Max covers the same ground at roughly half the input price.
Video in the same request
Video joins text and images as an input modality, so clips can be analysed alongside the surrounding prompt without a separate pipeline.
Reasoning always on
There is no thinking toggle, every request reasons, and those tokens bill at the output rate.
Where Qwen3.8 Max Prime Makes the Most Sense
Latency-sensitive agent loops
Multi-step pipelines where the wall-clock cost of each step decides whether the workflow is usable.
Multimodal analysis at volume
Batches of images or video that need a frontier-tier model rather than a small one.
Repository- and document-scale context
A 1M-token window holds whole codebases or document sets in one request.
Use cases
Throughput-bound agent loops. Pipelines where wall-clock time per step decides whether the workflow is usable. Prime is the same model family served for higher throughput, which is the only reason to pay its premium over the standard SKU.
Video and image analysis at volume. Video joins text and images as an input modality, so clips are analysed in the same request as the prompt rather than through a separate pipeline.
Repository-scale code work. A 1,000,000-token window holds a large codebase with its tests, and 131,072 tokens of output is room for a substantial refactor in one reply.
Long-document research. Contracts, filings and archives handed over whole, with always-on reasoning applied to every request.
Capabilities
- Reasoning
- Function calling
- Streaming
- Structured outputs
- Vision
Qwen3.8 Max Prime API pricing
| Usage | Price | Unit |
|---|---|---|
| Input | $4.23 | 1M tokens |
| Output | $12.7 | 1M tokens |
| Cached input | $0.529 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
Qwen3.8 Max Prime vs other models: token prices
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $4.23 | $12.7 | |
| $0.15 | $0.47 | |
| $0.16 | $0.47 | |
| $0.4761 | $3.39 | |
| $2.65 | $6.61 |
How to use the Qwen3.8 Max Prime API
View docsBuild with your agent
Give your agent the model details, code and documentation.
1Get your API key
Create API keyexport AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"2Make your first request
curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "alibaba/qwen3.8-max-prime",
"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-prime",
"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-prime",
"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 Prime FAQ
What is Qwen3.8 Max Prime?
Qwen3.8 Max Prime is a higher-throughput variant of Alibaba's flagship Qwen3.8 Max, served as its own SKU. It keeps the 1,000,000-token context window, accepts text, image and video input, and always reasons.
How much does the Qwen3.8 Max Prime API cost?
Qwen3.8 Max Prime costs $4.23 input and $12.7 output per 1M tokens on AI/ML API, billed as you go with no subscription.
What inputs does Qwen3.8 Max Prime accept?
Text, images and video in, text out, with up to 1,000,000 tokens in a single request and up to 131,072 tokens of output.
How do I call Qwen3.8 Max Prime through the API?
Send a POST request to https://api.aimlapi.com/v1/chat/completions with alibaba/qwen3.8-max-prime as the model id and your AI/ML API key in the Authorization header. The endpoint is OpenAI-compatible, so an existing chat client only needs the base URL swapped.
What is the Qwen3.8 Max Prime model ID?
Use alibaba/qwen3.8-max-prime as the model parameter. Requests go to the OpenAI-compatible endpoint with your AI/ML API key.
What is the context window of Qwen3.8 Max Prime?
Qwen3.8 Max Prime accepts up to 1,000,000 tokens of context and returns up to 131,072 output tokens.