# HTML to Image

HTML to Image is a service that converts HTML and CSS into images or captures screenshots of web pages.

- **Category:** images & design
- **Auth:** API_KEY
- **Tools:** 3
- **Triggers:** 0
- **Slug:** `HTML_TO_IMAGE`
- **Version:** 20260211_00

## Tools

### Check HTML-to-Image Account Usage

**Slug:** `HTML_TO_IMAGE_CHECK_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

**Slug:** `HTML_TO_IMAGE_CONVERT_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

**Slug:** `HTML_TO_IMAGE_GET_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.
