Docs / API Reference / Get Video Task
GET
/v1/videos/{task_id}Get Video Task
Retrieve the status and result of a video generation task submitted via Generate Video.
#Path parameters
| Parameter | Type | Description |
|---|---|---|
task_id | string | The task_id returned by POST /v1/video/generations |
#Example request
terminalbash
curl https://relaydance.com/v1/videos/task_abc123 \
-H "Authorization: Bearer $RELAYDANCE_API_KEY"#Response
response.jsonjson
{
"id": "task_abc123",
"object": "video",
"model": "doubao-seedance-2-0-1080p",
"status": "completed",
"progress": 100,
"created_at": 1794682482,
"completed_at": 1794682613,
"metadata": { "url": "https://...mp4" }
}#Response fields
| Field | Type | Description |
|---|---|---|
id | string | Task identifier (the same value as task_id) |
status | string | queued | in_progress | completed | failed |
progress | integer | 0 to 100 |
metadata.url | string | Download URL for the clip (present when status is completed) |
error.message | string | Why the task failed (present when status is failed) |
created_at, completed_at | integer | Unix timestamps |
#Status values
| Status | Meaning |
|---|---|
queued | Task accepted and queued |
in_progress | Generation in progress |
completed | Done: download the clip from metadata.url |
failed | Generation failed, see error.message; failed tasks are not billed |
Poll every few seconds until the status is completed or failed.
#The other route
GET /v1/video/generations/{task_id} returns the same task in a different envelope: { "code": "success", "data": { ... } }, where data.status is SUCCESS or FAILURE at the end, the clip is at data.result_url and a failure reason is in data.fail_reason. Use whichever you prefer; the examples in these docs use /v1/videos/{task_id}.
#Webhook alternative
If the task was submitted with metadata.callback_url, the final task state is POSTed to that URL when the task finishes. In that case polling is unnecessary. See Video Generation.