Skip to main content
GET
cURL
Bu endpoint’i, bir beta Omni video görevi oluşturduktan sonra kullanın. Görev durumunu döndürür ve görev tamamlandıktan sonra video_url içerir. Beta

Bu alanları kontrol edin

  • status, görevin queued, in_progress, completed veya failed olup olmadığını belirtir.
  • progress, kaba bir tamamlanma yüzdesidir.
  • video_url, tamamlanmış yanıtlarda görünür.
  • error, görev başarısız olduğunda görünür.

Polling akışı

1

Önce görevi oluşturun

Bir Omni videosu oluşturma ile başlayın ve döndürülen id değerini saklayın.
2

Task ID ile sorgulayın

status, completed veya failed olana kadar task ID’yi bu endpoint’e gönderin.
3

MP4 dosyasını indirin

status completed olduğunda, Omni video içeriğini alma çağrısını yapın.

Yetkilendirmeler

Authorization
string
header
gerekli

Bearer authentication. Use your CometAPI API key.

Yol Parametreleri

task_id
string
gerekli

Task ID returned by POST /v1/videos.

Yanıt

Omni video task state.

id
string
gerekli

Task ID returned by POST /v1/videos.

Örnek:

"task_example"

object
string
gerekli

Object type. Omni video tasks return video.

Örnek:

"video"

model
string
gerekli

Model ID used for the task.

Örnek:

"omni-fast"

status
enum<string>
gerekli

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

Mevcut seçenekler:
queued,
in_progress,
completed,
failed
Örnek:

"completed"

progress
integer
gerekli

Task progress as a coarse percentage.

Gerekli aralık: 0 <= x <= 100
Örnek:

100

created_at
integer
gerekli

Task creation time as a Unix timestamp in seconds.

Örnek:

1779938152

completed_at
integer

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

Örnek:

1779938219

video_url
string

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

Örnek:

"<temporary-video-url>"

error
object

Failure details. This field appears when the task fails.