Skip to navigation
Qwen3.7 Max
Alibaba Cloud · Text Generation
POST /v1/chat/completions

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

See Qwen3.7 Max pricing and specs or try it in the Playground.

At a glance

FieldValue
Model idqwen3-7-max
Model release date2026-05-21
Input modalitiesText
Output modalitiesText
Context window983.6K
Weight precision-
Max output tokens65,536
RegionSingapore
Featuresreasoning, web_search, code_interpreter, function_calling, agentic_coding
Native inferenceNo
NewNo
Structured outputJSON Schema
Supported endpointsPOST /v1/chat/completions, POST /v1/responses, POST /v1/messages, POST /v1beta/models/qwen3-7-max:generateContent
Alternate model idsqwen3.7-max

Pricing

ChargeSpecRate
Inputper 1M prompt tokens$2.50
Outputper 1M generated tokens$7.50
Web searchper call when invoked$0.02
Web extractorper call when invoked$0.02
Code interpreterper call when invoked$0.02

Example request

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":"Hello"}]}'

Parameters

ParameterTypeRequiredDefaultDescription
temperaturenumberno0.7Sampling temperature. 0 is deterministic and 1.99 is maximum randomness. · Range: 0 – 1.99
top_pnumberno0.9Nucleus sampling probability mass. Lower values make outputs more focused. · Range: 0 – 1
max_tokensnumberno-Maximum output tokens. When omitted, the model’s own default applies. · Range: 1 – 131072
stopstringno-Up to 4 strings where the model will stop generating further tokens.
enable_thinkingbooleannotrueEnable reasoning before answering. A request that forces a tool call runs without reasoning unless it sets enable_thinking.
reasoning_effortenumno-Reasoning effort level. none disables thinking. low, medium, high, and max set bounded thinking budgets sized to the selected model. · Allowed: none, low, medium, high, max
thinking_budgetnumberno-Maximum tokens reserved for reasoning when thinking is enabled. When omitted, the model decides how long to reason. · Range: 1 – 262144
preserve_thinkingbooleannofalseInclude the reasoning of earlier assistant turns in the model’s input on /v1/chat/completions. Return each turn’s reasoning unchanged in that assistant message’s reasoning_content field. The earlier reasoning is billed as input tokens. Not available when a built-in tool is on.
seedintegerno-Random seed for more reproducible sampling. Reusing a seed with the same request returns similar, not always identical, output. · Range: 0 – 2147483647
top_kintegerno-Sample only from the K most likely tokens. When omitted, the model’s own default applies. · Range: 1 – 100
presence_penaltynumberno-Penalty for tokens that already appeared in the generated text. Positive values encourage new topics. When omitted, the model’s own default applies. · Range: -2 – 2
repetition_penaltynumberno-Higher values discourage repeated phrasing, and 1 applies no penalty. When omitted, the model’s own default applies. Not available when a built-in tool is on, or on /v1/responses. · Range: 0.1 – 2
nintegerno1Number of answers to return. Above 1 runs only on /v1/chat/completions, with enable_thinking false and without tools, web search or logprobs. The output tokens of every answer are billed. · Range: 1 – 4
logprobsbooleannofalseReturn the log probabilities of the answer tokens, not the reasoning, on /v1/chat/completions. Not available when a built-in tool is on.
top_logprobsintegerno0Return up to this many most likely alternatives for each answer token. Needs logprobs set to true. · Range: 0 – 5
tool_web_searchbooleannofalseSearch the web for real-time information. Adds $0.02 to the request cost for each invoked call. Not used when the request also has function tools, response_format or video input.
tool_web_extractorbooleannofalseExtract and read content from URLs. Requires Web Search and Thinking. Adds $0.02 to the request cost for each invoked call. Not used when the request also has function tools, response_format or video input.
tool_code_interpreterbooleannofalseRun Python code in a sandbox. Requires Thinking. Adds $0.02 to the request cost for each invoked call. Not used when the request also has function tools, response_format or video input.
parallel_tool_callsbooleanno-Allow multiple tool calls in a single assistant turn. When omitted, the model’s own default applies.
disable_formattingbooleannofalseReturn the answer without EmpirioLabs formatting: citations stay as plain [N] markers and no References block is added.
response_formatenumno-Constrain the output to valid JSON. Use JSON mode for any JSON object, or supply a JSON Schema to force an exact response shape.

Notes

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.

Per-tool billing (usage.tool_usage)

When this model invokes built-in tools inside a single request, the response carries a normalized usage.tool_usage map alongside the token counts. Tool counts are already factored into cost_usd and are surfaced for transparency.

