Skip to main content
GET
cURL
ベータ版の Omni 動画タスクを作成した後に、このエンドポイントを使用します。タスクの状態を返し、タスク完了後は video_url が含まれます。 ベータ

次のフィールドを確認してください

  • status は、タスクが queuedin_progresscompleted、または failed のどれであるかを示します。
  • progress は大まかな完了率です。
  • video_url は完了したレスポンスに表示されます。
  • error はタスクが失敗したときに表示されます。

ポーリングの流れ

1

まずタスクを作成

Omni 動画を作成する から始めて、返された id を保存します。
2

タスク ID でポーリング

statuscompleted または failed になるまで、このエンドポイントにタスク ID を送信します。
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.