Edit a finished video
tegas_edit_videoFree (no tokens charged). Edit a finished video in place and rebuild it: this REPLACES the whole video end to end and typically takes a few minutes, the same as the original render - it is not a quick patch. Tell the user what you are about to change before calling this, then poll with tegas_wait_video (or tegas_video_status) after the call; do not call this again for the same video until the rebuild finishes.
Pass at least one of the groups below; omit a group entirely to leave it untouched:
- scenes: list of {"index": int, "voiceover_text"?: str, "subtitles_text"?: str, "video_url"?: str}
- one entry per scene to change, each needs at least one of the three fields.
- voice: {"id"?: str, "gender"?: "female"|"male", "language"?: "ru"|"en"|"es"|"fr"|"de"} -
changing any of id/gender/language RE-VOICES EVERY SCENE that has voice-over text, not just
the ones listed in `scenes`.
- subtitles: {"enabled"?: bool, "style"?: "tiktok"|"phrases"|"contrast",
"appearance"?: {"alignment"?, "font_size"?, "font_family"?, "text_color"? (hex "#RRGGBB"),
"color_saturation"?}} - you cannot disable subtitles and set their style/appearance in the
same call, that fails with 422 validation_error; disable them in one call and restyle in a
later one.
- music: {"enabled"?: bool, "url"?: str} - url must come from tegas_upload_music (or another
public https URL).
- volumes: {"voice"?: int, "music"?: int, "master"?: int} - each 0..100.
- watermark: bool - the Tegas watermark on the finished video. Must be the ONLY change in the
call, not combined with scenes/voice/subtitles/music/volumes: the renderer rebuilds the
watermark through a separate step, so mixing it with other changes fails with 422
validation_error. Change the watermark in its own call.
Returns video_id, status "processing" and edits_accepted - the list of groups that were actually
applied (e.g. ["voice", "subtitles"], or ["watermark"] for a watermark-only edit). If the video is
still rendering or being rebuilt from a previous edit, this fails with 409 video_busy - wait for
status completed (tegas_wait_video) and try again, do not retry immediately in a loop.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| music | No | ||
| voice | No | ||
| scenes | No | ||
| volumes | No | ||
| video_id | Yes | ||
| subtitles | No | ||
| watermark | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||