PDF (30 sats)
pdfRead-only
PDF of a public web page (url) or of HTML/Markdown you send, printed by Chromium (first 50 pages). Returns the PDF as an embedded resource. 30 sats. Paid per call, no account. Without payment the call returns payment_required with a Lightning invoice and a Cashu payment request: pay the invoice and call again with the same arguments plus l402=':', or call with cashu=''. Every request is checked for free before an invoice is made; use quote to check first.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Absolute http(s) URL of a public page (ports 80/443, at most 2048 characters). | |
| html | No | An HTML document to render instead of a URL (at most 1 MiB; its JavaScript runs). | |
| l402 | No | Lightning payment proof for a retry: '<macaroon>:<preimage>', where macaroon comes from the payment_required answer of the previous call and preimage is the 64-hex proof your wallet returns after paying its invoice. Use it with the same tool and arguments. | |
| cashu | No | Cashu token (cashuA... or cashuB...) worth at least the price, from an accepted mint (see quote). Pays without a previous call. | |
| media | No | CSS media type to emulate (default print; screen = what a browser window shows). | |
| paper | No | Paper size (default letter). | |
| wait_ms | No | Extra wait after the page's load event, in milliseconds (default 0). | |
| markdown | No | Markdown to render in a plain page template instead of a URL (at most 1 MiB). | |
| landscape | No | Landscape orientation (default false). | |
| margin_in | No | Margin on all sides in inches (default 0.4). | |
| print_background | No | Print background colours and images (default true). |