The playground
Try any of 1042 endpoints — live.
Pick an endpoint, load a working example, tweak the params, and send — no signup to try. Results render the way the data deserves; raw JSON, headers & code are one tab away.
Playground demo key · api.reefapi.com
post/generate/v1/pdf_from_html4 credits
Shortcut for rendering inline HTML directly to PDF — the same WeasyPrint engine as pdf_render; `html` is required.
Working example
Parameters
HTML/CSS document to render (Jinja2 allowed, sandboxed).
Optional Jinja2 variables for the HTML.
Page size (only if your CSS uses {{ paper }}).
Suggested filename.
Allowlisted https hosts for remote assets (default none).
request preview
curl -X POST https://api.reefapi.com/generate/v1/pdf_from_html \
-H "x-api-key: $REEF_KEY" \
-H "content-type: application/json" \
-d '{"html":"<!doctype html><h1>{{ t }}</h1>","data":"{\"t\":\"Hello\"}"}'Hit Send to run this endpoint live.