About this endpoint
What it does
Generates a GIF from an uploaded video file and returns the result as a streamed binary response. The request accepts the source video and optional conversion settings such as output size, playback speed, clip duration, and start time.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| video | String | Yes | Video file upload. Accepted formats: .mp4, .mkv, .avi, .mov, .flv, .3gp, .webm. |
| size | String | No | Output dimensions in WxH format. Omit to keep the original size. Example: 320x240. |
| speed | Integer | No | Playback speed. Default: 0.<br>Allowed range: -10 to 10.<br>0 = normal speed; positive values are faster; negative values are slower. |
| duration | Integer | No | Clip length in seconds. Default: 2.<br>Allowed range: 1 to 20.<br>The length is capped at 20 seconds. |
| start_time | Integer | No | Seek offset in seconds. Default: 0.<br>Minimum: 0. |
Response
Returns a binary stream containing the generated GIF file.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| binary | String | Yes | GIF file content returned as a streamed binary response. |