Skip to main content
Each method takes a template id and keyword arguments. Every argument except the template id is optional.

Create an image

create_image renders the template and returns the image bytes.
str
required
The template id, for example tpl_xxx.
list[dict]
The values to put into the template’s layers. Each entry names a layer with name. Layers you leave out keep the values from the template. Modifications lists the fields each layer accepts.
str
default:"png"
The image format: png, jpeg, or webp.

Create a PDF

create_pdf takes the same template_id and modifications. It has no format argument.

Create a stored image

create_stored_image 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 arguments as create_image.
The Python SDK cannot send 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.