Skip to main content
GET
cURL
Sử dụng endpoint này sau khi bạn tạo một tác vụ video Omni beta. Endpoint này trả về trạng thái tác vụ và bao gồm video_url sau khi tác vụ hoàn tất. Beta

Kiểm tra các trường này

  • status cho biết tác vụ đang ở trạng thái queued, in_progress, completed, hoặc failed.
  • progress là tỷ lệ phần trăm hoàn thành ở mức khái quát.
  • video_url xuất hiện trong các phản hồi đã hoàn tất.
  • error xuất hiện khi một tác vụ thất bại.

Luồng polling

1

Tạo tác vụ trước

Bắt đầu với Create an Omni video và lưu id được trả về.
2

Polling theo task ID

Gửi task ID đến endpoint này cho đến khi status đạt completed hoặc failed.
3

Tải xuống tệp MP4

Khi statuscompleted, gọi Retrieve Omni video content.

Ủy quyền

Authorization
string
header
bắt buộc

Bearer authentication. Use your CometAPI API key.

Tham số đường dẫn

task_id
string
bắt buộc

Task ID returned by POST /v1/videos.

Phản hồi

Omni video task state.

id
string
bắt buộc

Task ID returned by POST /v1/videos.

Ví dụ:

"task_example"

object
string
bắt buộc

Object type. Omni video tasks return video.

Ví dụ:

"video"

model
string
bắt buộc

Model ID used for the task.

Ví dụ:

"omni-fast"

status
enum<string>
bắt buộc

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

Tùy chọn có sẵn:
queued,
in_progress,
completed,
failed
Ví dụ:

"completed"

progress
integer
bắt buộc

Task progress as a coarse percentage.

Phạm vi bắt buộc: 0 <= x <= 100
Ví dụ:

100

created_at
integer
bắt buộc

Task creation time as a Unix timestamp in seconds.

Ví dụ:

1779938152

completed_at
integer

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

Ví dụ:

1779938219

video_url
string

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

Ví dụ:

"<temporary-video-url>"

error
object

Failure details. This field appears when the task fails.