Creative
workflow API

One template becomes every banner, social image, and PDF. Render it by ID, change the variables, or hand the same job to an agent.

curl -X POST \
  https://bannx.com/api/v1/templates/TEMPLATE_ID/render \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "format": "png" }'

Quickstart

  1. Create an API keySettings, then Space, then Developers. One key per space.
  2. Send it on every callAuthorization: Bearer, then the key.
  3. Render a templatePOST /api/v1/templates/:id/render and read url.

Four ways to render

Guides

Questions

Do I have to publish a template before rendering it?
Over the API, yes: renders use the published version unless you pass "draft": true. A template that was never published renders its draft either way.
Can one template make several sizes?
Yes. Pass size on a render, as a preset such as og or story or as "1200x628"; the layout reflows and the template itself does not change.
Where are rendered files stored?
In your space's storage, or in your own bucket with the AWS S3 integration. A render with raw: true returns the bytes and stores nothing.
What does a render cost?
Renders spend credits from the space: an image or a PDF page costs one, a video clip more. When credits run out the API answers 402 instead of billing an overage.

Renders spend credits from the space. A missing or invalid key returns 401. View usage