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-preview",
"messages": [
{
"content": [
{
"type": "text",
"text": "123的21次方是多少?"
}
],
"role": "user"
}
],
"extra_body": {
"enable_code_interpreter": true,
"enable_thinking": true
},
"stream": true
}
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-preview",
"messages": [
{
"content": [
{
"type": "text",
"text": "123的21次方是多少?"
}
],
"role": "user"
}
],
"extra_body": {
"enable_code_interpreter": true,
"enable_thinking": true
},
"stream": true
}'
Responses
application/json Modified at 2026-01-02 16:07:03