RelayDanceRelayDance
HomeModelsPricingDocsGuides
Get API Key →

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

ParameterTypeDescription
task_idstringThe 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

FieldTypeDescription
idstringTask identifier (the same value as task_id)
statusstringqueued | in_progress | completed | failed
progressinteger0 to 100
metadata.urlstringDownload URL for the clip (present when status is completed)
error.messagestringWhy the task failed (present when status is failed)
created_at, completed_atintegerUnix timestamps

#Status values

StatusMeaning
queuedTask accepted and queued
in_progressGeneration in progress
completedDone: download the clip from metadata.url
failedGeneration 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.