Disclosure: I run NovAI, the API gateway discussed in this guide. All specs are sourced from Alibaba's official announcement; pricing is verifiable on our pricing page.
Qwen3.8-Max-Preview is Alibaba's latest flagship large language model, released on 19 July 2026 at the World Artificial Intelligence Conference (WAIC) in Shanghai. It is the first Qwen model to exceed 1 trillion parameters, and the first to be natively multimodal at this scale.
| Specification | Value |
|---|---|
| Total parameters | 2.4 trillion (sparse MoE) |
| Active parameters | Not disclosed by Alibaba |
| Modality | Text, images, video, documents (native) |
| Context window | 128K standard (extendable to 1M) |
| API protocols | OpenAI-compatible, Anthropic-compatible |
| Release date | 19 July 2026 (preview) |
| Open weights | Promised "soon" — no date or license announced |
Alibaba's official positioning: "second only to Fable 5." Independent reviewers have tested this claim — Thomas Wiegold ran four coding benchmarks and found it one-shotted a Go poker simulation that only Fable 5 and Grok 4.5 had previously managed, calling it "very good and very slow" due to its extensive self-verification behavior.
If you already use the OpenAI Python SDK, you only need to change the base_url and model:
from openai import OpenAI
client = OpenAI(
api_key="YOUR_NOVAI_KEY",
base_url="https://aiapi-pro.com/v1",
)
response = client.chat.completions.create(
model="qwen3.8-max",
messages=[
{"role": "system", "content": "You are a senior software engineer."},
{"role": "user", "content": "Review this code for security issues: eval(request.GET['code'])"},
],
)
print(response.choices[0].message.content)
stream = client.chat.completions.create(
model="qwen3.8-max",
messages=[{"role": "user", "content": "Write a Python function to debounce API calls."}],
stream=True,
)
for chunk in stream:
content = chunk.choices[0].delta.content
if content:
print(content, end="", flush=True)
response = client.chat.completions.create(
model="qwen3.8-max",
messages=[{"role": "user", "content": "Summarize the theory of relativity in 2 sentences."}],
)
print(response.choices[0].message.content)
print(f"\nTokens used: {response.usage.prompt_tokens} input + {response.usage.completion_tokens} output")
curl https://aiapi-pro.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_NOVAI_KEY" \
-d '{
"model": "qwen3.8-max",
"messages": [
{"role": "user", "content": "What is sparse mixture-of-experts?"}
]
}'
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.NOVAI_API_KEY,
baseURL: "https://aiapi-pro.com/v1",
});
const response = await client.chat.completions.create({
model: "qwen3.8-max",
messages: [
{ role: "user", content: "Explain the CAP theorem with a real-world example." },
],
});
console.log(response.choices[0].message.content);
Qwen3.8-Max is natively multimodal — it processes text, images, video, and documents without a separate vision adapter.
response = client.chat.completions.create(
model="qwen3.8-max",
messages=[{
"role": "user",
"content": [
{"type": "text", "text": "Describe this UI screenshot. What framework was likely used?"},
{"type": "image_url", "image_url": {"url": "https://example.com/screenshot.png"}},
],
}],
)
The model accepts PDF, HTML, and Markdown directly — no pre-processing to plain text required. This is particularly useful for:
Qwen3.8-Max can analyze short video clips, parsing temporal sequences and extracting structured information. This enables use cases like:
The standard context window is 128K tokens. For tasks requiring more — entire codebases, book-length documents, or multi-document analysis — the window extends to 1M tokens.
# Example: feed an entire codebase for architecture review
with open("full_codebase_concatenated.txt", "r") as f:
codebase = f.read() # up to ~1M tokens
response = client.chat.completions.create(
model="qwen3.8-max",
messages=[
{"role": "system", "content": "You are a senior architect. Analyze the codebase for design patterns, anti-patterns, and improvement opportunities."},
{"role": "user", "content": codebase},
],
max_tokens=4096,
)
Practical tip: At 1M tokens, a single request can take 30+ seconds to process. For production use, consider chunking with overlapping windows and a summarization pass.
Because Qwen3.8-Max speaks both OpenAI and Anthropic protocols, it drops into existing tools without modification:
| Tool | Protocol | How to configure |
|---|---|---|
| Cursor | OpenAI | Settings → Models → Add custom model → qwen3.8-max at https://aiapi-pro.com/v1 |
| Claude Code | Anthropic | Set ANTHROPIC_BASE_URL=https://aiapi-pro.com/anthropic |
| OpenCode CLI | OpenAI | --base-url https://aiapi-pro.com/v1 --model qwen3.8-max |
| LangChain | OpenAI | ChatOpenAI(base_url="https://aiapi-pro.com/v1", model="qwen3.8-max") |
| LobeChat | OpenAI | Add custom provider with base URL https://aiapi-pro.com/v1 |
Alibaba's official rate for Qwen3.8-Max is ¥12 / ¥36 per million tokens (input / output) — roughly $1.67 / $5.00. During the preview period:
| Tier | Rate | Effective price (per 1M tokens) |
|---|---|---|
| Standard | 100% | ¥12 input / ¥36 output (~$1.67 / ~$5.00) |
| Daytime preview | 10× discount | ¥1.2 input / ¥3.6 output (~$0.17 / ~$0.50) |
| Overnight (22:00–08:00 UTC+8) | 50× discount | ¥0.24 input / ¥0.72 output (~$0.03 / ~$0.10) |
NovAI passes these preview savings through. Check live per-token pricing:
👉 https://aiapi-pro.com/pricing
Free credit: New API keys come with $2 free credit, no credit card required. At daytime preview rates, that's enough for thousands of test prompts.
| Model | Parameters | Context | Multimodal | Open weights |
|---|---|---|---|---|
| Qwen3.8-Max | 2.4T (MoE) | 128K–1M | Text + image + video + doc | Promised |
| Kimi K3 | 2.8T (MoE) | 1M | Text + image | Announced Jul 27 |
| Claude Fable 5 | Undisclosed | 200K | Text + image | No |
| GPT-5 | Undisclosed | 128K | Text + image + audio | No |
| DeepSeek V4 Flash | ~600B (MoE) | 128K | Text | Yes |
Key differentiators for Qwen3.8-Max: - Only model in this tier with native video understanding - Only model promising open weights (though no date given) - Cheapest at preview rates (1/10th standard on Alibaba's platform) - Speaks both OpenAI and Anthropic protocols natively
It's a preview model. Alibaba explicitly says it "may change or be replaced." The model is also still iterating daily — a July 21 update already improved frontend/web-dev performance. Use it for testing and evaluation; don't build production systems that depend on specific output formats.
In independent testing, Qwen3.8-Max was the slowest model in its tier. A full coding test (building a website from scratch with self-testing) took 30+ minutes. The trade-off: it spent that time doing extensive self-verification with Playwright, producing high-quality output. For rapid iteration, use a smaller model (Qwen-Plus, DeepSeek V4 Flash). For thorough one-shot tasks, Qwen3.8-Max excels.
Yes. Like all Qwen models, Qwen3.8-Max carries built-in guardrails aligned with Chinese regulations on politically sensitive topics. For coding, reasoning, and most technical tasks this is irrelevant. If you're building content-generation tools for regulated industries, test with your specific use case.
Alibaba has promised open weights "soon" but given no specific date or license. The previous Qwen3-Max was open-weighted; the Qwen3.7-Max was not. Treat the promise as likely but uncertain.
Yes. The model supports standard OpenAI-format function calling:
tools = [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get current weather for a city",
"parameters": {
"type": "object",
"properties": {
"city": {"type": "string", "description": "City name"},
},
"required": ["city"],
},
},
}
]
response = client.chat.completions.create(
model="qwen3.8-max",
messages=[{"role": "user", "content": "What's the weather in Tokyo?"}],
tools=tools,
)
NovAI is an independent API gateway and is not affiliated with Alibaba Cloud or the Qwen team. Qwen3.8-Max-Preview is a pre-release model and may change without notice.