cURL
curl --request GET \ --url https://api.tkhub.ai/v1/kling/v1/videos/text2video/{task_id} \ --header 'Authorization: Bearer <token>'
{ "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>" } }
查询 Kling 文生视频任务的状态和结果。
使用 Bearer Token 认证。 格式: Authorization: Bearer sk-xxxxxx
Authorization: Bearer sk-xxxxxx
任务 ID
成功获取任务状态
视频任务状态查询响应
"abcd1234efgh"
任务状态
queued
in_progress
completed
failed
"completed"
视频资源 URL(成功时)
"https://example.com/video.mp4"
视频格式
"mp4"
视频任务元数据
Show child attributes
视频任务错误信息
Was this page helpful?