Retrieve Video
Poll the current state of a video generation job.
Retrieve the current state of a video job. This is the job's
polling_url: poll it until status is completed, failed,
cancelled or expired.
GET /v1/videos/:video_idPath parameters
video_idstringrequiredThe id of the video job.
Response
idstringoptionalUnique job identifier.
polling_urlstringoptionalRelative URL of this endpoint for the job: /v1/videos/{id}.
statusstringoptionalCurrent state of the job. See statuses.
pendingin_progresscompletedfailedcancelledexpirederrorstringoptionalWhy the job failed. Only when status is failed or expired.
unsigned_urlsstring[]optionalOnly when completed. Download URLs
(https://api.aivene.com/v1/videos/{id}/content?index=0) that need
your API key.
urlsstring[]optionalOnly when completed. The same URLs with expires and signature
query parameters added. They work without an API key until
expires_at, so you can hand them to a browser, a <video> element or
another service.
expires_atintegeroptionalUnix timestamp after which urls stop working, about one hour after
this response. Retrieve the job again for fresh URLs.
usageobjectoptionalOnly when the job has finished. cost is the charge in USD (0 for a
failed or expired job, null while it is still being recorded);
is_byok is always false.
Polling recommendation
Poll every 5-10 seconds. Once status is completed, download the video
from one of its urls, or through
GET /v1/videos/:id/content with your
API key.
Errors
| Status | Reason |
|---|---|
404 | Video not found or belongs to another workspace. |