string
required
The id of a video template, for example
tpl_xxx.array
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' => $url] or ['error' => [...]].
Follow the progress
renderVideo returns a Generator of event arrays. 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 applies only to the connection, because a video can wait in line for minutes.