Skip to main content
GET
cURL
在建立 Beta 版 Omni 影片任務後,請使用此端點。它會回傳任務狀態,並在任務完成後包含 video_url Beta

檢查這些欄位

  • status 會告訴你任務是 queuedin_progresscompletedfailed
  • progress 是粗略的完成百分比。
  • video_url 會出現在已完成的回應中。
  • error 會在任務失敗時出現。

輪詢流程

1

先建立任務

先從建立 Omni 影片開始,並儲存回傳的 id
2

依 task ID 輪詢

將 task ID 傳送到此端點,直到 status 變成 completedfailed
3

下載 MP4 檔案

statuscompleted 時,呼叫取得 Omni 影片內容

授權

Authorization
string
header
必填

Bearer authentication. Use your CometAPI API key.

路徑參數

task_id
string
必填

Task ID returned by POST /v1/videos.

回應

Omni video task state.

id
string
必填

Task ID returned by POST /v1/videos.

範例:

"task_example"

object
string
必填

Object type. Omni video tasks return video.

範例:

"video"

model
string
必填

Model ID used for the task.

範例:

"omni-fast"

status
enum<string>
必填

Task lifecycle status. Poll until the value is completed or failed.

可用選項:
queued,
in_progress,
completed,
failed
範例:

"completed"

progress
integer
必填

Task progress as a coarse percentage.

必填範圍: 0 <= x <= 100
範例:

100

created_at
integer
必填

Task creation time as a Unix timestamp in seconds.

範例:

1779938152

completed_at
integer

Task completion time as a Unix timestamp in seconds. This field appears on completed tasks.

範例:

1779938219

video_url
string

Temporary video delivery URL. This field appears on completed tasks.

範例:

"<temporary-video-url>"

error
object

Failure details. This field appears when the task fails.