Skip to main content
POST
Generate an image

Authorizations

Authorization
string
header
required

API key obtained from the Pictify dashboard

Body

application/json
html
string

HTML content to render

url
string<uri>

URL to screenshot (mutually exclusive with html)

template
string

Template UID to render

variables
object

Variables to populate in the template

width
integer
default:1200

Output width in pixels

Required range: 1 <= x <= 4000
height
integer
default:630

Output height in pixels

Required range: 1 <= x <= 4000
selector
string

CSS selector to capture specific element

fileExtension
enum<string>
default:png

Output image format

Available options:
png,
jpg,
jpeg,
webp

Response

Image generated successfully

url
string<uri>

URL of the generated image

Example:

"https://cdn.pictify.io/renders/abc123.png"

userStorageUrl
string<uri>

URL in user's configured storage (if configured)

id
string

Unique image identifier

Example:

"img_abc123"

createdAt
string<date-time>

Timestamp when image was created