Render HTML Image
render_html_imageRender HTML/CSS to a PNG in headless Chromium. Costs 1 credit. Use only when the user explicitly asks to render HTML/CSS, supplies HTML, or needs a deterministic code-based layout or an exact text watermark for overlay_images. A social card, banner or poster by itself is not a reason to use it: use generate_image.
Returns the finished image in this call; do not call check_job. If the queue is busy the call returns a job instead, and check_job gives the URL.
Tailwind utility classes work without a CDN. Any web font works: load it in the HTML, and the render waits for document.fonts.ready. No default font is injected. Use transparent_background=true for marks that go over video, and keep the canvas close to the visible content.
Pass images or fonts as inline_images: with {token: "photo", url}. Every {{token}} must have an entry. Requests to private addresses are refused; the page has up to 25 seconds to load. Up to 4096 pixels per side.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"html": "<html>"
},
"name": "render_html_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | HTML to render. Write it as for a real browser. Use {{token}} for inline_images. | |
| name | No | Optional asset name for the saved file. | |
| tags | No | Optional tags for the saved file. | |
| width | No | Output width in pixels. Default: 1200. | |
| height | No | Output height in pixels. Default: 630. | |
| force_new | No | An identical request submitted in the last 10 minutes returns that job without charging again; true generates it again. | |
| skills_used | No | Optional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs. | |
| inline_images | No | Images or fonts to embed. Every {{token}} needs a matching entry. | |
| budget_project | No | Optional budget project this generation's cost counts toward, for tracking spend per client or job. Pass its slug; an id or the exact display name also works. Create one with create_budget_project and find slugs with list_budget_projects. An unknown project never stops the generation: it runs without one, and the result warns how to add it with assign_to_budget_project. | |
| transparent_background | No | Make unused pixels transparent in the PNG. |