Path Parameters
The task ID returned from the create video request.
If the create response includes
poll_url, use that exact URL for polling. /v1/videos/generations/{id} remains available for video-specific polling, and /v1/tasks/{task_id} provides a unified async task endpoint.Response
Task identifier.
Task status:
pending, processing, completed, failed.Progress percentage (0-100).
URL of the generated video (when completed).
Error message (if failed).
Creation timestamp.
Completion timestamp (when done).
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