获取 Flux 3 视频
通过任务 ID 获取 Flux 3 视频任务,包括其状态、进度、时间戳、结果 URL 或失败详情。
video_url。
检查以下字段
status为queued、in_progress、completed或failed。progress是从0到100的粗略完成百分比。video_url会在任务完成时出现。error会在任务失败时出现。
轮询任务
请先创建任务
id。获取任务状态
status 为 completed 或 failed。下载 MP4 文件
status 为 completed 时,调用 下载 Flux 3 视频内容.授权
Bearer authentication. Use your CometAPI API key.
路径参数
Task ID returned by POST /v1/videos.
响应
Current Flux 3 video task state.
Task ID. Use this value as task_id in retrieve and content requests.
"<task_id>"
Object type for the asynchronous video task.
"video"Model ID that the task uses.
"flux-3"Task lifecycle status. Poll until the value is completed or failed.
queued, in_progress, completed, failed Task progress as a coarse percentage.
0 <= x <= 100Task creation time as a Unix timestamp in seconds.
Compatibility alias for id. This field can be omitted from retrieve responses.
"<task_id>"
Task completion time as a Unix timestamp in seconds when the task provides one.
Result expiration time as a Unix timestamp in seconds when the task provides one.
Video delivery URL. This field appears on completed tasks.
"https://media.example.com/flux-3-result.mp4"
Failure details. This field appears when the task fails.