Skip to main content
POST
/
gif
Generate a GIF
curl --request POST \
  --url https://api.pictify.io/gif \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "html": "<string>",
  "url": "<string>",
  "template": "<string>",
  "variables": {},
  "width": 800,
  "height": 600
}
'
{
  "gif": {
    "url": "<string>",
    "uid": "<string>",
    "width": 123,
    "height": 123,
    "animationLength": 123
  }
}

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