{"endpoint":"/render","method":"POST","price_usdc":"0.005","summary":"Render your own HTML/CSS to a PNG or JPEG image.","input":{"properties":{"html":{"type":"string","description":"HTML document or fragment to render (max 2 MB)"},"width":{"type":"integer","minimum":16,"maximum":1920,"description":"Canvas width, default 1200"},"height":{"type":"integer","minimum":16,"maximum":1920,"description":"Canvas height, default 630"},"fullPage":{"type":"boolean","description":"Capture full content height instead of the fixed canvas"},"selector":{"type":"string","description":"CSS selector — capture just this element"},"transparent":{"type":"boolean","description":"Omit default white background (png only)"},"format":{"type":"string","enum":["png","jpeg"],"description":"Image format, default png"},"quality":{"type":"integer","minimum":1,"maximum":100,"description":"JPEG quality, default 80 (jpeg only)"},"scale":{"type":"number","enum":[1,2],"description":"Device scale factor (2 = retina), default 1"},"waitMs":{"type":"integer","minimum":0,"maximum":10000,"description":"Extra settle time after load, ms"},"response":{"type":"string","enum":["json","binary"],"description":"json (default) wraps base64; binary returns raw image bytes"}},"required":["html"],"example":{"html":"<div style=\"width:1200px;height:630px;display:grid;place-items:center;background:#0b1220;color:#fff;font:64px sans-serif\">Hello, agents</div>"}},"output":{"type":"json","example":{"ok":true,"contentType":"image/png","width":1280,"height":800,"bytes":48213,"sha256":"9f7d…","b64":"<base64-encoded image>","tookMs":1450}}}