Variants

:variant1

FieldValue
Model idqwen3-7-max:variant1
Model release date2026-05-21
RegionChina
Context window983.6K
Weight precision-
Max output tokens65,536
Featuresreasoning, web_search, code_interpreter, function_calling, agentic_coding
Native inferenceNo
Structured outputJSON Schema
Batch API35% off list price
Supported endpointsPOST /v1/chat/completions, POST /v1/responses, POST /v1/messages, POST /v1beta/models/qwen3-7-max:variant1:generateContent

Pricing

ChargeSpecRate
Inputper 1M prompt tokens$2.50 $1.65
Outputper 1M generated tokens$7.50 $4.951
Web searchper call when invoked$0.01
Web extractorper call when invoked$0.01
Code interpreterper call when invoked$0.01

Parameters

ParameterTypeRequiredDefaultDescription
temperaturenumberno0.7Sampling temperature. 0 is deterministic and 1.99 is maximum randomness. · Range: 0 – 1.99
top_pnumberno0.9Nucleus sampling probability mass. Lower values make outputs more focused. · Range: 0 – 1
max_tokensnumberno-Maximum output tokens. When omitted, the model’s own default applies. · Range: 1 – 131072
stopstringno-Up to 4 strings where the model will stop generating further tokens.
enable_thinkingbooleannotrueEnable reasoning before answering. A request that forces a tool call runs without reasoning unless it sets enable_thinking.
reasoning_effortenumno-Reasoning effort level. none disables thinking. low, medium, high, and max set bounded thinking budgets sized to the selected model. · Allowed: none, low, medium, high, max
thinking_budgetnumberno-Maximum tokens reserved for reasoning when thinking is enabled. When omitted, the model decides how long to reason. · Range: 1 – 262144
preserve_thinkingbooleannofalseInclude the reasoning of earlier assistant turns in the model’s input on /v1/chat/completions. Return each turn’s reasoning unchanged in that assistant message’s reasoning_content field. The earlier reasoning is billed as input tokens. Not available when a built-in tool is on.
seedintegerno-Random seed for more reproducible sampling. Reusing a seed with the same request returns similar, not always identical, output. · Range: 0 – 2147483647
top_kintegerno-Sample only from the K most likely tokens. When omitted, the model’s own default applies. · Range: 1 – 100
presence_penaltynumberno-Penalty for tokens that already appeared in the generated text. Positive values encourage new topics. When omitted, the model’s own default applies. · Range: -2 – 2
repetition_penaltynumberno-Higher values discourage repeated phrasing, and 1 applies no penalty. When omitted, the model’s own default applies. Not available when a built-in tool is on, or on /v1/responses. · Range: 0.1 – 2
nintegerno1Number of answers to return. Above 1 runs only on /v1/chat/completions, with enable_thinking false and without tools, web search or logprobs. The output tokens of every answer are billed. · Range: 1 – 4
logprobsbooleannofalseReturn the log probabilities of the answer tokens, not the reasoning, on /v1/chat/completions. Not available when a built-in tool is on.
top_logprobsintegerno0Return up to this many most likely alternatives for each answer token. Needs logprobs set to true. · Range: 0 – 5
tool_web_searchbooleannofalseSearch the web for real-time information. Adds $0.01 to the request cost for each invoked call. Not used when the request also has function tools, response_format or video input.
tool_web_extractorbooleannofalseExtract and read content from URLs. Requires Web Search and Thinking. Adds $0.01 to the request cost for each invoked call. Not used when the request also has function tools, response_format or video input.
tool_code_interpreterbooleannofalseRun Python code in a sandbox. Requires Thinking. Adds $0.01 to the request cost for each invoked call. Not used when the request also has function tools, response_format or video input.
parallel_tool_callsbooleanno-Allow multiple tool calls in a single assistant turn. When omitted, the model’s own default applies.
disable_formattingbooleannofalseReturn the answer without EmpirioLabs formatting: citations stay as plain [N] markers and no References block is added.
response_formatenumno-Constrain the output to valid JSON. Use JSON mode for any JSON object, or supply a JSON Schema to force an exact response shape.

Notes

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.01 when invoked. Thinking tokens are billed as output tokens.

Per-tool billing (usage.tool_usage)\n\nWhen this model invokes built-in tools inside a single request, the response carries a normalized usage.tool_usage map alongside the token counts. Tool counts are already factored into cost_usd and are surfaced for transparency.


Machine-readable schema: GET https://api.empiriolabs.ai/v1/models/qwen3-7-max.