Public APIs
GIF from Video API favicon

GIF from Video API

Video

This API helps you generate GIF from any video.

GIF from Video API's website screenshot

About GIF from Video API

GIF from Video API is a hosted service on ApyHub that converts source video into an animated GIF, returning either a streamed binary file or a time-limited signed download link. It accepts a locally uploaded video file or a publicly accessible video URL as input, supporting .mp4, .mkv, .avi, .mov, .flv, .3gp, and .webm formats.

Conversion can be controlled with optional parameters: a start time offset to seek into the source, a clip duration capped at 20 seconds, playback speed adjustment (a range of -10 to 10, where positive values speed up and negative values slow down playback), and an output size specified as a WxH dimension string. Uploaded-file requests are limited to 100MB total per request, with a URL-based endpoint available for larger sources.

The API exposes four POST endpoints covering both upload and URL-based input, each with a choice of direct binary download or a signed URL response. It is intended for developers building workflows that need short looping animations from existing video, such as social media previews, product demos, or chat snippets.

Key features

  • Converts uploaded video files (.mp4, .mkv, .avi, .mov, .flv, .3gp, .webm) to GIF
  • Converts video from a publicly accessible URL to GIF
  • Trims clips with configurable start time and duration, capped at 20 seconds
  • Adjusts playback speed from -10x to 10x
  • Resizes output GIF dimensions with a WxH string
  • Returns either a streamed binary GIF file or a time-limited signed download link

Frequently asked questions

What video formats does the API accept?

It accepts .mp4, .mkv, .avi, .mov, .flv, .3gp, and .webm files, as well as publicly accessible video URLs.

Is there a limit on clip length or file size?

Clip duration is capped at 20 seconds, and uploaded requests are limited to 100MB total per request.

Can I get a download link instead of the file itself?

Yes, both the upload and URL endpoints have a variant that returns a JSON object with a time-limited signed download URL instead of the binary stream.

Can I control the output GIF's size and speed?

Yes, you can set output dimensions with a WxH string and adjust playback speed from -10 to 10, where positive values speed up and negative values slow down the GIF.

How do I authenticate requests?

Requests are authenticated using an apy-token header with your API key.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product