shost-app-ojrurwe4ufxxfv3rmf0km.apps.storkhost.cloud/v1/render/raw
Render HTML or Markdown to PDF or PNG with headless Chromium and get the file bytes back (application/pdf or image/png). Body: the same JSON as /v1/render, or the raw document (Content-Type text/html or text/markdown) with options in the query string. Offline rendering, max 2 MiB input, 50 pages, 20 s.
POST
https://shost-app-ojrurwe4ufxxfv3rmf0km.apps.storkhost.cloud/v1/render/rawUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://shost-app-ojrurwe4ufxxfv3rmf0km.apps.storkhost.cloud/v1/render/raw", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"width":1200,"format":"png","height":630,"markdown":"# Weekly report\n\n| metric | value |\n|---|---|\n| renders | 1,204 |\n\n```python\nprint('hello')\n```\n"}),
});
console.log(await res.json());Example input
{
"width": 1200,
"format": "png",
"height": 630,
"markdown": "# Weekly report\n\n| metric | value |\n|---|---|\n| renders | 1,204 |\n\n```python\nprint('hello')\n```\n"
}