跳转到主要内容
GET
/
kling
/
v1
/
videos
/
image2video
/
{task_id}
获取 Kling 图生视频任务状态
curl --request GET \
  --url https://api.ldx.dev/kling/v1/videos/image2video/{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>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.liandanxia.io/llms.txt

Use this file to discover all available pages before exploring further.

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

task_id
string
必填

任务 ID

响应

成功获取任务状态

视频任务状态查询响应

task_id
string

任务 ID

示例:

"abcd1234efgh"

status
enum<string>

任务状态

可用选项:
queued,
in_progress,
completed,
failed
示例:

"completed"

url
string

视频资源 URL(成功时)

示例:

"https://example.com/video.mp4"

format
string

视频格式

示例:

"mp4"

metadata
object

视频任务元数据

error
object

视频任务错误信息