trim_clip
Shorten or lengthen a B-roll cutaway's screen time, reallocating that duration to the A-roll in a Swap & Refine project. Audio-safe and preserves total video length.
Instructions
Shorten (or restore) how long ONE B-roll cutaway stays on screen in a hosted Swap & Refine project, freeing that time back to the A-roll. Audio-safe — total video length is preserved. Get the segment id from suggest_clips. Instant timeline edit by default (no render); call render_project when done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | No | The Swap & Refine project. Omit to use VIRALSPIN_HOSTED_JOB_ID. | |
| render | No | Re-render now (costs credits). Default false = instant timeline-only edit. | |
| segment_id | Yes | The cutaway to trim (from suggest_clips). | |
| duration_sec | Yes | New on-screen duration in seconds (e.g. 1.5). |