Wait for a Seedance video to finish
seedance_wait_for_videoPoll a video generation task until completion, then return the final result including the video URL. Set a timeout to avoid indefinite waiting; the task continues running if timeout occurs.
Instructions
Poll a Seedance task until it succeeds, fails, or the timeout elapses, then return the final result including the video URL. Call this right after seedance_create_video whenever the user wants the finished video rather than a task ID. Polling backs off automatically. A 5-10 second clip usually lands within a few minutes; long or 1080p jobs take longer, so raise timeout_seconds for those. A timeout does not cancel anything - the task keeps running and can be waited on again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | Task ID from seedance_create_video. | |
| timeout_seconds | No | Give up after this many seconds. Default 900 (15 minutes). | |
| raise_on_failure | No | Raise an error when the task ends in failed/cancelled/expired. Set false to get the failure details as a normal result instead. | |
| poll_interval_seconds | No | Initial delay between checks; it backs off from here. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | ||
| note | No | ||
| seed | No | ||
| model | No | ||
| polls | No | ||
| ratio | No | ||
| frames | No | ||
| status | Yes | ||
| task_id | Yes | ||
| video_url | No | Valid for 24 hours; Seedance 2.5 URLs allow 100 downloads. | |
| created_at | No | ||
| error_code | No | ||
| resolution | No | ||
| updated_at | No | ||
| is_terminal | Yes | ||
| total_tokens | No | ||
| error_message | No | ||
| generate_audio | No | ||
| last_frame_url | No | ||
| waited_seconds | No | ||
| duration_seconds | No |