Last updated
Last updated
There are three ways to get a video, that was generated via our APIs.
You can get notified via our callback once a video is ready (recommended in production)
You can poll it using other API endpoints
You can download the video from your Colossyan Account after navigating to the workspace where the API key was created.
Upon posting a new video generation job, you have the opportunity to add a callback
and some callbackPayload
to the job. When the job is successful our service will issue a POST request to the url you provided in the callback
field.
In the body of this post message, we add the following fields:
Due to the asynchronous nature of video-generations, first you need to query the video-generation-job itself, to see the status of it. To do this, use the API below.
Continue to poll the status of the job, until it returns either finished
or failed
. In case it successfully finished generating use the API below to get the generated video.
You can get the videoId
both when queueing the job itself, or when fetching it's status.
An example of a script to poll a job can be found below:
Navigate to workspace in which the API key was used to generate the video
The video should be listed there
You should also see it if it's currently being generated. In this case, it'll show the status of the job.
Open
.
url
Contains the public url of the generated video file.
videoUrl
and shareUrl
Contains a unique url pointing at Colossyans video sharing platform.
status
The status of the video generation. Can either be finished
or failed
...and everything that was provided at the job's generation as callbackPayload
and dynamicVariables
.
Retrieves detailed information about a specific generated video.
The ID of the generated video.
Generated video details retrieved successfully
The unique identifier of the generated video.
The ID of the video generation job that created this video.
The public URL of the generated video.
URL of the video's thumbnail.
The name of the video.
The date and time the video was created.
The size of the video in bytes.
The duration of the video in seconds.
Retrieves the status, progress, and details of a specific video generation job.
The ID of the video generation job.
Video generation job status and details retrieved successfully. The return value also contains all of the video-generation-job itself, which is not detailed here.
The current status of the video generation job.
The ID of the provisioned generated video
The current progress of the video generation job.
The maximum progress value of the video generation job.