官方格式
获取 Runway 任务
使用 CometAPI 调用 GET /runwayml/v1/tasks/,并通过任务 ID 获取 Runway 视频生成任务的状态、进度、输出和元数据。
GET
使用此端点可按 id 查询 Runway 任务。
先检查这些字段
id:任务标识符status:当前任务状态output:任务成功时返回的已完成资源 URLfailure和failureCode:任务失败时返回
何时使用
- 在调用官方格式的 Runway 任务创建页面之后,例如 text-to-image、image-to-video 或 video-to-video
重试行为
- 新创建的任务可能会短暂返回
task_not_exist - 在将任务 id 视为无效之前,请等待几秒后重试
- 一旦任务可见,继续轮询此端点,直到它返回终态或已完成的输出。
授权
Bearer token authentication. Use your CometAPI key.
请求头
Optional Runway version header, for example 2024-11-06.
路径参数
Runway task id returned by the create endpoint.
响应
200 - application/json
Current task state.
Task ID.
Task status.
可用选项:
PENDING, RUNNING, SUCCEEDED, FAILED Task creation timestamp.
Output URLs returned after the task succeeds.
Failure reason returned after the task fails.
Failure code returned after the task fails.
Task progress.