Qwen3.8 Max

Qwen3.8 Max
Alibaba Cloud · Text Generation
POST /v1/chat/completions

Trillion-scale MoE flagship for coding, long-horizon agents, and professional work, with image and video understanding across a 1M-token context.

At a glance

FieldValue
Model idqwen3-8-max
Model release date2026-08-03
Input modalitiesText, Image, Video
Output modalitiesText
Context window1M
Weight precision-
Max output tokens131,072
RegionSingapore
Featuresreasoning, vision, multimodal, web_search, code_interpreter, function_calling, structured_output, agentic_coding
Native inferenceNo
NewYes
Structured outputJSON Schema
Supported endpointsPOST /v1/chat/completions, POST /v1/responses, POST /v1/messages, POST /v1beta/models/qwen3-8-max:generateContent
Alternate model idsqwen3.8-max

Pricing

ChargeSpecRate
Inputper 1M prompt tokens$2.00
Outputper 1M generated tokens$6.00
Web searchper call when invoked$0.02
Text-to-image searchper call when invoked$0.02
Image-to-image searchper call when invoked$0.02
Web extractorper call when invoked$0.00
Code interpreterper call when invoked$0.00

Example request

curl https://api.empiriolabs.ai/v1/chat/completions \
-H 'Authorization: Bearer $EMPIRIOLABS_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"model": "qwen3-8-max", "messages": [{"role":"user","content":"Hello"}]}'

Parameters

ParameterTypeRequiredDefaultDescription
temperaturenumberno0.7Sampling temperature. 0 is deterministic and 2 is maximum randomness. · Range: 0 – 2
top_pnumberno0.9Nucleus sampling probability mass. Lower values make outputs more focused. · Range: 0 – 1
max_tokensnumberno4096Maximum output tokens. · Range: 1 – 131072
stopstringno-Up to 4 strings where the model will stop generating further tokens.
enable_thinkingbooleannotrueEnable reasoning before answering.
reasoning_effortenumno"medium"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_budgetnumberno32768Maximum tokens reserved for reasoning when thinking is enabled. · Range: 1 – 262144
vl_high_resolution_imagesbooleannotrueUse higher resolution processing for image inputs.
max_pixelsnumberno2621440Maximum pixel count per image when high resolution processing is disabled. · Range: 4096 – 16777216
video_fpsnumberno2Frames per second to sample from video inputs. · Range: 0.1 – 10
treat_images_as_videobooleannofalseTreat a sequence of images as video frames.
tool_web_searchbooleannofalseSearch the web for real-time information. Adds $0.02 to the request cost for each invoked call.
tool_web_extractorbooleannofalseExtract and read content from URLs. Requires Web Search and Thinking.
tool_code_interpreterbooleannofalseRun Python code in a sandbox. Requires Thinking.
tool_web_search_imagebooleannofalseSearch the web for images from text descriptions. Adds $0.02 to the request cost for each invoked call.
tool_image_searchbooleannofalseFind similar images from an uploaded image. Adds $0.02 to the request cost for each invoked call.
disable_formattingbooleannofalseReturn raw provider-style output without EmpirioLabs source formatting where supported.
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, image, and video input are supported. Web search, web extractor, code interpreter, text-to-image search, and image-to-image search are optional built-in tools exposed through tool_* parameters. Web search, text-to-image search, and image-to-image search add $0.02 for each invoked call; web extractor and code interpreter run at no extra cost. Web extractor requires web search, and both web extractor and code interpreter require thinking. A single request can invoke a tool more than once, and each invoked call is billed. Thinking tokens are billed as output tokens. The qwen3-8-max id always serves the current Qwen3.8 Max build and moves with Alibaba’s snapshot upgrades; since September 5, 2026 it serves the qwen3-8-max-0902 snapshot. Use qwen3-8-max-0902 when output must stay pinned to that exact snapshot.

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:

