Get video job
get_videoCheck a video job and wait up to 45 seconds; when ready, download and return the video. Safe to call again to retrieve the same files.
Instructions
Check a video job and wait for it (default up to 45s). When the job completes, the video is downloaded and returned; calling again is safe and returns the same files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes | Job handle returned by generate_video, extend_video or edit_video. | |
| waitSeconds | No | Block up to this many seconds for completion (default 45, 0 = check once). The video is downloaded automatically when ready. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | ||
| next | No | Suggested next step | |
| error | No | ||
| files | No | ||
| jobId | Yes | Opaque handle; pass it to get_video, extend_video or edit_video | |
| model | Yes | ||
| state | Yes | working, completed, failed or filtered | |
| warnings | No | ||
| elapsedSeconds | Yes | ||
| remoteExpiresAt | No | When Google deletes the server-side copy; extend before this time |