Create Video From Template
create_from_templateCopy a template from list_templates (pass its template_job_id) into the user's account. The copy lands at script review (free) and is word-for-word the template: its narration and visuals still describe the template's own subject. Before approve_script, rewrite every scene for the user's product, brand and call to action with edit_scene (the result lists the scenes), keeping the template's structure and style; scenes can be deleted but not added. Reference photos can't be applied to a copy -- for a video that shows the user's own person or product photos, use create_video with a topic modelled on the template. single_scene=True renders the template's first scene unchanged, immediately, and spends credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | No | The product (from list_catalog) the video is for. It is filed under it, and create_video writes the script from the product's own description too. Omit for the account's default product. | |
| single_scene | No | True: render the template's first scene unchanged, immediately (spends credits). | |
| idempotency_key | No | A unique string for this request (e.g. a UUID). Reuse it when retrying: a repeat within 24h returns the first result instead of starting (and charging for) a second render. | |
| template_job_id | Yes | The template_job_id of a template from list_templates(video_type). |