Skip to content

数据模型: VideoTaskResponse ​

VideoTaskError ​

视频任务错误信息

字段类型必选描述
codeinteger否错误码
messagestring否错误信息

数据模型示例 ​

json
{
  "code": 0,
  "message": "string"
}

VideoTaskMetadata ​

视频任务元数据

字段类型必选描述
durationnumber否实际生成的视频时长
fpsinteger否实际帧率
widthinteger否实际宽度
heightinteger否实际高度
seedinteger否使用的随机种子

数据模型示例 ​

json
{
  "duration": 5,
  "fps": 30,
  "width": 1280,
  "height": 720,
  "seed": 20231234
}

VideoTaskResponse ​

视频任务状态查询响应

字段类型必选描述
task_idstring否任务 ID
statusstring否任务状态
urlstring否视频资源 URL(成功时)
formatstring否视频格式
metadataany否
errorany否

数据模型示例 ​

json
{
  "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": 0,
    "message": "string"
  }
}

Released under the MIT License.