Skip to main content
GET
cURL
Sử dụng endpoint này sau khi bạn tạo một tác vụ video Flux 3. Phản hồi bao gồm video_url khi tác vụ hoàn tất.

Kiểm tra các trường sau:

  • status có thể là queued, in_progress, completed hoặc failed.
  • progress là tỷ lệ phần trăm hoàn thành ước tính từ 0 đến 100.
  • video_url xuất hiện khi tác vụ hoàn tất.
  • error xuất hiện khi tác vụ thất bại.

Thăm dò tác vụ

1

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

Bắt đầu bằng Tạo video Flux 3 và lưu id được trả về.
2

Truy xuất trạng thái tác vụ

Gửi ID tác vụ đến endpoint này cho đến khi statuscompleted hoặc failed.
3

Tải tệp MP4 xuống

Khi statuscompleted, hãy gọi Tải nội dung video Flux 3 xuống.

Ủ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

Current Flux 3 video task state.

id
string
bắt buộc

Task ID. Use this value as task_id in retrieve and content requests.

Ví dụ:

"<task_id>"

object
string
bắt buộc

Object type for the asynchronous video task.

Allowed value: "video"
model
string
bắt buộc

Model ID that the task uses.

Allowed value: "flux-3"
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
progress
integer
bắt buộc

Task progress as a coarse percentage.

Phạm vi bắt buộc: 0 <= x <= 100
created_at
integer<int64>
bắt buộc

Task creation time as a Unix timestamp in seconds.

task_id
string

Compatibility alias for id. This field can be omitted from retrieve responses.

Ví dụ:

"<task_id>"

completed_at
integer<int64>

Task completion time as a Unix timestamp in seconds when the task provides one.

expires_at
integer<int64>

Result expiration time as a Unix timestamp in seconds when the task provides one.

video_url
string<uri>

Video delivery URL. This field appears on completed tasks.

Ví dụ:

"https://media.example.com/flux-3-result.mp4"

error
object

Failure details. This field appears when the task fails.

Lần sửa đổi cuối 14 tháng 8, 2026