About this endpoint
What it does
Trims a video clip from an uploaded video file and returns the result as a streamed binary download. You can optionally set the clip start time, duration, and output size before the file is returned.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| video | String | Yes | Video file upload in binary form. Accepted formats: .mp4, .mkv, .avi, .mov, .flv, .3gp, .webm. Maximum size: 500 MiB. |
| size | String | No | Output scale in WxH format. Width and height must be even numbers. Omit to keep the source dimensions. |
| duration | Integer | No | Clip duration in seconds. Default: 2. Minimum: 1, maximum: 20. |
| start_time | Integer | No | Start time in seconds from which trimming begins. Default: 0. Minimum: 0. |
Response
Returns a binary file stream as the success response. The output schema is a single binary string, so the response body is the downloaded trimmed video rather than a JSON object.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| response body | String | Yes | Binary file content streamed back by the API. |