{"name":"pdf-gen-api","version":"1.0","description":"Convert HTML, a URL, or Markdown into a PDF. Returns a download URL.","auth":{"type":"bearer","header":"Authorization","format":"Bearer <api_key>","obtain_key_at":"https://gumroad.com/ (purchase any plan to receive an API key by email)"},"base_url":"https://quill.rgtz.dev","openapi_url":"https://quill.rgtz.dev/openapi.yaml","operations":[{"id":"generate_pdf","method":"POST","path":"/v1/pdf","summary":"Generate a PDF from html, url, or markdown (provide exactly one).","request_body":{"type":"object","properties":{"html":"string — raw HTML document","url":"string — http(s) URL to render","markdown":"string — Markdown (GitHub-flavored)","filename":"string — optional output filename","options":{"format":"A4|Letter|Legal|A3|A5|Tabloid (default A4)","landscape":"boolean","printBackground":"boolean (default true)","margin":"{ top, bottom, left, right } CSS sizes","scale":"number 0.1–2","title":"string — used for markdown documents","css":"string — extra CSS for markdown documents","returnBase64":"boolean — also return pdf_base64"}},"required":"one of [html, url, markdown]"},"response":{"id":"string","download_url":"string (presigned, time-limited)","expires_in":"number (seconds)","bytes":"number","usage":"{ used, limit, period, tier }"},"headers":{"Idempotency-Key":"optional — safe retries, no double billing"},"example_request":{"markdown":"# Invoice 1024\\n\\n**Total:** $42.00","options":{"format":"A4"}}},{"id":"get_usage","method":"GET","path":"/v1/usage","summary":"Return the calling key's current tier and monthly usage."}],"errors":{"envelope":"{ error: { code, message, hint, request_id } }","codes":["unauthorized","forbidden","invalid_request","quota_exceeded","payload_too_large","render_failed","internal_error"]},"tiers":{"free":{"monthly_limit":100},"pro":{"monthly_limit":5000},"scale":{"monthly_limit":50000}}}