update_template
Update Template
Update an existing image template. Editing a template creates a new version, so previous versions remain available. When generating images, the latest version is used by default unless a specific version is targeted.
update_template
Update an existing image template. Editing a template creates a new version, so previous versions remain available. When generating images, the latest version is used by default unless a specific version is targeted.
delete_images
Permanently delete one or more generated images. Removes the images from servers and clears CDN caching. This action **cannot be undone**.
generate_image_from_template
Generate an image using a pre-defined template with dynamic variable substitution. Templates use Handlebars syntax (e.g., `{{title_text}}`) for placeholders. Provide template values to fill in the variables and produce a customized image. Useful for generating dynamic social sharing images, certificates, badges, and other templated visuals.
create_template
Create a reusable image template with Handlebars variable placeholders. Templates allow you to define HTML that includes variables like `{{title_text}}` which can be substituted with dynamic values when generating images. Useful for creating consistent image layouts for social sharing, certificates, and other dynamic visuals.
list_templates
Retrieve all image templates on your account, or list all versions of a specific template. Returns template metadata including HTML, CSS, rendering configuration, and usage counts.
list_images
Retrieve a list of all images previously generated by your account. Returns image metadata including URLs, creation dates, and rendering parameters.
generate_image
Generate an image from HTML/CSS markup. Provide HTML content with optional CSS styling to render a pixel-perfect image using the Chrome rendering engine. Supports Google Fonts, custom viewport dimensions, device scaling, render delays, and CSS selector cropping. Returns a permanent, CDN-cached image URL.
Convert HTML/CSS markup and public URLs into images (PNG, JPEG, WebP) and PDFs. Generate screenshots of webpages, create dynamic images from reusable templates with Handlebars variable substitution, and manage generated images. Supports Google Fonts, custom viewport dimensions, device scale, render delays, CSS selector cropping, on-the-fly image resizing, and signed URLs for social sharing (og:image, twitter:image). Images are permanently hosted and CDN-cached.
Common questions about connecting HTML to Image to AI agents with Metorial.