chat/completions(开启thinking)
qwen并不是所有的模型,都支持开启/关闭thinking,需要参考官方文档。 Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/jsonRequired
{
"model": "qwen3-max",
"enable_thinking": true,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "1+2+3+。。。。+100=?"
}
]
}
]
}
Request Code Samples
curl --location --request POST 'https://api.toiotech.com/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "qwen3-max",
"enable_thinking": true,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "1+2+3+。。。。+100=?"
}
]
}
]
}'
Responses
application/json Modified at 2025-12-19 02:08:52