跳转到主要内容
GET
/
kling
/
v1
/
videos
/
text2video
/
{task_id}
curl --request GET \
  --url 'https://api.elkapi.com/kling/v1/videos/text2video/task_1234567890' \
  --header 'Authorization: Bearer <token>'
{
  "task_id": "task_1234567890",
  "status": "completed",
  "url": "https://example.com/image.png",
  "format": "mp4",
  "metadata": {
    "duration": 5,
    "fps": 30,
    "width": 1280,
    "height": 720,
    "seed": 12345
  },
  "error": {
    "code": 1,
    "message": "message"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.elkapi.com/llms.txt

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

curl --request GET \
  --url 'https://api.elkapi.com/kling/v1/videos/text2video/task_1234567890' \
  --header 'Authorization: Bearer <token>'
{
  "task_id": "task_1234567890",
  "status": "completed",
  "url": "https://example.com/image.png",
  "format": "mp4",
  "metadata": {
    "duration": 5,
    "fps": 30,
    "width": 1280,
    "height": 720,
    "seed": 12345
  },
  "error": {
    "code": 1,
    "message": "message"
  }
}

Authorizations

Authorization
string
必填
所有接口均需要使用 Bearer Token 进行认证。在请求头中添加:
Authorization: Bearer YOUR_API_KEY

Path Parameters

task_id
string
必填
任务 ID

Response

task_id
string
任务 ID示例:abcd1234efgh
status
string
任务状态可选值:queuedin_progresscompletedfailed示例:completed
url
string
视频资源 URL(成功时)示例:https://example.com/video.mp4
format
string
视频格式示例:mp4
metadata
object
视频任务元数据
metadata.duration
number
实际生成的视频时长示例:5
metadata.fps
integer
实际帧率示例:30
metadata.width
integer
实际宽度示例:1280
metadata.height
integer
实际高度示例:720
metadata.seed
integer
使用的随机种子示例:20231234
error
object
视频任务错误信息
error.code
integer
错误码
error.message
string
错误信息