Trim or cut
trim_mediaCut a section out of a video or audio file. Lossless mode copies the data without re-encoding, so it is instant and keeps full quality (the cut snaps to the nearest keyframe). Cost: 1 credit per minute of output. Long jobs return a job_id; poll it with get_job. Result links expire in 1 hour.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Source file: public http(s) link | |
| format | No | Output format when not lossless. Defaults to mp4 or mp3 | |
| quality | No | Quality. Lower quality gives smaller files | medium |
| lossless | No | Copy without re-encoding (instant, keeps quality) | |
| end_seconds | No | Where the cut ends, in seconds | |
| start_seconds | Yes | Where the cut starts, in seconds | |
| duration_seconds | No | Length of the result in seconds |