国产视频模型查询

使用 `GET /v1/videos/{task_id}` 查询国产视频任务状态与结果。

GEThttps://duoyuanx.com/v1/videos/{task_id}
请求示例
curl https://duoyuanx.com/v1/videos/video_abc123 \
  -H "Authorization: Bearer YOUR_API_KEY"

通过 GET /v1/videos/{task_id} 查询国产视频任务的状态与结果。任务完成后可从 video_url 读取视频地址,也可通过 GET /v1/videos/{task_id}/content 获取视频内容。

请求头

Authorizationstring必填

请求身份认证。使用 Bearer Token,示例值:Bearer YOUR_API_KEY。

请求参数

task_idstring必填

视频任务 ID。

请求示例

响应字段

idstring

任务 ID。

objectstring

固定为 video。

modelstring

模型名称。

statusstring

任务状态,常见值有 queued、processing、completed、failed、cancelled。

progressinteger

进度百分比。

created_atinteger

创建时间戳。

completed_atinteger

完成时间戳。

expires_atinteger

结果过期时间戳。

secondsstring

输出时长。

sizestring

输出尺寸。

video_urlstring

视频地址。

errorobject

错误信息。

内容获取

GET /v1/videos/{task_id}/content

相关页面