HTML to Image icon

HTML to Image

HTML and CSS to image conversion API for generated screenshots, image retrieval, and account usage.

Suited for social-share and OG-image flows that render HTML into images and fetch or resize previously generated assets.

Sign in to connect HTML to Image

Sign in to connect an account and start using HTML to Image in your apps.

Example Use Cases

These are example ways Snow can use HTML to Image when building apps with you. This list is meant to show examples, not document every possible capability. Connecting an account does not make Snow run these automatically on its own.

Check HTML-to-Image Account Usage

Attempts to retrieve account usage statistics from the HTML-to-Image API by trying multiple common endpoint patterns. NOTE: The html2img.com API does not officially document a dedicated usage statistics endpoint. This action tries several plausible endpoint paths and returns empty usage data if none are found (when return_defaults_on_error=true). For actual usage tracking with html2img.com, monitor the 'credits_remaining' field returned in responses from the convert or screenshot endpoints. Returns hourly, daily, and monthly image creation counts if a usage endpoint exists, or empty statistics as a fallback.

Convert HTML to Image

Tool to convert HTML content into an image. Returns either a downloadable file or a JSON payload containing id and url, depending on the upstream API behavior.

Get HTML to Image

Retrieve a previously generated image by its URL. Use this to fetch, resize, or download an existing HTML-to-image asset. The image URL is typically obtained from the 'url' field of the HTML_TO_IMAGE_CONVERT_TO_IMAGE response.