注册

doubao-2.0 查询视频生成任务 API

GET https://api.quickrouter.ai/api/v3/contents/generations/tasks/{id} 在线调试 →
Authorization

在 Header 添加参数 Authorization,其值为 Bearer 之后拼接 Token

示例: Authorization: Bearer ********************

请求参数

Path 参数
id string
必需
视频生成任务ID

请求示例代码

curl --location --request GET 'https://api.quickrouter.ai/api/v3/contents/generations/tasks/{id}' \
  --header 'Authorization: Bearer YOUR_API_KEY'
var myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer YOUR_API_KEY");

var requestOptions = {
   method: 'GET',
   headers: myHeaders,
   redirect: 'follow'
};

fetch("https://api.quickrouter.ai/api/v3/contents/generations/tasks/{id}", requestOptions)
   .then(response => response.text())
   .then(result => console.log(result))
   .catch(error => console.log('error', error));
import requests

url = "https://api.quickrouter.ai/api/v3/contents/generations/tasks/{id}"
headers = {
    "Authorization": "Bearer YOUR_API_KEY"
}

response = requests.get(url, headers=headers)
print(response.json())

返回响应

状态码: 200 成功

Content-Type: application/json