Qwen 3.8 Max API

Alibaba's flagship Qwen model for long, complex tasks and images

qwen/qwen3.8-max
QwenConversation

About this model

Qwen3.8-Max is the flagship of Alibaba’s Qwen3.8 generation. Alibaba describes it as a 2.4-trillion-parameter Mixture-of-Experts model with 95 billion active parameters and a 1-million-token context window, and says it takes text, image and video input.

It is the top tier of the family: pick it when the task is hard, such as reasoning over a large codebase, a stack of long documents or a multi-step agent workflow, and use the Flash models when you want a lighter option.

In this catalog it supports image and PDF input and a context window of up to 1,000,000 tokens. Alibaba also publishes a later dated snapshot, Qwen3.8-Max-0902, which it says improves coding on larger engineering projects.

Use cases

  • Long-document analysis and Q&A
  • Multi-step agent and coding work
  • Questions about images and PDFs

Input and output

Input
Text, images, PDF
Output
Text

Developer

Developer
Qwen
Type
Conversation
Context
1,000,000 tokens
Capabilities
Image input

Qwen 3.8 Max request example

Use https://gatelum.com/v1 as the base URL and pass qwen/qwen3.8-max in the model field. You create the key in your account after signing up.

curl --silent --show-error --fail-with-body \
  --header 'Authorization: Bearer glt_YOUR_KEY' \
  'https://gatelum.com/v1/chat/completions' \
  --header "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "model": "qwen/qwen3.8-max",
  "messages": [
    {
      "role": "user",
      "content": "Hi! Tell me about yourself in two sentences."
    }
  ]
}
JSON
Claude Code and Anthropic-protocol clients

For clients using the Anthropic protocol, point the address at ANTHROPIC_BASE_URL=https://gatelum.com with no /v1. The model ID does not change.

macOS / Linux
export ANTHROPIC_BASE_URL=https://gatelum.com
export ANTHROPIC_AUTH_TOKEN=glt_YOUR_KEY
export ANTHROPIC_MODEL=qwen/qwen3.8-max
claude

Where to use Qwen 3.8 Max

Guides with step-by-step instructions for the tools that support this model: