The playground

Try any of 919 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

Convenience alias of pdf_render for inline HTML→PDF (CraftMyPDF/PDF-API 'html-to-pdf' parity). Same engine; `html` 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.