← Tools Reference

HTML/CSS to Image

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

API key5 toolshttps://hcti.io
POST
htmlcsstoimage_create_image
Create an image from either raw HTML/CSS or a public webpage URL with HTML/CSS to Image.

/v1/image

20 parameters
ParamTypeRequiredDescription
htmlstringoptionalThe HTML snippet or complete webpage markup to render.
urlstringoptionalThe public webpage URL to screenshot. This overrides html upstream.
cssstringoptionalCSS to render with HTML snippets or inject into URL screenshots.
google_fontsstringoptionalGoogle Fonts to load, such as Roboto or multiple font families separated by a p…
selectorstringoptionalA CSS selector for an element to crop the generated image to.
ms_delayintegeroptionalThe fixed delay in milliseconds before generating the image.
max_wait_msintegeroptionalThe maximum time in milliseconds to wait before taking the screenshot.
device_scalenumberoptionalThe Chrome device scale factor. Higher values increase resolution and file size.
render_when_readybooleanoptionalWhether page JavaScript must call ScreenshotReady() before the image is generat…
full_screenbooleanoptionalWhether to generate an image of the entire page height.
block_consent_bannersbooleanoptionalWhether to automatically hide common cookie consent banners and popups.
viewport_widthintegeroptionalThe Chrome viewport width in pixels. Set with viewport_height to disable automa…
viewport_heightintegeroptionalThe Chrome viewport height in pixels. Set with viewport_width to disable automa…
viewport_mobilebooleanoptionalWhether Chrome should emulate a mobile viewport.
viewport_landscapebooleanoptionalWhether Chrome should emulate a landscape mobile viewport.
viewport_touchbooleanoptionalWhether Chrome should emulate touch input support.
color_schemestringoptionalThe Chrome color scheme to use while rendering websites that support prefers-co…
timezonestringoptionalThe IANA timezone identifier used while rendering the image.
disable_twemojibooleanoptionalWhether to use native emoji fonts instead of Twemoji.
proxy_idstringoptionalThe configured HTML/CSS to Image dashboard proxy ID for outbound requests.
POST
htmlcsstoimage_create_batch_images
Create up to 25 HTML/CSS to Image images in one batch using shared default options and per-image variations.

/v1/image/batch

2 parameters
ParamTypeRequiredDescription
default_optionsobjectoptionalDefault image creation options applied to every batch variation.
variationsarrayrequiredThe image variations to create, up to 25.
DELETE
htmlcsstoimage_delete_image
Delete one generated image from HTML/CSS to Image and clear its CDN cache.

/v1/image/{image_id}

1 parameter
ParamTypeRequiredDescription
image_idstringrequiredThe image identifier to delete.
DELETE
htmlcsstoimage_delete_batch_images
Delete multiple generated images from HTML/CSS to Image in one request.

/v1/image/batch

1 parameter
ParamTypeRequiredDescription
idsarrayrequiredThe image identifiers to delete.
GET
htmlcsstoimage_get_usage
Retrieve HTML/CSS to Image usage counts by hour, day, month, and billing period.

/v1/usage