Qwen3-Max Preview API

alibaba/qwen3-max-preview
Qwen3-Max is Alibaba's trillion-parameter flagship language model designed for high-speed, large-scale tasks with an ultra-long context window.
Context
252K tokens
Input
$1.56 / 1M tokens
Output
$7.8 / 1M tokens
Released
Sep 30, 2025

Overview

Qwen3-Max by Alibaba Cloud is a cutting-edge open-source language model designed for expansive context understanding, advanced reasoning, and high-volume content generation. Equipped with an expansive 256K-token context window, it excels in large-scale text analysis, multi-turn dialogue, and complex code synthesis. It delivers strong performance across multilingual and quantitative benchmarks, making it suitable for demanding AI applications that require long-range dependency handling and intricate data processing. Licensed under Apache 2.0, Qwen3-Max offers commercial and research flexibility, with native support for English, Chinese, and over 10 additional languages. It stands out for its superior scalability and cost-efficiency for projects needing extended token capacities and robust output volumes.

‍

Technical Specification

Performance Benchmarks

  • Context Window: 256K tokens
  • Max input: 258,048 tokens‍
  • MMLU: High-level multilingual reasoning performance‍
  • GSM8K: Advanced mathematical reasoning on challenging tasks

Performance Metrics

Qwen3-Max demonstrates leading-edge capabilities in processing ultra-long documents and complex conversations. Its ability to maintain context coherence over 256K tokens surpasses most contemporary LLMs, supporting workflows that require persistent state awareness and extended creative or analytical generation. Coding benchmarks reflect its robust development use cases, while multilingual tasks confirm its balanced global language competence.

Key Capabilities

Qwen3-Max delivers enterprise-grade performance for diverse AI workloads:

  • Ultra-Long Context Handling: Exceptional capacity for 256K tokens enables deep document understanding, extended dialogues, and multi-document synthesis.
  • Multilingual Reasoning: Native fluency in English and Chinese with strong support across 10+ languages, including nuanced cross-lingual tasks.
  • Mathematical and Logical Reasoning: Advanced quantitative problem-solving and symbolic reasoning for STEM applications.
  • Code Generation and Debugging: Comprehensive coding assistance for full-stack development, spanning legacy code modernization and new system builds.
  • Open-Source Flexibility: Apache 2.0 licensed, enabling broad commercial, research, and customization opportunities.

API Pricing

  • Input price per million tokens: $1.56
  • Output price per million tokens: $7.8

Optimal Use Cases

  • Enterprise-scale document analysis and report generation requiring ultra-long context
  • Complex multi-turn chatbots and virtual assistants maintaining long conversation histories
  • Large-scale scientific data interpretation and technical research support
  • Advanced software engineering workflows integrating code generation with debugging and testing
  • Multilingual content generation, translation, and localization for global platforms

Code Sample

Comparison with Other Models

  • Vs. Qwen3-32B: Superior context window (256K vs 131K tokens) for larger document processing but with higher pricing tiers.
  • Vs. OpenAI GPT-4 Turbo: Greater token capacity enabling longer context retention; competitive pricing on large-volume outputs.
  • Vs. Gemini 2.5-Pro: Comparable high-end performance with improved open-source accessibility through Apache 2.0 licensing.
  • Vs. Mixtral-8x22B: Enhanced reasoning and coding scalability with broader multilingual support.

Limitations

While Qwen3-Max provides unprecedented token capacity and advanced reasoning, it incurs higher API costs at the upper token ranges and may show some latency differences in ultra-long context scenarios compared to smaller models optimized for speed. Additionally, some benchmark scores await public confirmation but are expected to align with the high standard set by the Qwen3 family.

Uptime and performance

  • Uptime (7d): 33.0%

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

Use cases

  • Enterprise-scale document analysis and report generation requiring ultra-long context
  • Complex multi-turn chatbots and virtual assistants maintaining long conversation histories
  • Large-scale scientific data interpretation and technical research support
  • Advanced software engineering workflows integrating code generation with debugging and testing
  • Multilingual content generation, translation, and localization for global platforms

‍

How to use Qwen3-Max Preview API

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

r = requests.post(
    "https://api.aimlapi.com/v1/chat/completions",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "alibaba/qwen3-max-preview",
      "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-max-preview",
    "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-max-preview","messages":[{"role":"user","content":"Hello!"}]}'

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

Qwen3-Max Preview API Pricing

TypePrice
Input
$1.56 / 1M tokens
Output
$7.8 / 1M tokens
Cached input
$0.312 / 1M tokens

Qwen3-Max Preview Benchmarks

BenchmarkScoreWhat it measuresSourceRetrieved
Intelligence
16.3
Composite score across standardised reasoning, knowledge and problem-solving evaluations, measured independently by Artificial AnalysisSourceSeptember 12, 2026
Math
82.3
Composite score across standardised mathematics evaluations, measured independently by Artificial AnalysisSourceSeptember 12, 2026

Qwen3-Max Preview vs other models

ModelInputOutputContextBest for
$1.56 / 1M tokens
$7.8 / 1M tokens
252K tokens
Coding + agents
$6.5 / 1M tokens
$39 / 1M tokens
1M tokens
Reasoning + agents
$2.6 / 1M tokens
$13 / 1M tokens
1M tokens
Balanced coding + agents
$3.9 / 1M tokens
$19.5 / 1M tokens
1M tokens
Long-context, multimodal & agentic workflows
$1.95 / 1M tokens
$11.7 / 1M tokens
1M tokens
Reasoning + agents

Frequently asked questions

Qwen3-Max Preview has a 252,000 tokens context window and can return up to 32,768 tokens.

Qwen3-Max Preview takes text as input and returns text.

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

Qwen3-Max Preview became available on September 30, 2025.

Qwen3-Max Preview is priced at input $1.56 / 1M tokens, output $7.8 / 1M tokens, cached input $0.312 / 1M tokens.

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

Qwen3-Max Preview was built by Alibaba Cloud.

Yes, its capabilities include reasoning along with function calling and web search.

It is available through the API endpoint at api.aimlapi.com/v1/chat/completions.

Start building with Qwen3-Max Preview

Get API Key
1000+ models, one API.