Add subtitles/captions to a video
generate_subtitled_videoRender burned-in captions onto a video from a completed UGC job or a public video URL plus script, with caption style presets.
Instructions
Render burned-in captions onto a video. Provide either sourceJobId (a previously completed UGC job, whose video + script are reused) or both videoUrl (a public https video) and script (the spoken words). Choose a caption style with preset. Defaults to waiting for the result; set wait=false to return a job id to poll with get_job.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Wait for completion (default true). | |
| preset | No | Caption style preset (default classic_subtitle). | |
| script | No | The exact spoken words to render as captions (with videoUrl). | |
| videoUrl | No | Public https URL of the video to caption (with script). | |
| sourceJobId | No | Id of a completed UGC job to caption (reuses its video + script). Provide this OR videoUrl+script. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | No | ||
| error | No | ||
| result | No |