Skip to main content
POST
cURL

Authorizations

apiKey
string
query
required

Body

application/json
apiKey
string
required

Your API key. Create one on the API Keys page of the dashboard, and keep it on the server.

Example:

"YOUR_API_KEY"

templateId
string
required

The id of the template to render. In the dashboard, open the menu on a template card and choose Copy Template ID.

Example:

"tpl_xxx"

format
enum<string>
default:png

The image format. The value is case-sensitive, so jpg and JPEG are not valid.

Available options:
png,
jpeg,
webp
quality
integer

Encoder quality for the lossy formats (jpeg, webp), 1-100. Defaults to 90. Ignored for png.

Required range: 1 <= x <= 100
Example:

90

_debug
deprecated

Has no effect.

s3Config
object

Save the file to your own S3-compatible bucket. Without it, Bannerify saves the file in its own storage and serves it from its CDN. Only the stored endpoints use this field, and the Scale and Enterprise plans include it. Other plans get the error code FORBIDDEN.

modifications

The values to change in the template, as an array of modifications. Each modification names a layer and sets one or more fields, and a layer without a modification keeps the values from the template. An object keyed by layer name and a JSON string of either shape also work. See https://bannerify.co/docs/essentials/modifications.

Example:

Response

The stored image.

url
string
required

The public URL of the generated image.

Example:

"https://images.bannerify.co/files/0b3c1c1e-5d6f-4c52-9e0a-8f6a4c0f2a11.png"