Render Branded Artifact (PDF + PNG)
render_artifactUse this when the user asks to make or create a branded report, invoice, summary, release notes, or document — or to 'turn this Markdown/HTML into a PDF and PNG' (optionally with a logo or accent color). Do NOT use to screenshot an existing URL (use rendex_screenshot). Turns Markdown or HTML into a branded, downloadable artifact — a PDF, a PNG, and a hosted share page — in one call. Apply a logo, accentColor, font, header, and footer. Returns hosted URLs { pdfUrl, pngUrl, shareUrl, expiresAt }. Each requested format costs 1 render credit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Optional Mustache data. When present, content is rendered as a logic-less Mustache template (plus the branding fields as {{logo}}/{{header}}/...) before conversion. | |
| font | No | CSS font-family stack for the body (e.g. 'Georgia, serif'). | |
| logo | No | Absolute http(s) URL of a logo image shown in the header. | |
| footer | No | Plain-text footer line shown at the bottom. | |
| header | No | Plain-text header line shown beside the logo. | |
| content | Yes | The Markdown or HTML body to render (up to ~4MB). | |
| formats | No | Which formats to produce. Each costs 1 credit. Default both. | |
| expiresIn | No | Seconds until the hosted URLs expire (3600-2592000). Default 86400 (24h). | |
| pageSetup | No | Optional paper/viewport setup. | |
| accentColor | No | CSS accent color for the bar, links, and headings (e.g. '#EA580C'). | |
| inputFormat | No | How to interpret content. 'markdown' is converted to styled HTML; 'html' is used as a body fragment. | markdown |