Render Image
render_imageRender a PNG image for social media cards using a template ID or raw HTML with JSON data. Returns a signed download URL.
Instructions
Render a PNG image (e.g. an OG/social card) with the DocJet API. Provide a template_id (discover them with list_templates) or raw html, plus a data object for template variables. Returns a signed download URL for the PNG.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Template variables (Handlebars data object) | |
| html | No | Raw HTML to render (max 512 KB) — alternative to template_id | |
| template_id | No | Template ID from list_templates (provide template_id OR html) |