header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/jsonRequired
Example
{"model":"qwen2.5-omni-7b","messages":[{"role":"user","content":[{"type":"video_url","video_url":{"url":"https://cdn.bigmodel.cn/agent-demos/lark/113123.mov"}},{"type":"text","text":"What are the video show about?"}]}],"thinking":{"type":"enabled"}}
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": "qwen2.5-omni-7b",
"messages": [
{
"role": "user",
"content": [
{
"type": "video_url",
"video_url": {
"url": "https://cdn.bigmodel.cn/agent-demos/lark/113123.mov"
}
},
{
"type": "text",
"text": "What are the video show about?"
}
]
}
],
"thinking": {
"type": "enabled"
}
}'
Responses
🟢200OK
application/json
Body
Example
{"choices":[{"message":{"content":"The videos demonstrate how to search for information on Google using Chinese characters. The first part of the video shows the user typing \"智谱\" (Zhipu) into the Google search bar and pressing enter, resulting in a list of search results related to Zhipu. The second part of the video shows the user clicking on one of the search results, which leads to the homepage of Zhipu's official website.","role":"assistant"},"finish_reason":"stop","index":0,"logprobs":null}],"object":"chat.completion","usage":{"prompt_tokens":6871,"completion_tokens":87,"total_tokens":6958,"prompt_tokens_details":{"audio_tokens":234,"text_tokens":20,"video_tokens":6617},"completion_tokens_details":{"text_tokens":87}},"created":1767061944,"system_fingerprint":null,"model":"qwen2.5-omni-7b","id":"chatcmpl-87bee039-2836-990e-9a6f-db46ba3b6b9f"}