Generate an image
Images
Image Generation
Generate images from HTML, URLs, or templates
POST
Generate an image
Image Generation
Generate PNG, JPEG, or WebP images from HTML content, URLs, or saved templates. You can also render FabricJS canvas data directly.One of
html, url, or template is required. See each endpoint page for full request/response details.Endpoints
Input Sources
Output Formats
Use the
fileExtension parameter to change the output format.
Key Parameters
The
userStorageUrl response field is only included if you have configured custom storage in your account settings.Authorizations
API key obtained from the Pictify dashboard
Body
application/json
HTML content to render
URL to screenshot (mutually exclusive with html)
Template UID to render
Variables to populate in the template
Output width in pixels
Required range:
1 <= x <= 4000Output height in pixels
Required range:
1 <= x <= 4000CSS selector to capture specific element
Output image format
Available options:
png, jpg, jpeg, webp Response
Image generated successfully