可灵文生视频查询
curl --request GET \
--url https://zero.cat/kling/v1/videos/text2video/{task_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://zero.cat/kling/v1/videos/text2video/{task_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://zero.cat/kling/v1/videos/text2video/{task_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"task_id": "abcd1234efgh",
"status": "completed",
"url": "https://example.com/video.mp4",
"format": "mp4",
"metadata": {
"duration": 5,
"fps": 30,
"width": 1280,
"height": 720,
"seed": 20231234
},
"error": {
"code": 123,
"message": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}视频
可灵文生视频查询
查询 Kling 文生视频任务的状态和结果。
GET
/
kling
/
v1
/
videos
/
text2video
/
{task_id}
可灵文生视频查询
curl --request GET \
--url https://zero.cat/kling/v1/videos/text2video/{task_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://zero.cat/kling/v1/videos/text2video/{task_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://zero.cat/kling/v1/videos/text2video/{task_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"task_id": "abcd1234efgh",
"status": "completed",
"url": "https://example.com/video.mp4",
"format": "mp4",
"metadata": {
"duration": 5,
"fps": 30,
"width": 1280,
"height": 720,
"seed": 20231234
},
"error": {
"code": 123,
"message": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}授权
ZeroCat API 密钥(sk- 开头),在控制台「API 密钥」页面创建。
格式:Authorization: Bearer sk-xxxxxx
路径参数
任务 ID
响应
成功获取任务状态

