About this endpoint
What it does
Uploads a video file and returns the compressed video as a binary file in the response. You can optionally control the compression strength with compression_percentage.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| video | String | Yes | Video file (.mp4, .mkv, .avi, .mov, .flv, .3gp, .webm). |
| compression_percentage | Integer | No | Compression strength from 0 to 100. Higher values produce a smaller file with lower quality. Default: 50. |
Response
Returns a binary file as the response body — the compressed video output. The output schema is a binary string, so there is no JSON wrapper or named response field.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| binary response body | String | Yes | Compressed video file returned as raw binary data. |