跳轉到主要內容
GET
cURL
建立 Flux 3 影片任務後,請使用此端點。任務完成時,回應會包含 video_url。

檢查以下欄位

  • status 為 queued、in_progress、completed 或 failed。
  • progress 是從 0 到 100 的粗略完成百分比。
  • video_url 會在任務完成時出現。
  • error 會在任務失敗時出現。

輪詢任務

1

請先建立任務

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

擷取任務狀態

將任務 ID 傳送至此端點,直到 status 為 completed 或 failed。
3

下載 MP4 檔案

當 status 為 completed 時,請呼叫 下載 Flux 3 影片內容.

授權

Authorization
string
header
必填

Bearer authentication. Use your CometAPI API key.

路徑參數

task_id
string
必填

Task ID returned by POST /v1/videos.

回應

Current Flux 3 video task state.

id
string
必填

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

範例:

"<task_id>"

object
string
必填

Object type for the asynchronous video task.

Allowed value: "video"
model
string
必填

Model ID that the task uses.

Allowed value: "flux-3"
status
enum<string>
必填

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

可用選項:
queued,
in_progress,
completed,
failed
progress
integer
必填

Task progress as a coarse percentage.

必填範圍: 0 <= x <= 100
created_at
integer<int64>
必填

Task creation time as a Unix timestamp in seconds.

task_id
string

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

範例:

"<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.

範例:

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

error
object

Failure details. This field appears when the task fails.

最後修改於 2026年8月14日