Qwen3.8 Max API

Alibaba's flagship reasoning and agentic LLM: 1M-token context, hybrid thinking mode, built-in tools and web search.

Modalities
Image, TextText
In / Out price
$2/$6per 1M
Context window
1M tokens
Released
Aug 3, 2026

Qwen3.8 Max overview

Qwen3.8 Max by Alibaba Cloud

Qwen3.8 Max is a multimodal model from Alibaba for text and image inputs, with hybrid thinking, function calling, web search and structured text outputs.

Qwen3.8 Max specs

Model ID
alibaba/qwen3.8-max
Developer
Alibaba Cloud
Context window
1,000,000 tokens
Max output
131,072 tokens
Input
Image, Text
Output
Text
API
OpenAI-compatible, base URL https://api.aimlapi.com/v1

What is Qwen3.8 Max?

Qwen3.8-Max is Alibaba's flagship reasoning and agentic LLM, positioned as its highest-capability tier for complex multi-step reasoning, coding and autonomous workflows. It is natively multimodal, accepting text and images and returning text, with a 1M-token context window.

It supports hybrid thinking mode, function calling, built-in tools (including web search) and structured outputs.

Use cases

Qwen3.8 Max is documented as suited to autonomous coding and long-horizon execution, including completing full projects over extended periods without human intervention. It is also suited to complex real-world professional work such as legal document review, financial research, application design, and sports analytics.

The model is documented as suited to multimodal content creation, including editing personal footage into vlogs, generating educational animations from text prompts, and building interactive games or applications from natural-language requests. It is also suited to visual tasks such as reconstructing frontend web projects from screenshots and transforming 2D floor plans into 3D interior visualizations.

Capabilities

  • Reasoning
  • Streaming
  • Function calling
  • Vision
  • Web search

Qwen3.8 Max benchmarks by Artificial Analysis

See how Qwen3.8 Max compares in generation speed and latency. Data retrieved Nov 3, 2026.

Speed

Output tokens / second

Benchmark results

Compare 12 models available on AI/ML API across 5 independent benchmarks.

Humanity's Last Exam

Expert-written questions across academic subjects.

Qwen3.8 Max API pricing

Qwen3.8 Max pricing in US dollars
UsagePriceUnit
Input$21M tokens
Output$61M tokens
Cached input$0.251M tokens

Prices from the AI/ML API price list, checked on Nov 4, 2026.

Qwen3.8 Max vs other models: token prices

AI/ML API input and output rates for 5 models, per million tokens.

AI/ML API model prices in USD per million tokens
ModelInputOutput
Qwen3.8 Max$2$6
Qwen3.8 Omni Flash$0.15$0.47
Qwen3.8-Flash$0.16$0.47
Qwen 3.8 27B$0.4761$3.39
Qwen3.8 Max Prime$4.23$12.7

How to use the Qwen3.8 Max API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "alibaba/qwen3.8-max",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'

Related articles

All posts

Qwen3.8 Max FAQ

What is the context window of Qwen3.8 Max?

Qwen3.8 Max has a 1,000,000 tokens context window and can return up to 131,072 tokens.

What inputs and outputs does Qwen3.8 Max support?

Qwen3.8 Max takes image, text as input and returns text.

What is the model ID for Qwen3.8 Max?

Use alibaba/qwen3.8-max as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

When was Qwen3.8 Max released?

Qwen3.8 Max became available on August 3, 2026.

How much does Qwen3.8 Max cost?

Qwen3.8 Max costs $2 input and $6 output per 1M tokens on AI/ML API, billed as you go with no subscription.

Does Qwen3.8 Max support streaming?

Yes, Qwen3.8 Max can stream responses as they are generated.

Can Qwen3.8 Max read images?

Yes, Qwen3.8 Max accepts image input alongside text.

Who created Qwen3.8 Max?

Qwen3.8 Max was built by Alibaba Cloud.

Start building with Qwen3.8 Max

Qwen3.8 Max API

alibaba/qwen3.8-max

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "alibaba/qwen3.8-max",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'