API for creating video content using templates. Now in beta. Please email developer-support@capsule.video with any questions.
The Capsule Render API is a full-featured video editing API that supports all of the features you’d expect from a professional video editing tool, and more. Here is a list of video template features.
Here are two API endpoints you'll use when creating a video with a template:
POST https://api.capsule.video/job
Creates a video render job. The request payload is a JSON object that specifies the template id and the asset and data inputs to pass to the template, among other things. See example below.
Different templates can have different sets of inputs.
GET https://api.capsule.video/job/<JOB_ID>
Get the status of a job by ID. The response includes percentage complete. As soon as the preview stream is ready, the HLS playlist URL is included in the response. When the render is complete, the mp4 URL is also included. See examples below.
These API endpoints require an API Key. Your organization's API Key can be found in Settings -> Developer in your Capsule dashboard.
Example
Here’s an example JSON object for the POST request:
In this case you can see the render is in progress, about 27% complete. This response also indicates that the HLS stream is available and the stream URL is provided so you can stream the preview while the video is rendering.
Making the same status call again a few moments later:
This time you can see that the render job is complete and the finished video url is provided. In this case, the render time was 2.7 seconds for a 7.5 second video.