Convert Video To Gif Via API

Build automated image and video editing workflows and applications with Shotstack.

GET STARTED FOR FREE Example

The internet's most advanced image and video editing API

Shotstack is the most user friendly, powerful and reliable infrastructure solution to programmatically convert video to gif.

GET STARTED FOR FREE

The only thing you need is some JSON

{
"timeline": {
"background": "#000000",
"tracks": [
{
"clips": [
{
"asset": {
"type": "video",
"src": "https://shotstack-ingest-api-v1-au.s3.ap-southeast-2.amazonaws.com/62hne3bb81/zzyb58zg-3s0j-440g-hf9o-0hvxy73joauh/source.m4v",
"trim": 3
},
"offset": {
"x": 0,
"y": 0
},
"position": "center",
"length": 4,
"start": 0
}
]
}
]
},
"output": {
"size": {
"width": 250,
"height": 250
},
"format": "gif",
"repeat": true,
"quality": "low",
"fps": 12
}
}
Shotstack video to gif API

Tutorials & Resources

Learn how to programmatically convert video to gif via API

Demo's & Code Examples

Programmatically Convert video to GIF by using demo code

Pexels Video Maker
Pexels Video Maker

Search the Pexels stock footage video library and the Shotstack API will automatically compile an edit with music and a title

Go to demo

Compress Video
Compress Video

Video file compressor reduces the file size of a video by reducing it's resolution, frames-per-second (fps) and compression settings

Go to demo

Trim Video
Trim Video

Upload a video and trim the start and end to create a shortened clip using the Shotstack video editing API

Go to demo