Een Flux 3-video ophalen
Een Flux 3-videotaak ophalen aan de hand van de taak-ID, inclusief de status, voortgang, tijdstempels, resultaat-URL of foutdetails.
video_url wanneer de taak is voltooid.
Controleer deze velden
statusisqueued,in_progress,completedoffailed.progressis een globale indicatie van het voltooiingspercentage, van0tot en met100.video_urlverschijnt wanneer de taak is voltooid.errorverschijnt wanneer de taak mislukt.
De taak periodiek opvragen
Maak eerst de taak aan
id op.De taakstatus ophalen
status completed of failed is.Het MP4-bestand downloaden
status completed is, doe je een aanroep naar Flux 3-video-inhoud downloaden.Autorisaties
Bearer authentication. Use your CometAPI API key.
Padparameters
Task ID returned by POST /v1/videos.
Respons
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.