qwen4-max Chat Completions
Applicable to the publicly available chat model in the Ali channel’s final whitelist: qwen4-max.
Supported fields: model, messages, stream, temperature, top_p, max_completion_tokens, stop, seed, tools, tool_choice, enable_search, response_format.
Authorizations
Body
Maximum length of model output, including thinking process and model response. When the model output exceeds this value, generation will stop early and the returned finish_reason will be length. Default and maximum values are the model's maximum output length. Unlike max_tokens which only limits the response part, max_completion_tokens limits the complete model output (thinking + response). Recommended for thinking-enabled models.