官方格式
取得 Runway 任務
使用 CometAPI 呼叫 GET /runwayml/v1/tasks/,並依 task ID 取得 Runway 影片生成任務的狀態、進度、輸出與中繼資料。
GET
使用此端點可依 id 檢查 Runway 任務。
先檢查這些欄位
id:任務識別碼status:目前的任務狀態output:任務成功時已完成資產的 URLfailure和failureCode:任務失敗時的資訊
何時使用
- 在呼叫官方格式的 Runway 任務建立頁面後,例如文生圖、圖生影片或影片轉影片
重試行為
- 剛建立的任務可能會短暫回傳
task_not_exist - 在將 task 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.