Path Parameters
The task ID returned from the create video request. Treat
id and task_id as the same async identity.If a create response returns
poll_url, call that exact URL. When it points to /v1/tasks/{id}, treat that as the canonical fixed status endpoint.Response
Canonical async task identifier.
Async task identifier alias.
Preferred polling URL when the create response supplies one.
Task status:
pending, processing, completed, failed.Progress percentage (0-100).
URL of the generated video (when completed).
Single video payload with
url, duration, width, and height when available.Multiple video payloads when the upstream returns more than one output.
Error message (if failed).
Creation timestamp.
Last update timestamp.
Model used for the task.
Polling Best Practices
- Poll every 5-10 seconds
- Implement exponential backoff for long tasks
- Set a maximum timeout (e.g., 10 minutes)
- Handle
failedstatus gracefully