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

Frequently Asked Questions

  • How does Qwen 3.8 Max compare to the Qwen 3.7 series?

    Alibaba Cloud positions Qwen 3.8 Max as its most capable Qwen model, with significant improvements over the 3.7 series. Qwen 3.8 Max pairs a Mixture-of-Experts architecture at 2.4 trillion parameters with a context window of 1M tokens and handles text-only and vision-language work in the same endpoint.

  • What inputs does Qwen 3.8 Max accept?

    Text, images, and video. Qwen 3.8 Max returns text, so pair it with a generation-class model when you need images or video as output.

  • What is the context window for Qwen 3.8 Max?

    The context window is 1M tokens, with up to 128K tokens per response.

  • Is thinking mode enabled by default on Qwen 3.8 Max?

    Yes. Qwen 3.8 Max uses hybrid thinking mode with thinking enabled by default. Turn it off per request for simple queries, or cap the thinking budget to limit reasoning tokens.

  • Does Qwen 3.8 Max support function calling and structured output?

    Yes. 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.

  • How many images and videos can Qwen 3.8 Max handle per request?

    Up to 2,048 image URLs or 250 base64 images, plus as many as 64 videos, with each video up to two hours or 2 GB. Images are capped at 16 million pixels each, and higher resolution consumes more tokens.

  • Can I use Qwen 3.8 Max inside a coding agent?

    Yes. Run vercel ai-gateway coding-agents setup to connect Claude Code, Codex, OpenCode, or Pi, then select alibaba/qwen3.8-max inside the agent.

  • How do I access Qwen 3.8 Max through AI Gateway?

    Authenticate with an AI Gateway API key or OIDC token and reference alibaba/qwen3.8-max as the model. You can call Qwen 3.8 Max through AI SDK, Chat Completions API, Responses API, Messages API, or other API formats, from TypeScript or Python.

  • What does Qwen 3.8 Max cost?

    See the pricing section on this page for today's rates. AI Gateway reflects each provider's pricing for Qwen 3.8 Max with no markup and no platform fee on inference.

  • Does Qwen 3.8 Max support zero data retention?

    Yes, Zero Data Retention is available for this model. Zero Data Retention is offered on a per-provider basis. See https://vercel.com/docs/ai-gateway/capabilities/zdr for details.