Skip to main content
HTML/CSS to Image logo
  • Category: images & design
  • Auth: API_KEY
  • Composio-managed OAuth available? N/A
  • Tools: 10
  • Triggers: 0
  • Slug: HTMLCSS_TO_IMAGE
  • Version: 20261030_00
  • Instant: Supported on the latest version. Support varies by tool.

Tools

Slug: HTMLCSS_TO_IMAGE_CREATE_IMAGECreate a hosted image from HTML/CSS or an internet-reachable webpage, including authenticated pages using request headers. Returns an image ID and a hosted URL accessible to anyone who has that URL.Instant: Supported on the latest version.Instant pricing: $0.014 per image rendered; cached renders may be free.Discount: 79

Input Parameters

string
CSS applied to supplied HTML or injected into a captured webpage.
string
Absolute, internet-reachable HTTP(S) webpage URL to capture. Set this or html, but not both; use headers for authenticated pages.
string
HTML to render. Set this or url, but not both.
object
HTTP headers sent to the captured page, with at most 20 case-insensitive names.
integer
Extra render delay in milliseconds, from 0 to 10000. Zero omits the explicit delay.
string
CSS selector for the element to capture.
string
IANA timezone exposed to the rendered page.
string ("screen" | "print")
CSS media type used while rendering: screen or print.
boolean
Capture the full scrollable page instead of only the viewport.
integer
Maximum wait from 500 to 10000 milliseconds for page loading.
string ("light" | "dark")
Preferred browser color scheme: light or dark.
number
Device scale factor from 0.1 to 3.
array
Google Font family names to load while rendering.
integer
Viewport width in pixels, from 1 to 6000. Requires viewport_height.
integer
Viewport height in pixels. Requires viewport_width.
integer
Reuse a matching recent render for this many seconds. Allowed durations depend on the account plan; free accounts accept 0 or 2592000 (30 days).
boolean
Wait until the page signals that rendering is ready.
Attempt to block common consent banners.
boolean
Render a transparent background where supported.
array
Up to 20 unique exact HTTP(S) origins that may also receive headers.
boolean
Also include supplied headers on page subrequests.

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: HTMLCSS_TO_IMAGE_CREATE_IMAGE_FROM_TEMPLATECreate an image from a reusable template using the latest version or an explicitly selected version.

Input Parameters

string
required
Template ID from LIST_TEMPLATES or CREATE_TEMPLATE.
object
required
Values supplied to the template’s Handlebars variables.
integer
Specific version to render; omit to use the latest version.

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: HTMLCSS_TO_IMAGE_CREATE_IMAGES_BATCHCreate 1 to 25 hosted images from HTML/CSS or internet-reachable webpages in one request, including authenticated pages using shared or per-image headers. Requires an account plan that supports batch creation.Instant: Supported on the latest version.Instant pricing: $0.014 per image rendered; cached renders may be free.Discount: 79

Input Parameters

array
required
One to 25 image requests; each overrides matching default_options fields.
object
Shared render settings applied before each variation’s overrides.

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: HTMLCSS_TO_IMAGE_CREATE_TEMPLATECreate a reusable Handlebars HTML/CSS image template. WARNING: the template is persistent because the API exposes no delete operation, and a free account can hold only one template.

Input Parameters

string
CSS applied to the template.
string
required
Handlebars HTML for the reusable template.
string
Template name, at most 64 characters.
string
Template description, at most 1024 characters.
object
Optional free-tier render settings for this template.

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: HTMLCSS_TO_IMAGE_DELETE_IMAGEPermanently delete one generated image and clear its HCTI CDN cache. Copies previously written to external storage are not deleted.

Input Parameters

string
required
Image ID to permanently delete.

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: HTMLCSS_TO_IMAGE_DELETE_IMAGES_BATCHPermanently delete multiple generated images and clear their HCTI CDN caches. Copies previously written to external storage are not deleted.

Input Parameters

array
required
Non-empty list of image IDs to permanently delete.

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: HTMLCSS_TO_IMAGE_GET_IMAGEDownload a generated image by ID, optionally converting its format, resizing it, or cropping it.

Input Parameters

integer
Output DPI from 30 to 600, primarily for PDF output.
integer
Output width in pixels, up to 5000.
string ("png" | "jpg" | "webp" | "pdf")
Output file format. Defaults to PNG when omitted.
integer
Output height in pixels, up to 5000.
string
Top crop coordinate or percentage.
string
required
Generated image ID returned by an image creation tool.
string ("start" | "center" | "end")
Horizontal origin used for aspect-ratio cropping.
string ("start" | "center" | "end")
Vertical origin used for aspect-ratio cropping.
string
Left crop coordinate or percentage.
string
Right crop coordinate or percentage.
string
Crop width as a pixel coordinate or percentage.
string
Bottom crop coordinate or percentage.
string
Crop height as a pixel coordinate or percentage.
string
Crop aspect ratio in width_height form, such as 16_9.

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: HTMLCSS_TO_IMAGE_GET_USAGEReturn recent hourly, daily, monthly, and billing-period image usage for the connected account.

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: HTMLCSS_TO_IMAGE_LIST_TEMPLATESList reusable image templates owned by the connected account, including their current version, source, and render settings.

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: HTMLCSS_TO_IMAGE_UPDATE_TEMPLATECreate a new version of an existing template using replacement Handlebars HTML and optional CSS or render settings.

Input Parameters

string
CSS for the new template version.
string
required
Replacement Handlebars HTML for the new template version.
string
Template name, at most 64 characters.
string
Template description, at most 1024 characters.
string
required
Existing template ID from LIST_TEMPLATES or CREATE_TEMPLATE.
object
Optional free-tier render settings for the new template version.

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