Check Video Status
check_video_statusChecks a video generation job's status. Upon completion, it downloads the video to your specified directory and returns the absolute file path.
Instructions
Check a previously started video generation job (from generate_video's polling_url or video id). If the job has completed, downloads the video, saves it to disk, and returns the absolute path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video_id | No | Alternatively, the raw video job id. | |
| output_dir | No | Directory to save into (absolute, or ~ for home). Defaults to the configured output directory. | |
| polling_url | No | The polling_url returned by generate_video. | |
| filename_prefix | No | Short label used in the saved filename, e.g. 'hero-banner'. Sanitized to letters, digits, dashes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute path of the saved video, when completed | |
| status | Yes | completed | pending | in_progress | timeout | failed | error | |
| message | No | ||
| video_id | No | ||
| polling_url | No | Pass to check_video_status to resume waiting |