Create an image
createImage renders the template and returns the image bytes.
The values to put into the template’s layers. Each entry is an array that names a layer with
name. Layers you leave out keep the values from the template. Modifications lists the fields each layer accepts.Content-Type header, for example image/webp.
Create a PDF
createPdf takes the same modifications option. It has no format option.
Create a stored image
createStoredImage renders the image, saves it on the Bannerify CDN, and returns a URL instead of the bytes. The URL starts with https://images.bannerify.co/files/. Use it when you want to put the link in an email, a database row, or a no-code tool.
It takes the same options as createImage.
s3Config. To save the file to your own bucket, call Create stored image over REST.
Handle the result
All three methods return['result' => ...] or ['error' => ...]. See Handle errors.