跳转到主要内容
GET
/
runwayml
/
v1
/
tasks
/
{id}
Poll a Runway official-format task
curl --request GET \
  --url https://api.cometapi.com/runwayml/v1/tasks/{id} \
  --header 'Authorization: Bearer <token>'
{
  "code": "success",
  "message": "",
  "data": {
    "task_id": "3d957031-9a2a-45e2-9dc7-bc8513059c50",
    "action": "IMAGE_TO_VIDEO",
    "status": "QUEUED",
    "fail_reason": "",
    "submit_time": 1773366766,
    "start_time": 0,
    "finish_time": 0,
    "progress": "0%",
    "data": {
      "id": "3d957031-9a2a-45e2-9dc7-bc8513059c50",
      "status": "PENDING",
      "createdAt": "2026-03-13T09:52:46+08:00"
    }
  }
}
使用此端点通过官方格式封装按 id 查看 Runway 任务。

先检查这些字段

  • 外层的 codemessage,用于判断封装层状态
  • data.statusdata.progress,用于查看当前任务状态
  • 嵌套的 data.data,用于查看提供方特定的任务元数据

何时使用

  • 在调用官方格式的 Runway 任务创建页面后,例如 text-to-image、image-to-video、video-to-video 或 upscale
  • 当你需要统一的封装响应,而不是反向格式的 feed 路由时

重试行为

  • 新创建的任务可能会短暂返回 task_not_exist
  • 在将任务 id 视为无效之前,请先等待几秒后重试
  • 任务可见后,此路由与反向 feed 封装可能会返回相同的排队中或进行中的响应结构
在 2026-03-13 的实时验证中,返回的是一个封装后的响应,其中包含 code: successstatus: QUEUED,以及一个嵌套的 data 对象,而不是裸的 Runway 任务对象。

授权

Authorization
string
header
必填

Bearer token authentication. Use your CometAPI key.

请求头

X-Runway-Version
string

Optional Runway version header, for example 2024-11-06.

路径参数

id
string
必填

Runway task id returned by the create endpoint.

响应

200 - application/json

Current wrapper task state or not-yet-visible error.

code
string | null
必填
message
string
必填
data
object