Skip to main content

Workflow

Template-based video generation is an asynchronous process with the following steps:
  1. Create a template generation task: Submit a task using a specified template_id along with the assets to be filled, and receive a task_id.
  2. Check task status and retrieve result: Use the task_id to poll task status. Unlike general video generation, when this task completes, the API directly returns a downloadable video_url in the response.
For more templates, see the Video Agent Template List.

Generate a “Run for Life” Video

Example Code

Example Output