Screenshot (20-30 sats)
screenshotRead-only
Screenshot of a public web page (url) or of HTML/Markdown you send, rendered by headless Chromium. Returns the image. 20 sats for the viewport, 30 with full_page. 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. | |
| width | No | Viewport width in CSS px (default 1280). | |
| format | No | Image format. Default png, or jpeg when full_page is true (keeps long pages small). | |
| height | No | Viewport height in CSS px (default 800). | |
| quality | No | jpeg/webp quality (default 80). | |
| 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). | |
| full_page | No | Capture the whole page, up to 8000 px tall (30 sats instead of 20). Default false. |