FastPix converts any on-demand video into an animated GIF or WebP preview that boosts click-through rates and social engagement by adding motion to thumbnails, product pages, and feeds. GIFs are highly popular for adding visual dynamism and are particularly effective in social media, messaging, and content-sharing platforms. This guide walks through the step-by-step process of generating GIFs with FastPix, from video initialization to final output customization.
ready and a playbackIdmediaId is the unique identifier FastPix assigns to every uploaded asset.playbackId is a separate, access-controlled identifier used to construct playback and image URLs. FastPix keeps them separate so you can control playback access independently from asset management.Create the source asset that the GIF will be extracted from. You can upload directly from your device or add the video using a URL. For a walk-through of the full flow, see the quick start guide.
Wait for the media status to change to ready before requesting a GIF. Until transcoding completes, the playbackId is not yet bound to renditions that the image service can sample from.
Send a GET request to the image endpoint with the target playbackId and the segment you want to convert. The endpoint returns an animated GIF or WebP directly — no polling or webhook is required.
URL format
Supported formats: gif or webp. WebP produces smaller files at comparable visual quality and is the better choice for mobile and high-traffic pages. Use gif when the destination platform does not render animated WebP (for example, older email clients).
NOTE:
To generate an animated preview for a video withaccessPolicy: private, sign the URL with a JWT. See Secure playback with JWTs.
GEThttps://images.fastpix.com/{PLAYBACK_ID}/clip.{gif|webp}Path parameters
Query parameters
Example URL

Signed URL for private playback
Tutorials and walk-throughs: A silent GIF demonstrates a feature: logging in, running a search, opening a setting, without the bandwidth cost of embedding a video.
Highlight key moments: Extract a 5-second segment from a longer recording (a goal, a product reveal, a demo beat) and surface it on a landing page or in search results.
Social sharing and messaging: When choosing dimensions for your GIF, select sizes that fit within your application’s design and user experience requirements. Consistent sizing keeps your UI looking cohesive and prevents layout shifts. Also, smaller resolutions improve load time, especially important for mobile devices.
Product demos in e-commerce: Show a product rotating, a feature animating, or a UI step in motion on a category page where a full video player would be heavyweight.
Keep duration between 3 and 5 seconds: The maximum supported is 10 seconds, but shorter clips loop more smoothly and load faster on mobile. This is especially useful in social and e-commerce apps, where users expect quick content previews.
Optimize the frame rate to the motion: The frame rate (fps) determines the GIF’s smoothness. Use fps=15 to fps=20 for hands-on UI demos or fast motion. Drop to fps=10 for subtle motion to cut file size without visible loss.
Cap dimensions at the display size: Requesting a 640x360 GIF that renders at 320x180 wastes bandwidth. The width default of 320 is a good starting point.
Prefer WebP where supported: Animated WebP is typically 25–50% smaller than a comparable GIF at the same quality, which matters on mobile and high-traffic pages.
When should I use WebP instead of GIF?
Use webp for modern browsers and mobile apps, it produces smaller files at comparable quality. Use gif when the destination (older email clients, some embed contexts) does not render animated WebP.
What is the maximum duration of a GIF generated by FastPix?
The end - start window can be up to 10 seconds. If you omit end, FastPix defaults to 5 seconds after start.
Do I need authentication to request a GIF?
Yes. The image endpoint accepts HTTP Basic auth with your Access Token ID and Secret Key. For videos with accessPolicy: private, you additionally need a signed JWT appended as a token query parameter.
Can I control the file size of the animated output?
Indirectly reduce fps, shrink width and height, or shorten the end - start window. Switching gif to webp usually produces the largest single size reduction.