Generating using a template

To generate a video based on a template:

  1. Head over to Colossyan and create your desired video draft using our web-based studio

  2. Once you are done, click on the "Generate" button on the top right corner of your editor, than in the dialog appeared click "Export to API"

Note that this button is only visible if you have a plan which has access to the API. For more information, head over to our pricing page.

  1. On the top right corner of the appearing dialog click "Save job as a template" and make note of the appearing ID. This is the ID of your template job, you can send this id with your request to start generate the video.

  1. Now you have everything to send us a video generation request using the API endpoint below.

Create a video generation job from a template

post

Submits a new video generation job using a template

Authorizations
Body
templateJobIdstringRequired

The ID of the template job.

dynamicVariablesobjectRequired

Dynamic variables to be loaded into the template.

callbackUrlstring | nullableOptional

URL for the callback after job completion.

callbackPayloadobject | nullableOptional

Callback payload to return with the generated video once it's ready.

Responses
200
Job created successfully
application/json
post
POST /api/v1/video-generation-jobs/template-jobs HTTP/1.1
Host: app.colossyan.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 88

{
  "templateJobId": "text",
  "dynamicVariables": {},
  "callbackUrl": "text",
  "callbackPayload": {}
}
{
  "id": "text",
  "videoId": "text"
}

Last updated

Was this helpful?