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 context, a template id, and the modifications.
string
required
The id of a video template, for example tpl_xxx.
[]bannerify.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 the URL of the MP4. The error is an *ErrorResponse.

Follow the progress

RenderVideo returns an iter.Seq[RenderVideoEvent]. 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. The client timeout does not apply to a render, because a video can wait in line for minutes. Cancel ctx to stop.