Qwen3-Max Instruct API

alibaba/qwen3-max
Qwen 3 Max Instruct sets a new benchmark for trillion-parameter language models, with massive context lengths, diverse language support, and cutting-edge performance in code and math tasks.
Context
256K tokens
Input
$1.56 / 1M tokens
Output
$7.8 / 1M tokens
Released
Sep 30, 2025

Overview

Qwen3-Max Instruct Model Overview

Qwen3-Max Instruct is Alibaba’s flagship large language model (LLM) boasting over 1 trillion parameters, officially released in early 2025. It represents a major advance in large-scale AI, with massive training data, advanced architecture, and strong capabilities especially in technical, code, and math tasks. This instruct-tuned variant is optimized for fast, direct instruction following without step-by-step reasoning.

‍

Technical Specifications

  • Parameter Scale: Over 1 trillion parameters (trillion-level scale)
  • Training Data: 36 trillion tokens of pretraining data
  • Model Architecture: Mixture of Experts (MoE) transformer with global-batch load balancing for efficiency
  • Context Length: Up to 262,144 tokens (over 258k input + 65k output tokens supported)
  • Training Efficiency: 30% MFU improvement over previous generation Qwen 2.5 Max models
  • Modalities: Text-only (no multimodal support in this version)
  • Languages Supported: 100+ languages with enhancements for mixed Chinese-English contexts
  • Inference Mode: Non-thinking mode focused on fast, direct instruction answers (Thinking version in development)
  • Context Caching: Enables reuse of context keys to improve multi-turn conversation performance
  • ‍

Performance Benchmarks and Highlights

Qwen3-Max achieves world-class performance, especially excelling in code, mathematical reasoning, and technical domains. Alibaba’s internal and leaderboard testing show it outperforms or matches top AI models like GPT-5-Chat, Claude Opus 4, and DeepSeek V3.1 in multiple benchmarks.

  • SWE-Bench Verified: 69.6 (demonstrates strong real programming challenge solving)
  • Tau2-Bench: 74.8 (surpasses Claude Opus 4 and DeepSeek V3.1)
  • SuperGPQA: 81.4 (leading question answering performance)
  • LiveCodeBench: Excellent real-code challenge results
  • AIME25 (Mathematical Reasoning): 80.6 (outperforming many competitors)
  • Arena-Hard v2: 86.1 (strong performance on difficult tasks)
  • LM Arena Ranking: #6 overall, beating many state-of-the-art models except top conversational models like GPT-4o
__wf_reserved_inherit

API Pricing

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

Use Cases

  • Enterprise Applications: Ideal for technical domains requiring large context processing, such as code generation, mathematical modeling, and research assistance.
  • Multilingual Support: Robust bilingual and international application with strong Chinese-English mixed-language handling.
  • Huge Context Windows: Enables extremely long document understanding and multi-turn dialogue with persistence.
  • Tool Use Ready: Optimized for retrieval-augmented generation and integration with external tools.
  • Fast Responses: Prioritizes quick instruction execution without chain-of-thought overhead.
  • Ecosystem Integration: Part of Alibaba’s Qwen3 family including vision and reasoning variants (Qwen-VL-Max and Qwen3-Max-Thinking).
  • ‍

Code Sample

Comparison With Other Models

vs GPT-5-Chat: Qwen-3-Max Instruct leads in coding benchmarks and agent capabilities, demonstrating strong performance on software engineering tasks. GPT-5-Chat, however, has a more mature ecosystem with multimodal features and wider commercial integrations. Qwen offers a much larger context window (~262k tokens) compared to GPT-5’s ~100k tokens.

vs Claude Opus 4: Qwen-3-Max surpasses Claude Opus 4 in agent and coding performance benchmarks while supporting a significantly larger context size. Claude excels in long-duration agent workflows and safety-focused behaviors. Both models are close in performance, with Claude having an edge in conservative code editing.

vs DeepSeek V3.1: Qwen-3-Max outperforms DeepSeek V3.1 on agent benchmarks like Tau2-Bench and coding challenges, showcasing stronger reasoning and tool-use ability. DeepSeek supports multimodal inputs but falls behind Qwen on extended context processing. Qwen’s training and scaling innovations give it a confirmed lead in large-scale tasks.

API Integration

Accessible via AI/ML API. Documentation: available here.

‍

Uptime and performance

  • Uptime (7d): 74.0%

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

Use cases

  • Enterprise Applications: Ideal for technical domains requiring large context processing, such as code generation, mathematical modeling, and research assistance.
  • Multilingual Support: Robust bilingual and international application with strong Chinese-English mixed-language handling.
  • Huge Context Windows: Enables extremely long document understanding and multi-turn dialogue with persistence.
  • Tool Use Ready: Optimized for retrieval-augmented generation and integration with external tools.
  • Fast Responses: Prioritizes quick instruction execution without chain-of-thought overhead.
  • Ecosystem Integration: Part of Alibaba’s Qwen3 family including vision and reasoning variants (Qwen-VL-Max and Qwen3-Max-Thinking).

How to use Qwen3-Max Instruct API

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

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

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

Qwen3-Max Instruct API Pricing

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

Qwen3-Max Instruct Benchmarks

BenchmarkScoreWhat it measuresSourceRetrieved
Intelligence
21.3
Composite score across standardised reasoning, knowledge and problem-solving evaluations, measured independently by Artificial AnalysisSourceSeptember 12, 2026
SWE-bench Verified
69.6
Resolving verified real GitHub issuesSourceSeptember 22, 2026

Qwen3-Max Instruct vs other models

ModelInputOutputContextBest for
$1.56 / 1M tokens
$7.8 / 1M tokens
256K tokens
Coding + agents
$5 / 1M tokens
$30 / 1M tokens
1M tokens
Reasoning + agents
$2 / 1M tokens
$10 / 1M tokens
1M tokens
Balanced coding + agents
$3 / 1M tokens
$15 / 1M tokens
1M tokens
Long-context, multimodal & agentic workflows
$1.5 / 1M tokens
$9 / 1M tokens
1M tokens
Reasoning + agents

Frequently asked questions

Qwen3-Max Instruct has a 262,144 tokens context window and can return up to 65,536 tokens.

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

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

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

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

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

Qwen3-Max Instruct was built by Alibaba Cloud.

Yes, it supports function calling and tool use, including parallel tool calls.

It is accessed via an API endpoint (https://api.aimlapi.com/v1/chat/completions); no local deployment option is listed.

Start building with Qwen3-Max Instruct

Get API Key
1000+ models, one API.