查询视频任务(免费)
GET/runwayml/v1/tasks/{task_id} 查询视频任务(免费)
通过任务 ID 获取视频生成任务的当前状态与结果信息。
GET https://www.vortapapi.com/v1/runwayml/v1/tasks/{task_id}
路径参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
task_id | string | 是 | 要查询的视频任务 ID。 |
请求头
| 名称 | 必填 | 说明 |
|---|---|---|
Content-Type | 是 | 请求内容类型,通常为 application/json。 |
Accept | 是 | 期望返回的数据格式,通常为 application/json。 |
Authorization | 是 | 身份认证信息,格式为 Bearer sk-***。 |
响应示例
{
"id": "4665a07c-7641-4809-a133-10786201bb56",
"prompt": "",
"state": "pending",
"queue_state": null,
"created_at": "2024-12-22T13:38:40.139409Z",
"batch_id": "",
"video": null,
"video_raw": null,
"liked": null,
"estimate_wait_seconds": null,
"thumbnail": null,
"last_frame": null
}
响应字段说明
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 视频任务 ID。 |
prompt | string | 创建任务时使用的提示词。 |
state | string | 当前任务状态,例如 pending 表示等待处理中。 |
queue_state | string | null | 队列状态;无可用信息时为 null。 |
created_at | string | 任务创建时间,采用 ISO 8601 时间格式。 |
batch_id | string | 批处理 ID;如果未关联批处理,通常为空字符串。 |
video | string | null | 生成后的视频地址;任务未完成时通常为 null。 |
video_raw | string | null | 原始视频资源地址;未生成时为 null。 |
liked | boolean | null | 用户是否标记喜欢;未设置时为 null。 |
estimate_wait_seconds | number | null | 预计等待秒数;不可用时为 null。 |
thumbnail | string | null | 视频缩略图地址;未生成时为 null。 |
last_frame | string | null | 视频最后一帧图片地址;未生成时为 null。 |