Skip to main content
POST
Generate a GIF

GIF Generation

Generate animated GIFs from HTML with CSS animations or by recording live web pages.

Endpoints

Quality Presets

The response is wrapped in a gif object. Higher quality settings produce larger files.

Key Parameters

Tips for Better GIFs

  1. Keep dimensions reasonable — smaller GIFs load faster and compress better
  2. Optimize animations — simple, smooth animations compress better than complex ones
  3. Use solid backgrounds — gradients and transparency increase file size
  4. Limit colors — GIFs are limited to 256 colors per frame
  5. Loop seamlessly — design animations to loop smoothly for better visual appeal

Authorizations

Authorization
string
header
required

API key obtained from the Pictify dashboard

Body

application/json
html
string

HTML content with CSS animations

url
string<uri>

URL to capture

template
string

Template UID

variables
object
width
integer
default:800
Required range: 1 <= x <= 2000
height
integer
default:600
Required range: 1 <= x <= 2000

Response

200 - application/json

GIF generated

gif
object