Docs
HTML to image
Render arbitrary HTML and CSS into hosted PNG, JPEG, or WebP assets using Ogify's browser infrastructure.
Request
POST /v1/render/html
{
"html": "<div class='card'>Hello</div>",
"css": ".card{font:700 64px sans-serif}",
"width": 1200,
"height": 630,
"format": "webp"
}Fields
| Field | Type | Required | Notes |
|---|---|---|---|
| html | string | yes | HTML document or fragment, up to 500 KB. |
| css | string | no | Additional stylesheet, up to 100 KB. |
| width / height | integer | no | Viewport/output size. |
| format | png | jpeg | webp | no | Defaults to png. |
| selector | string | no | Capture only the matching element. |
| full_page | boolean | no | Capture complete document height. |