xtract.bot

GIF extract frames

Try it interactively →
POST /api/gif-extract-frames

Extract every frame of an animated GIF as a base64 PNG. Returns frame timing (delay in ms) so you can rebuild the animation if needed.

Decodes an animated GIF and returns every frame as a PNG (base64-encoded). Each frame includes its delay in milliseconds, so you can reconstruct the animation. Useful for: - Converting GIFs to a frame-by-frame WebP / video. - Picking a single best frame to use as a poster image. - Per-frame analysis (object detection, OCR on each frame, etc.).

Inputs

NameTypeDefaultDescription
gif*fileInput animated GIF.

Response

Modes: json, binary. Cache: yes (24h TTL).

Code samples

Built from the dog example.

# Download or substitute the example input:
#   curl -O https://xtract.bot/examples/gif-extract-frames/dog.gif
GIF=$(base64 -w0 < dog.gif)

curl -X POST https://api.xtract.bot/api/gif-extract-frames \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "X-Account-Id: $XTRACT_ACCOUNT_ID" \
  -H "X-Api-Key: $XTRACT_API_KEY" \
  -d '{
  "gif": "'"$GIF"'"
}'