Query video generation task
API documentation
Video Task Status API
Monitor asynchronous t2v/i2v generation tasks and download the produced video assets.
GET
Query video generation task
Documentation Index
Fetch the complete documentation index at: https://docs.siray.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
All text-to-video or image-to-video submissions return atask_id. Use the video task status endpoint to poll the job until it finishes. The payload mirrors the async submission response and includes downloadable asset URLs when the task succeeds.
Endpoint
GET https://api.siray.ai/v1/video/generations/{task_id}
Authorization: Bearer <SIRAY_API_TOKEN>
| Name | Description |
|---|---|
task_id | ID returned when the video task was created. |
Response structure
Fields
code/message: Service-level indicators for the polling request.data.task_id: Echo of the video task identifier.data.status: Lifecycle state — values listed below.data.progress: Human-readable progress string.data.outputs: URLs pointing to the generated video assets (present whenstatusisSUCCESS).data.fail_reason: Explains why processing stopped whenstatusisFAILURE.data.submit_time,data.start_time,data.finish_time: Unix timestamps that help track total latency.
Status values
| Status | Meaning |
|---|---|
NOT_START | Task accepted but preprocessing has not started yet. |
SUBMITTED | Request stored and waiting to enter the queue. |
QUEUED | Task is scheduled and waiting for compute resources. |
IN_PROGRESS | Generation is currently running. |
SUCCESS | Outputs are ready; download the video via the provided URLs. |
FAILURE | Irrecoverable error; inspect fail_reason for remediation steps. |
Usage example
WhenstatusreachesSUCCESS, stream or download the video from the URLs inoutputs. If the task fails, retry after resolving the underlying issue noted infail_reason.
Authorizations
Bearer authentication using API key
Path Parameters
Identifier returned from the video generation task submission
Response
200 - application/json
Task status and (if available) generated outputs
