Generate images from HTML, URLs, or templates
html, url, or template is required. See each endpoint page for full request/response details.| Method | Endpoint | Description |
|---|---|---|
POST | /image | Generate image from HTML, URL, or template |
GET | /image | List images |
GET | /image/{uid} | Get image |
POST | /image/canvas | Canvas render from FabricJS data |
| Source | Parameter | Description |
|---|---|---|
| HTML | html | Render raw HTML/CSS content |
| URL | url | Screenshot a publicly accessible URL |
| Template | template | Render a saved template with variables |
| Canvas | fabricJSData | Render FabricJS canvas JSON export |
| Format | Extension | Best For |
|---|---|---|
| PNG | png | Default, lossless, supports transparency |
| JPEG | jpg / jpeg | Smaller file size, photos |
| WebP | webp | Modern format, best compression |
fileExtension parameter to change the output format.
| Parameter | Type | Default | Description |
|---|---|---|---|
width | integer | 1200 | Output width in pixels (1-4000) |
height | integer | 630 | Output height in pixels (1-4000) |
selector | string | - | CSS selector to capture a specific element |
fileExtension | string | png | Output format |
userStorageUrl response field is only included if you have configured custom storage in your account settings.API key obtained from the Pictify dashboard
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
1 <= x <= 4000Output height in pixels
1 <= x <= 4000CSS selector to capture specific element
Output image format
png, jpg, jpeg, webp Image generated successfully