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
Four ways to render
- Design and download one fileEdit on the canvas, fill the template's form, then download a PNG, PDF, video or HTML5 ad.
- One file per row of a sheetThe Bulk tab takes a CSV whose header row names the variables, or JSON rows over the API (up to 500 per request), and returns a ZIP.
- Render from your own codePOST /api/v1/templates/:id/render returns a URL or the bytes; a GET or signed image URL drops straight into an <img>, an email or an og:image.
- Let an AI agent do itClaude, Cursor and other MCP clients create templates, apply edits and render with your API key.
Guides
- AuthenticationAPI keys, Bearer tokens, and render URLs.
- RenderingPNG, WebP, SVG, PDF, or video from a template ID.
- TemplatesList templates and read a published design.
- VariablesChange the text, images, and data on one render.
- BrandsApply a brand kit, or pass a brand on one render.
- Template expressionsFormulas that fill a layer from your variables.
- WebhooksA callback when a render finishes.
- API referenceEvery endpoint, with parameters and responses.
- MCPThe same tools for Claude, Cursor, and other agents.
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