Skip to main content
A video template renders as an MP4. Each second of the video counts as one generation. Generate videos explains how to design one. Both methods take a template id and an options object.
string
required
The id of a video template, for example tpl_xxx.
Modification[]
The values to put into the template’s layers. A video layer takes a src, and the modification named music changes the music. Modifications lists the fields each layer accepts.

Render and wait for the URL

renderAndWaitVideo returns { result } with the URL of the MP4, or { error }.

Follow the progress

renderVideo returns an async iterator of events. The last event is done or error.
A refused request, such as an invalid API key or a used-up quota, gives one error event.