Qwen3.8 Max API

alibaba/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. Natively multimodal with a 1M-token context window and hybrid thinking mode.
Context
1M tokens
Input
$2.6 / 1M tokens
Output
$7.8 / 1M tokens
Released
Aug 3, 2026

Overview

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.

API Pricing

  • Input: $2.6 / 1M tokens
  • Cached input: $0.325 / 1M tokens
  • Output: $7.8 / 1M tokens
  • Tool/function calls: $0.013 per call

Released August 3, 2026.

Uptime and performance

  • Uptime (24h): 100%
  • Uptime (7d): 99.0%
  • Availability (24h): 99.0%
  • Error rate (24h): 1.0%
  • End-to-end latency (24h median): 55.2s
  • Throughput (24h median): 32.5 tok/s

Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.

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.

How to use Qwen3.8 Max API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to alibaba/qwen3.8-max.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/chat/completions",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "alibaba/qwen3.8-max",
      "messages": [
        {
          "role": "user",
          "content": "Hello!"
        }
      ]
    },
)
print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/chat/completions", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "alibaba/qwen3.8-max",
    "messages": [
      {
        "role": "user",
        "content": "Hello!"
      }
    ]
  }),
});
console.log(await r.json());
curl -X POST 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":"Hello!"}]}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Qwen3.8 Max API Pricing

TypePrice
Input
$2.6 / 1M tokens
Output
$7.8 / 1M tokens
Cached input
$0.325 / 1M tokens

Function/tool calls are billed separately at $0.013 per call.

Qwen3.8 Max Benchmarks

BenchmarkScoreWhat it measuresSourceRetrieved
Intelligence
40.3
Composite score across standardised reasoning, knowledge and problem-solving evaluations, measured independently by Artificial AnalysisSourceSeptember 12, 2026
Coding
71.8
Composite score across standardised coding evaluations, measured independently by Artificial AnalysisSourceSeptember 12, 2026
GPQA Diamond
92.6
Google-proof graduate science questions (hardest subset)SourceSeptember 21, 2026
Humanity's Last Exam
43.6
Expert-level questions across many domainsSourceSeptember 21, 2026

Qwen3.8 Max vs other models

ModelInputOutputContextBest for
Qwen3.8 Max
This page
$2.6 / 1M tokens
$7.8 / 1M tokens
1M tokens
Complex reasoning, coding and agentic workflows
$5.2 / 1M tokens
$26 / 1M tokens
1M tokens
Frontier reasoning + agents
$1.95 / 1M tokens
$9.75 / 1M tokens
1M tokens
Reasoning + agents
$6.5 / 1M tokens
$32.5 / 1M tokens
1M tokens
Complex agentic coding and enterprise workflows
$3.9 / 1M tokens
$19.5 / 1M tokens
1M tokens
Long-context, multimodal & agentic workflows

Frequently asked questions

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

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

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

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

Qwen3.8 Max is priced at input $2.6 / 1M tokens, output $7.8 / 1M tokens, cached input $0.325 / 1M tokens.

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

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

Qwen3.8 Max was built by Alibaba Cloud.

Start building with Qwen3.8 Max

Get API Key
1000+ models, one API.