Skip to content

Render HTML to image

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

Renders HTML to a PNG or JPEG image, or uploads it when X-Upload-Url is provided.

X-Upload-Url
string

Presigned PUT URL that receives the generated document.

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

Rendered image

string format: binary

Image uploaded successfully

Invalid request or upload URL

Rendering failed

Upload target rejected the request or was unreachable