About this endpoint
What it does
Compresses an uploaded video to a smaller file size and returns the compressed video as binary data.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | File | Yes | The video file. Up to 100 MB. |
| targetPercent | Number | No | Target size as a fraction of the original, between 0 and 1 (exclusive). Defaults to 0.5, about half the original size. |
Response
Returns the compressed video as a binary file in the response body.
| Parameter | Type | Description |
|---|---|---|
| Binary file | File | The compressed video. |