"usage": {
"prompt_tokens": 123,
"completion_tokens": 456,
"cost_usd": 0.0042,
"tool_usage": {"web_search": 3, "code_interpreter": 1}
}

Tool counts are already factored into cost_usd and are surfaced for transparency so you can audit per-tool billing. The field is omitted when no tools were invoked.

Variants

:variant1

FieldValue
Model idqwen3-8-max:variant1
Model release date2026-08-03
RegionChina
Context window1M
Weight precision-
Max output tokens131,072
Featuresreasoning, vision, multimodal, web_search, code_interpreter, function_calling, structured_output, agentic_coding
Native inferenceNo
Structured outputJSON Schema
Supported endpointsPOST /v1/chat/completions, POST /v1/responses, POST /v1/messages, POST /v1beta/models/qwen3-8-max:variant1:generateContent

Pricing

ChargeSpecRate
Inputper 1M prompt tokens$1.65 (was $2.00)
Outputper 1M generated tokens$4.951 (was $6.00)
Web searchper call when invoked$0.01
Text-to-image searchper call when invoked$0.01
Image-to-image searchper call when invoked$0.01
Web extractorper call when invoked$0.00
Code interpreterper call when invoked$0.00

Parameters

ParameterTypeRequiredDefaultDescription
temperaturenumberno0.7Sampling temperature. 0 is deterministic and 2 is maximum randomness. · Range: 0 – 2
top_pnumberno0.9Nucleus sampling probability mass. Lower values make outputs more focused. · Range: 0 – 1
max_tokensnumberno4096Maximum output tokens. · Range: 1 – 131072
stopstringno-Up to 4 strings where the model will stop generating further tokens.
enable_thinkingbooleannotrueEnable reasoning before answering.
reasoning_effortenumno"medium"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_budgetnumberno32768Maximum tokens reserved for reasoning when thinking is enabled. · Range: 1 – 262144
vl_high_resolution_imagesbooleannotrueUse higher resolution processing for image inputs.
max_pixelsnumberno2621440Maximum pixel count per image when high resolution processing is disabled. · Range: 4096 – 16777216
video_fpsnumberno2Frames per second to sample from video inputs. · Range: 0.1 – 10
treat_images_as_videobooleannofalseTreat a sequence of images as video frames.
tool_web_searchbooleannofalseSearch the web for real-time information. Adds $0.01 to the request cost for each invoked call.
tool_web_extractorbooleannofalseExtract and read content from URLs. Requires Web Search and Thinking.
tool_code_interpreterbooleannofalseRun Python code in a sandbox. Requires Thinking.
tool_web_search_imagebooleannofalseSearch the web for images from text descriptions. Adds $0.01 to the request cost for each invoked call.
tool_image_searchbooleannofalseFind similar images from an uploaded image. Adds $0.01 to the request cost for each invoked call.
disable_formattingbooleannofalseReturn raw provider-style output without EmpirioLabs source formatting where supported.
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, image, and video input are supported. Web search, web extractor, code interpreter, text-to-image search, and image-to-image search are optional built-in tools exposed through tool_* parameters. Web search, text-to-image search, and image-to-image search add $0.02 for each invoked call; web extractor and code interpreter run at no extra cost. Web extractor requires web search, and both web extractor and code interpreter require thinking. A single request can invoke a tool more than once, and each invoked call is billed. Thinking tokens are billed as output tokens. This id always serves the current Qwen3.8 Max build on the China endpoint and moves with Alibaba’s snapshot upgrades. Use qwen3-8-max-0902 when output must stay pinned to the September 2, 2026 snapshot.

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:

"usage": {
"prompt_tokens": 123,
"completion_tokens": 456,
"cost_usd": 0.0042,
"tool_usage": {"web_search": 3, "code_interpreter": 1}
}

Tool counts are already factored into cost_usd and are surfaced for transparency so you can audit per-tool billing. The field is omitted when no tools were invoked.


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