{"category":"video","endpoint":"https://setget.net/v1/tools/video-to-gif","examples":[{"input":{"video":"sample.mp4","width":240},"title":"A whole short clip as a GIF"},{"input":{"colors":64,"dither":"pattern","duration":2,"fps":8,"start":1,"video":"sample.mp4"},"title":"Two seconds, small file"}],"input_schema":{"additionalProperties":false,"properties":{"colors":{"default":256,"description":"Number of colours in the palette. Fewer colours make a smaller file.","maximum":256,"minimum":2,"type":"integer"},"dither":{"default":"smooth","description":"How missing colours are imitated: smooth, pattern (smallest file), fine or none.","enum":["smooth","pattern","fine","none"],"type":"string"},"duration":{"description":"Length of the GIF in seconds. Up to 30; left empty, the video is used to its end.","examples":[3],"maximum":30,"minimum":0.1,"type":"number"},"fps":{"default":10,"description":"Frames per second. 10 to 15 is smooth enough for most GIFs; fewer makes a smaller file.","maximum":30,"minimum":1,"type":"integer"},"loop":{"default":true,"description":"Play the GIF again and again. Turn off to play it once.","type":"boolean"},"start":{"default":0,"description":"Where the GIF begins, in seconds from the start of the video.","examples":[1.5],"minimum":0,"type":"number"},"video":{"description":"The video to turn into a GIF.","format":"setget-file","type":"string","x-accept":["video"]},"width":{"default":480,"description":"Width of the GIF in pixels. The height follows. A video is never made larger.","maximum":1280,"minimum":16,"type":"integer"}},"required":["video"],"type":"object"},"keywords":["mp4 to gif","video to gif","make a gif","gif maker","mov to gif","webm to gif","animated gif","clip to gif","convert video to gif"],"related":["video-to-webp","video-to-mp4","video-trim","gif-optimize","video-frames"],"slug":"video-to-gif","summary":"Turn a video clip into an animated GIF with good colours, at the size, frame rate and length you choose.","tier":"job","timeout_seconds":300,"title":"Video to GIF","url":"https://setget.net/tools/video-to-gif"}
