Skip to content
Dashboard

Qwen 3.8 Max

Qwen 3.8 Max is Alibaba Cloud's most capable Qwen model, a 2.4-trillion-parameter Mixture-of-Experts model that handles text and vision-language work in one endpoint within a context window of 1M tokens. Your use is subject to Alibaba Cloud's Terms & Privacy Policies.

ReasoningTool UseImplicit CachingVision (Image)
import { streamText } from 'ai'
const result = streamText({
model: 'alibaba/qwen3.8-max',
prompt: 'Why is the sky blue?'
})
Read docs

About Qwen 3.8 Max

Qwen 3.8 Max is the Max-tier release in Alibaba Cloud's Qwen 3.8 generation, released August 2, 2026 and available through Alibaba Cloud on AI Gateway. Qwen 3.8 Max uses a Mixture-of-Experts architecture with 2.4 trillion parameters, accepts text, images, and video, and works within a context window of 1M tokens with up to 128K tokens per response.

Alibaba Cloud positions Qwen 3.8 Max as its most capable Qwen model to date, with significant gains over the Qwen 3.7 series. Handling text-only and vision-language work in a single endpoint removes the usual split between a text flagship and a separate vision model. Target workloads include software engineering and office productivity, plus visual tasks: turning screenshots or design files into working pages, captioning video, and answering questions grounded in an image.

Hybrid thinking mode is enabled by default. Turn thinking off per request for short lookups, or cap the thinking budget when latency and token spend matter more than reasoning depth. Reasoning traces can carry across turns, so long agent loops keep their chain of thought through repeated tool calls. Qwen 3.8 Max supports function calling and structured output, and Alibaba Cloud also documents built-in web search and code execution tools for the model.

Qwen 3.8 Max accepts up to 2,048 image URLs or 250 base64 images per request, video up to two hours or 2 GB, and as many as 64 videos. Each image consumes tokens in proportion to its resolution, so downscale assets that don't need full detail.

You can integrate Qwen 3.8 Max through AI SDK, Chat Completions API, Responses API, Messages API, or other API formats, from TypeScript or Python. To drive a coding agent with Qwen 3.8 Max, run vercel ai-gateway coding-agents setup to connect Claude Code, Codex, OpenCode, or Pi, then select alibaba/qwen3.8-max inside the agent.