Qwen 3.8 API Access Guide (2026): Pricing, Context, and How to Call It
On July 19, 2026, Alibaba's Qwen team dropped Qwen 3.8, a 2.4 trillion-parameter multimodal model they describe as "second only to Fable 5" (Anthropic's top Claude tier). That's a bold claim, and there's a catch: as of this writing, Alibaba hasn't published a single independent benchmark to back it up. So take the ranking with a grain of salt.
What's not in doubt is the scale and the access story. Qwen 3.8 is a sparse Mixture-of-Experts model, the Qwen family's first multimodal system past a trillion parameters, and it's live right now in preview. This guide skips the hype and shows you how to actually call it, what it costs today, and whether you should wire it into production before the open weights land.
- Alibaba unveiled Qwen 3.8 on July 19, 2026, a 2.4 trillion-parameter multimodal Mixture-of-Experts model.
- Qwen 3.8 is the second-largest publicly disclosed model, behind Moonshot AI's Kimi K3 at 2.8 trillion parameters.
- Qwen 3.8-Max-Preview is available at 10% of standard pricing through Alibaba's Token Plan, Qoder, and QoderWork during the preview period.
- Alibaba has not published a final standard price or any independent benchmark for Qwen 3.8 as of July 24, 2026.
- Open weights are promised "soon" with no date or license; the latest open-weight general model is still Qwen 3.6-27B from April 22, 2026.
What Actually Shipped on July 19
Here's the concrete part. Qwen 3.8 succeeds Qwen 3.7-Max and jumps hard on scale. It processes text, images, video, and documents, and Alibaba says it should beat its predecessor on coding, full-stack development, data analysis, and office workflows.
One detail Alibaba conveniently left out: how many of those 2.4 trillion parameters are actually active per query. For a sparse MoE model, that's the number that drives both latency and real cost. Without it, "2.4 trillion" is a headline, not a spec you can plan capacity around. For reference, the previous flagship Qwen 3.7-Max runs roughly 24 billion active parameters per forward pass out of about 1 trillion total.
The predecessor's scores give you a floor to reason from: Qwen 3.7-Max hit 92.4% on GPQA Diamond, 80.4% on SWE-bench Verified, and 69.7% on Terminal-Bench 2.0. Qwen 3.8 should land at or above those, but until third-party numbers exist, treat any ranking as marketing.
Qwen 3.8 Pricing (What's Confirmed)
The honest answer: Alibaba hasn't set a final Qwen 3.8 price. During the preview, Qwen 3.8-Max-Preview bills at 10% of standard pricing through Alibaba's Token Plan, Qoder, and QoderWork. That's a launch discount, not a permanent rate, so don't build a budget on it.
The table below uses the previous flagship Qwen 3.7 Max as the pricing anchor, since that's the closest confirmed rate and the most likely baseline for Qwen 3.8's eventual standard price. All figures are USD per 1 million tokens.
| Model | Input (per 1M) | Output (per 1M) | Context Window |
|---|---|---|---|
| Qwen 3.8-Max-Preview (launch, 10% of standard) | Not finalized (preview discount) | Not finalized (preview discount) | Not disclosed |
| Qwen 3.7 Max (pricing anchor) | $2.50 | $7.50 | 1,000,000 tokens |
| Qwen 3.6-27B (open weight) | $0.289 | $2.40 | 262,144 tokens |
Bottom line: you can experiment cheaply today thanks to the preview discount, but price your production plans against something like the $2.50 / $7.50 Qwen 3.7 Max rate until Alibaba publishes the real number.
How to Call the Qwen 3.8 API
Alibaba's DashScope exposes an OpenAI-compatible endpoint, which is the easiest on-ramp. You point your existing OpenAI client at the compatible base URL and change the model name. Here's the minimal curl:
curl https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-H "content-type: application/json" \
-d '{
"model": "qwen3.8-max-preview",
"messages": [
{"role": "system", "content": "You are a precise full-stack engineering assistant."},
{"role": "user", "content": "Explain the tradeoffs of a sparse MoE model for a coding agent."}
]
}'
Python (OpenAI-compatible client)
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["DASHSCOPE_API_KEY"],
base_url="https://dashscope-intl.aliyuncs.com/compatible-mode/v1",
)
resp = client.chat.completions.create(
model="qwen3.8-max-preview",
messages=[
{"role": "system", "content": "You are a precise full-stack engineering assistant."},
{"role": "user", "content": "Refactor this function for readability and add type hints."},
],
temperature=0.3,
)
print(resp.choices[0].message.content)
usage = resp.usage
print("input tokens:", usage.prompt_tokens, "output tokens:", usage.completion_tokens)
Because it's OpenAI-compatible, the only lines you touch to migrate from GPT or Claude tooling are the base_url and the model string. Your streaming, tool-calling, and retry logic mostly carry over.
Node.js
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.DASHSCOPE_API_KEY,
baseURL: "https://dashscope-intl.aliyuncs.com/compatible-mode/v1",
});
const resp = await client.chat.completions.create({
model: "qwen3.8-max-preview",
messages: [
{ role: "system", content: "You classify support tickets as JSON." },
{ role: "user", content: "Ticket: checkout button 500s on mobile Safari." },
],
temperature: 0.2,
});
console.log(resp.choices[0].message.content);
Qwen 3.8 vs the Alternatives
If you're deciding where Qwen 3.8 fits, compare it against the model you'd otherwise reach for. Here's a factual side-by-side against Qwen's own previous flagship and a same-tier Western frontier model.
| Attribute | Qwen 3.8-Max-Preview | Qwen 3.7 Max | GPT-5.6 Terra |
|---|---|---|---|
| Released | July 19, 2026 | May 20, 2026 | Current (July 2026) |
| Parameters | 2.4T total (active count not disclosed) | ~1T total, ~24B active | Not disclosed |
| Context window | Not disclosed | 1,000,000 tokens | 1,050,000 tokens |
| Input / Output (per 1M) | Preview at 10% of standard; standard TBD | $2.50 / $7.50 | $2.50 / $15.00 |
| Multimodal | Yes (text, image, video, docs) | Yes | Yes |
| Best for | Coding, full-stack, office workflows at low preview cost | Stable production flagship with published benchmarks | Balanced frontier reasoning with big context |
| Key limitation | No published benchmarks; no final price; preview-only | Superseded by 3.8 for peak capability | Higher output token cost |
The takeaway is simple. Qwen 3.8 is the cheapest way to touch a claimed near-frontier model this week, but it's a preview with unknowns. Qwen 3.7 Max is what you ship on if you need documented performance today.
Should You Migrate Now?
My honest read: prototype on Qwen 3.8 during the preview discount, but keep production on a model with a locked price and real benchmarks. Preview pricing evaporates, context limits can change, and "second only to Fable 5" is a claim until someone independent runs the evals.
If you want to test Qwen 3.8 next to GPT-5.6, Claude, and Gemini without juggling four billing accounts and four base URLs, an aggregator makes this painless. With KissAPI you hit one OpenAI-compatible endpoint and swap the model string to compare Qwen 3.8 against your current model on your own prompts, so you're comparing real outputs on real traffic, not vendor benchmark screenshots.
Test Qwen 3.8 Against Your Current Model
Create a free account at api.kissapi.ai/register and A/B new models through one OpenAI-compatible endpoint, no per-vendor setup.
Start FreeFrequently Asked Questions
When was Qwen 3.8 released and how big is it?
Alibaba's Qwen team unveiled Qwen 3.8 on July 19, 2026. It's a 2.4 trillion-parameter multimodal model on a sparse Mixture-of-Experts architecture, the second-largest publicly disclosed model behind Moonshot AI's Kimi K3 at 2.8 trillion parameters.
How much does the Qwen 3.8 API cost?
At launch, Qwen 3.8-Max-Preview bills at 10% of standard pricing through Alibaba's Token Plan, Qoder, and QoderWork. Alibaba hasn't published a final standard price. As a planning anchor, the previous flagship Qwen 3.7 Max costs about $2.50 per million input tokens and $7.50 per million output tokens with a 1,000,000-token context window.
Are Qwen 3.8 open weights available?
Not yet. As of July 24, 2026, Qwen 3.8 is preview-only through Alibaba's hosted services. Alibaba says open weights are coming soon but hasn't named a date or license. The latest open-weight general Qwen model is Qwen 3.6-27B, released April 22, 2026.