HTML to Image · Fast
Ultra-fast render — no JavaScript execution, ~50ms response time.
POST/v1/render/fast
This endpoint uses a lightweight render engine optimized for speed. It counts against the same monthly render limit as other endpoints.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| html * | String | — | HTML to render. Must be pure HTML/CSS — no JavaScript. |
| css | String | — | Extra CSS to inject globally. |
| width | Integer | 1080 | Output width in pixels. |
| height | Integer | 1350 | Output height in pixels. |
Response
JSON
{
"url": "https://api.starkrender.com/v1/image/uuid",
"id": "uuid"
}
Limitations
Because this endpoint uses a lightweight engine instead of a full browser, several features are unavailable:
- No JavaScript execution
- No automatic Google Fonts download — use system fonts or embed font-face via CSS
- No
selector,ms_delay,transparent,render_when_ready - No
device_scale— output is always 1x - Complex CSS (animations, pseudo-elements, some flexbox edge cases) may not render identically to Chromium
Use POST /v1/render when you need JavaScript execution, Google Fonts, or pixel-perfect fidelity.
Examples
Simple card — ~50ms
cURL
curl -X POST https://api.starkrender.com/v1/render/fast \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "html": "<div style=\"background:#0f172a;color:#fff;padding:40px;font-size:32px\">Hello</div>", "width": 800, "height": 400 }'
With extra CSS
JSON Body
{
"html": "<div class='box'>Fast render</div>",
"css": ".box { background: #C9952A; color: #000; padding: 60px; font-weight: 900; font-size: 48px; }",
"width": 1080,
"height": 1080
}
StarkRender