About this endpoint
What it does
Converts an uploaded video file into a GIF and returns the generated file as a binary download stream. The request accepts the video plus optional controls for output size, playback speed, clip duration, and start time.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| video | String | Yes | Video file upload (.mp4, .mkv, .avi, .mov, .flv, .3gp, .webm). |
| size | String | No | Output dimensions in WxH format. Omit to keep the original size. |
| speed | Integer | No | Playback speed. Default: 0. Range: -10 to 10. 0 = normal; positive values make playback faster (1/n PTS); negative values make playback slower (abs(n) PTS). |
| duration | Integer | No | Clip length in seconds. Default: 2. Range: 1 to 20 (capped at 20). |
| start_time | Integer | No | Seek offset in seconds. Default: 0. Minimum: 0. |
Response
Returns a binary file stream containing the generated GIF.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| binary | String | Yes | The generated GIF file returned as binary data. |