Create image
Last updated
Last updated
Before getting started: You will need to create your API key.
POST
https://mtmx.io/v1/image
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Authorization*
String
Bearer YOUR-API-KEY
html*
String
The HTML you want to render for creating an image.
content
Object
Updates values when using Handlebars templating syntax. Learn more.
type
String
Defines whether to render JPEG or PNG image. Accepted values are png
and jpeg
. Default value is png
.
quality
Number
Defines the quality of JPG images. Not applicable to PNG images. Default value 80
.
selector
String
Target a specific HTML element to perform the screenshot. Default value is body
.
transparent
Boolean
Hides default white background and allows capturing screenshots with transparency. Default value is false
.