---
title: Generate GIF from Video API
slug: generate-gif
url: https://apyhub.com/apyhub/service/generate-gif
provider: ApyHub
categories: [File Conversion, File Manipulation]
tags: [gif-conversion, video-to-gif, video-processing, file-conversion, file-manipulation]
auth: api_key
---

# Generate GIF from Video API

Convert uploaded videos or remote video URLs into GIFs. Control size, speed, start time, and duration, with binary download or signed link output.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/generate/gif/file` | What it does Generates a GIF from an uploaded video file and returns the result as a streamed binar… | 550 |
| POST | `/generate/gif/file/url` | What it does Creates a GIF from an uploaded video file and returns a time-limited signed URL to dow… | 550 |
| POST | `/generate/gif/url/file` | What it does Generates a GIF from a remotely hosted video file and returns it as a streamed binary… | 550 |
| POST | `/generate/gif/url` | What it does Generates a GIF from a publicly accessible remote video URL and returns a signed downl… | 550 |

## About

## What it does
GIF Generator turns a source video into a GIF and gives you either the file stream or a signed download link. Send a local video upload or a publicly accessible video URL, then control the clip with start time, duration, playback speed, and output size.

Use the uploaded-video endpoints when your file is already in your app, or the URL endpoints when the source lives elsewhere. The input supports .mp4, .mkv, .avi, .mov, .flv, .3gp, and .webm files, plus remote video URLs. You can trim from a specific start time, cap the clip length at up to 20 seconds, and resize the output with a WxH dimension string such as 320x240.

The streamed-download endpoints return the GIF binary directly. The signed-link endpoints return a `data` field containing a time-limited URI for later download. That makes GIF Generator useful for social previews, product demos, chat snippets, and any workflow where you need a short looping animation from an existing video source.

If you need a quick video-to-GIF conversion step in a pipeline, this service keeps the inputs simple and the output format predictable.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/generate-gif
