← Tools Reference

HTML to Image

HTML to Image integration (Developer Tools, Design & Media). Imported from open-connector.

API key2 toolshttps://app.html2img.com
POST
html_to_image_convert_html_to_image
Convert raw HTML and optional CSS to an image with HTML to Image and return the generated image URL.

/api/html

8 parameters
ParamTypeRequiredDescription
htmlstringrequiredThe HTML content to render. This can include inline CSS and JavaScript.
cssstringoptionalAdditional CSS to inject before the image is rendered.
widthintegeroptionalThe viewport width in pixels from 1 to 5000.
heightintegeroptionalThe viewport height in pixels from 1 to 5000.
fullpagebooleanoptionalWhether to capture the full page height instead of only the viewport height.
dpiintegeroptionalThe device pixel ratio from 1 to 4. When fullpage is true, HTML to Image forces…
wait_for_selectorstringoptionalA CSS selector that must appear in the DOM before capture starts.
ms_delayintegeroptionalA fixed delay in milliseconds before capture, from 0 to 5000.
POST
html_to_image_capture_website_screenshot
Capture a public webpage with HTML to Image and return the generated screenshot URL.

/api/screenshot

9 parameters
ParamTypeRequiredDescription
urlstringrequiredThe public webpage URL to capture, including the protocol.
selectorstringoptionalA CSS selector for capturing a specific element on the target page.
cssstringoptionalAdditional CSS to inject before the image is rendered.
widthintegeroptionalThe viewport width in pixels from 1 to 5000.
heightintegeroptionalThe viewport height in pixels from 1 to 5000.
fullpagebooleanoptionalWhether to capture the full page height instead of only the viewport height.
dpiintegeroptionalThe device pixel ratio from 1 to 4. When fullpage is true, HTML to Image forces…
wait_for_selectorstringoptionalA CSS selector that must appear in the DOM before capture starts.
ms_delayintegeroptionalA fixed delay in milliseconds before capture, from 0 to 5000.