Qwen 3.7 Max API

alibaba/qwen3.7-max
Qwen3.7-Max is Alibaba's most capable large language model, engineered from the ground up for advanced reasoning, autonomous agent workflows, and serious coding productivity.
Context
1M tokens
Input
$2.6 / 1M tokens
Output
$7.8 / 1M tokens
Released
May 21, 2026

How to use Qwen 3.7 Max API

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

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

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

Qwen 3.7 Max API Pricing

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

Qwen 3.7 Max Benchmarks

BenchmarkScoreWhat it measuresSourceRetrieved
LiveCodeBench
83.6%
Contamination-free competitive programming problemsSourceJuly 12, 2026
Terminal-Bench
69.7%
Autonomous shell/terminal task completionSourceJuly 12, 2026
SWE-bench Verified
80.4%
Resolving verified real GitHub issuesSourceJuly 12, 2026
GPQA Diamond
92.4%
Google-proof graduate science questions (hardest subset)SourceJuly 12, 2026
Intelligence
29.9
Composite score across standardised reasoning, knowledge and problem-solving evaluations, measured independently by Artificial AnalysisSourceSeptember 12, 2026
Coding
66
Composite score across standardised coding evaluations, measured independently by Artificial AnalysisSourceSeptember 12, 2026

Qwen 3.7 Max vs other models

ModelInputOutputContextBest for
Qwen 3.7 Max
This page
$2.6 / 1M tokens
$7.8 / 1M tokens
1M tokens
Reasoning + agents
$6.5 / 1M tokens
$39 / 1M tokens
1.05M 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
$0.65 / 1M tokens
$3.9 / 1M tokens
1.05M tokens
Reasoning + agents

Frequently asked questions

Qwen 3.7 Max has a 1,000,000 tokens context window and can return up to 65,536 tokens.

Qwen 3.7 Max takes text as input and returns text.

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

Qwen 3.7 Max became available on May 21, 2026.

Qwen 3.7 Max is priced at input $2.6 / 1M tokens, output $7.8 / 1M tokens, cached input $2.6 / 1M tokens.

Yes, Qwen 3.7 Max can stream responses as they are generated.

Qwen 3.7 Max was built by Alibaba Cloud.

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

Start building with Qwen 3.7 Max

Get API Key
1000+ models, one API.