render_html
Render raw HTML/CSS to an image. Perfect for generating OG images, social cards, email previews, and dynamic content from templates. No URL needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | Additional CSS to inject | |
| html | Yes | Raw HTML content to render (max 2MB) | |
| width | No | Viewport width (default: 1280) | |
| format | No | Image format (default: png) | |
| height | No | Viewport height (default: 720) | |
| locale | No | BCP 47 locale tag for the browser context (e.g., "en-US") | |
| quality | No | Image quality 1-100 (default: 80) | |
| evaluate | No | JavaScript code to execute on the page before capture (max 10KB). Runs in the browser context. | |
| selector | No | CSS selector to capture specific element | |
| timezone | No | IANA timezone for the browser context (e.g., "America/New_York") | |
| dark_mode | No | Enable dark mode emulation | |
| full_page | No | Capture full page scroll height | |
| wait_until | No | Content load strategy (default: domcontentloaded). Use "networkidle" for content with external resources. | |
| device_scale | No | Device scale factor (default: 1) | |
| disable_javascript | No | Disable JavaScript execution on the page | |
| ignore_https_errors | No | Ignore HTTPS/TLS certificate errors |