Skip to content

Render HTML to image

POST
/render
curl --request POST \
--url http://localhost:8080/render \
--header 'Content-Type: application/json' \
--data '{ "baseUrl": "example", "format": "example", "html": "example", "width": 1 }'

Renders HTML to a PNG or JPEG image. Returns the image binary.

Media type application/json
object
baseUrl
string
format
string
html
required
string
width
integer
Example generated
{
"baseUrl": "example",
"format": "example",
"html": "example",
"width": 1
}

Rendered image

string format: binary

Invalid request

Rendering failed