Your agent wrote the report. This endpoint turns it into a real PDF: Chromium-rendered, with fonts, CSS, page breaks, headers and footers. Also renders PNG.
Get a key first – no signup: curl -X POST https://api.bigapi.dev/v1/keys (100 free operations, 7 days).
curl -X POST https://api.bigapi.dev/v1/render -H 'Authorization: Bearer $KEY' -H 'Content-Type: application/json' -d '{"html":"<h1>Invoice 4711</h1>","format":"pdf"}' -o invoice.pdf
Add BiGapi to Claude Desktop, Cursor or any MCP client – the server fetches its own key on first use:
{
"mcpServers": {
"bigapi": { "command": "npx", "args": ["-y", "@bigapi/mcp"] }
}
}
Then simply ask: “Render this Markdown report as a PDF with a footer page number.” – the model calls the render tool.
| Param | Type | Required | Notes |
|---|---|---|---|
html | string | no | HTML document or fragment. One of html, markdown, url is required. |
markdown | string | no | Markdown source; converted with GitHub-flavoured rules. |
url | string | no | Public URL to render. |
css | string | no | Extra CSS injected into the document. |
format | string | no | one of pdf, png · default pdf |
pdf | object | no | Chromium PDF options: format (A4, Letter…), landscape, margin, printBackground, scale. |
png | object | no | Viewport options: width, height, fullPage, deviceScaleFactor. |
waitUntil | string | no | one of load, domcontentloaded, networkidle0, networkidle2 · default networkidle0 |
timeoutMs | integer | no | default 30000 |
Idempotency-Key are free · prepaid credit from $5, never expires.Every response carries X-BigAPI-Cost, X-BigAPI-Balance and X-BigAPI-Free-Ops – your agent can budget on its own.
| Status | Meaning | Agent action |
|---|---|---|
401 | missing/invalid key | POST /v1/keys for a fresh one |
402 | credit exhausted | show the upgrade_url from the response to a human |
413 | file too large | split the input (limit 100 MB) |
422 | conversion failed | check the detail field – costs $0 |
429 | rate limited | wait retry_after seconds |
Yes – CSS page breaks work, and pdf.headerTemplate / pdf.footerTemplate accept Chromium header/footer HTML.
Markdown is simplest and gets a clean print stylesheet automatically. Send HTML when you need full layout control, plus optional css.
Yes, url sources wait for network idle by default. Use waitUntil and timeoutMs to tune.