curl --location --request POST '/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "doubao-seed-2-0-lite-260215",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "请你描述下视频中的人物的一系列动作,以JSON格式输出开始时间(start_time)、结束时间(end_time)、事件(event)、是否危险(danger),请使用HH:mm:ss表示时间戳。"
},
{
"type": "video_url",
"video_url": {
"url": "https://ark-project.tos-cn-beijing.volces.com/doc_video/ark_vlm_video_input.mp4",
"fps": 1
}
},
],
}
]
}'{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"logprobs": null,
"message": {
"content": "[\n {\n \"start_time\": \"00:00:00\",\n \"end_time\": \"00:00:05\",\n \"event\": \"大桥上各类车辆持续向前行驶,大本钟的钟表指针转动\",\n \"danger\": false\n }\n]",
"reasoning_content": "用户现在需要描述这个视频,输出JSON。首先看时间,从00:00:00到00:00:05,事件是桥上各类车辆持续向前行驶,大本钟的指针在转动。然后是否危险,这里不危险,所以danger是false。现在整理格式:\n[\n {\n \"start_time\": \"00:00:00\",\n \"end_time\": \"00:00:05\",\n \"event\": \"大桥上各类车辆向前行驶,大本钟的钟表指针持续转动\",\n \"danger\": false\n }\n]\n对吗?检查一下,视频里确实是车在走,钟在转,没有危险动作。所以这样就可以了。",
"role": "assistant"
}
}
],
"created": 1773157723,
"id": "0217731577180140e290995bd2535df6af5f05331d9ca567a314b",
"model": "doubao-seed-2-0-lite-260215",
"service_tier": "default",
"object": "chat.completion",
"usage": {
"completion_tokens": 233,
"prompt_tokens": 6435,
"total_tokens": 6668,
"prompt_tokens_details": {
"cached_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 165
}
}
}