header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/jsonRequired
Example
{"model":"qwen3-omni-flash-2025-12-01","messages":[{"role":"user","content":[{"type":"image_url","image_url":{"url":"https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen3-Omni/demo/cars.jpg"}},{"type":"text","text":"What can you see and hear? Answer in one short sentence."}]}],"max_tokens":4096,"temperature":0.7}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.toiotech.com/v1/chat/completions' \
--header'Authorization: Bearer <token>' \
--header'Content-Type: application/json' \
--data-raw'{
"model": "qwen3-omni-flash-2025-12-01",
"messages": [
{
"role": "user",
"content": [
{
"type": "image_url",
"image_url": {
"url": "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen3-Omni/demo/cars.jpg"
}
},
{
"type": "text",
"text": "What can you see and hear? Answer in one short sentence."
}
]
}
],
"max_tokens": 4096,
"temperature": 0.7
}'
Responses
🟢200OK
application/json
Body
Example
{"choices":[{"message":{"content":"I see four luxury cars — a white Rolls-Royce, a gray Mercedes-Benz SUV, a red Ferrari Portofino, and a white Porsche 911 — but I hear no sounds as this is an image.","reasoning_content":"","role":"assistant"},"finish_reason":"stop","index":0,"logprobs":null}],"object":"chat.completion","usage":{"prompt_tokens":1630,"completion_tokens":46,"total_tokens":1676,"prompt_tokens_details":{"image_tokens":1609,"text_tokens":21},"completion_tokens_details":{"text_tokens":46}},"created":1767064636,"system_fingerprint":null,"model":"qwen3-omni-flash-2025-12-01","id":"chatcmpl-300edf52-d937-97c4-9e8e-77f4379b9c3a"}