Skip to main content
HTML to Image logo
  • Category: images & design
  • Auth: API_KEY
  • Composio-managed OAuth available? N/A
  • Tools: 3
  • Triggers: 0
  • Slug: HTML_TO_IMAGE
  • Version: 20261101_00

Tools

Slug: HTML_TO_IMAGE_CHECK_USAGEAttempts to retrieve hourly, daily, monthly and billing-period image usage from custom and common account usage endpoints. It returns empty statistics when no usable response is found or a response lacks recognizable usage data; endpoint failures can instead raise an error.

Input Parameters

array
Optional custom endpoint paths to try for usage statistics (e.g., [‘/v1/usage’, ‘/api/stats’]). Supports both relative paths (e.g., ‘/v1/usage’) and fully-qualified URLs (e.g., ‘https://api.example.com/usage’). If not provided, the action tries built-in candidates: /v1/usage, /api/usage, /v1/account/usage, /api/account/usage.
boolean
If true (default), returns empty usage statistics when no endpoint is found or all endpoints fail. If false, raises an error with details about which endpoints were tried. Recommended to keep as true for graceful handling when the API provider doesn’t support usage endpoints.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: HTML_TO_IMAGE_CONVERT_TO_IMAGETool 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.

Input Parameters

string
required
HTML content to render into an image
integer
Width of the output image in pixels; must be >=1 Maximum enforced limit may apply; exceeding it can cause validation errors or silent downscaling.
integer
Height of the output image in pixels; must be >=1 Maximum enforced limit may apply; exceeding it can cause validation errors or silent downscaling.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: HTML_TO_IMAGE_GET_IMAGERetrieve 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.

Input Parameters

integer ("0" | "1")
Set to 1 to serve the image as a downloadable attachment.
integer
Optional DPI metadata for the image; maximum 600.
integer
Optional output width in pixels; maximum 5000.
integer
Optional output height in pixels; maximum 5000.
string
required
Full URL of the generated image (e.g., ‘https://i.html2img.com/image-1234567890-123456.png’), typically obtained from the ‘url’ field of the HTML_TO_IMAGE_CONVERT_TO_IMAGE response. You may also provide just a partial path or append .png, .jpg, or .webp to select the format.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not