Qwen3.7 Max API

Qwen3.7 Max is a flagship text model for coding, productivity, long-running agents, deep thinking, tools, and 1M-token context.

Alibaba CloudText Generation1M contextSingaporeProprietary EndpointNew

About Qwen3.7 Max

Qwen3.7 Max is a flagship text model for coding, productivity, long-running agents, deep thinking, tools, and 1M-token context.

Supports text input, thinking mode with enable_thinking and thinking_budget, function calling, and three built-in tools: tool_web_search, tool_web_extractor, and tool_code_interpreter. Each built-in tool call adds $0.02 when invoked. Thinking tokens are billed as output tokens.

reasoningweb searchcode interpreterfunction callingagentic coding

Qwen3.7 Max specs

Model ID
qwen3-7-max
Provider
Alibaba Cloud
Category
Text Generation
Context window
1M tokens
Max output
65,536 tokens
Input
text
Output
text
Region
Singapore
Endpoints
POST /v1/chat/completions
POST /v1/responses
POST /v1/messages

Qwen3.7 Max API pricing

Live pay-as-you-go rates from the EmpirioLabs catalog. You are billed only for what you use, with no monthly minimum.

Type
Spec
Rate
Input
per 1M prompt tokens
$2.50
Output
per 1M generated tokens
$7.50
Web search
per call when invoked
$0.02
Web extractor
per call when invoked
$0.02
Code interpreter
per call when invoked
$0.02
Compare on the full pricing page

How to call the Qwen3.7 Max API

Qwen3.7 Max serves the OpenAI-compatible Chat Completions API. Point any OpenAI SDK at https://api.empiriolabs.ai/v1 with your EmpirioLabs API key and use the model id qwen3-7-max. Get an API key from the EmpirioLabs dashboard.

cURL
curl https://api.empiriolabs.ai/v1/chat/completions \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen3-7-max",
    "messages": [
      {"role": "user", "content": "Write a haiku about the ocean."}
    ]
  }'
Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(
    base_url="https://api.empiriolabs.ai/v1",
    api_key="YOUR_EMPIRIOLABS_API_KEY",
)

response = client.chat.completions.create(
    model="qwen3-7-max",
    messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(response.choices[0].message.content)
Full Qwen3.7 Max API reference

Qwen3.7 Max API parameters

Request parameters supported by the Qwen3.7 Max API on EmpirioLabs. Defaults apply when a field is omitted.

ParameterTypeDefaultRange / valuesDescription
temperaturenumber0.70 to 2Sampling temperature. 0 is deterministic and 2 is maximum randomness.
top_pnumber0.90 to 1Nucleus sampling probability mass. Lower values make outputs more focused.
max_tokensnumber40961 to 65536Maximum output tokens.
stopstring--Up to 4 strings where the model will stop generating further tokens.
enable_thinkingbooleantrue-Enable reasoning before answering.
reasoning_effortenummediumnone, low, medium, high, maxReasoning effort level. none disables thinking. low, medium, high, and max set bounded thinking budgets sized to the selected model.
thinking_budgetnumber327681 to 64000Maximum tokens reserved for reasoning when thinking is enabled.
tool_web_searchbooleanfalse-Search the web for real-time information. Adds $0.02 to the request cost for each invoked web search call.
tool_web_extractorbooleanfalse-Extract and read content from URLs. Requires Web Search and Thinking. Adds $0.02 to the request cost for each invoked web extractor call.
tool_code_interpreterbooleanfalse-Run Python code in a sandbox. Requires Thinking. Adds $0.02 to the request cost for each invoked code interpreter call.
disable_formattingbooleanfalse-Return raw provider-style output without EmpirioLabs source formatting where supported.

Good to know

Text input only. Web search, web extractor, and code interpreter are optional built-in tools exposed through tool_* parameters. Each built-in tool call adds $0.02 when invoked. Thinking tokens are billed as output tokens.

Qwen3.7 Max variants

Variants are alternate versions of Qwen3.7 Max with their own model id. Depending on the variant, they can differ in serving region, pricing, or supported parameters; everything else works the same way.

Qwen3.7 Max :variant1China1M contextSave up to 34%

Call it with the model id qwen3-7-max:variant1.

Type
Spec
Rate
Input
per 1M prompt tokens
$2.50$1.65
Output
per 1M generated tokens
$7.50$4.951
Web search
per call when invoked
$0.01
Web extractor
per call when invoked
$0.01
Code interpreter
per call when invoked
$0.01
Try :variant1 in the playground

Qwen3.7 Max API: common questions

How much does the Qwen3.7 Max API cost?

On EmpirioLabs, Qwen3.7 Max is billed pay as you go: Input $2.50 per 1M prompt tokens; Output $7.50 per 1M generated tokens; Web search $0.02 per call when invoked. The live rate card on this page always matches what the API charges.

What is the context window of Qwen3.7 Max?

Qwen3.7 Max supports a 1M-token context window with up to 65,536 output tokens per response.

Is the Qwen3.7 Max API OpenAI-compatible?

Yes. Qwen3.7 Max serves the OpenAI-compatible Chat Completions API, so existing OpenAI SDKs work by pointing base_url at https://api.empiriolabs.ai/v1 and setting the model id to qwen3-7-max.

Which Qwen3.7 Max variants are available?

Qwen3.7 Max is available as 2 model ids: the default qwen3-7-max plus qwen3-7-max:variant1 (China). Variants can differ in serving region, pricing, or supported parameters; the rate cards for each are on this page.

Can I try Qwen3.7 Max in the browser before integrating?

Yes. The EmpirioLabs playground runs Qwen3.7 Max in the browser with the same parameters the API exposes, so you can test prompts before writing code.

How do I get a Qwen3.7 Max API key?

Create an EmpirioLabs account, then generate a key under API Keys in the dashboard. Billing is pay-as-you-go credits, so you only pay for the requests you make.

Ready to use better endpoints?

Explore our models, or contact us about business inquiries, custom deployments, or anything else.