{"uid":"cap_QqQ4vNpWDQjPmgV28fJDD","slug":"rasterly-pdf-generation-api-1a3a84b0","name":"Rasterly PDF Generation API","description":"The web-rendering layer for AI agents, sold per-call over the x402 payment protocol. Turn any URL into a screenshot, a PDF, or clean LLM-ready Markdown. No API keys, no accounts.","url":"https://rasterly-x402-production.up.railway.app/v1/pdf?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"Fetch + render this URL instead (public only)"},"html":{"type":"string","description":"Raw HTML document (required if no url)"},"scale":{"type":"number","description":"Render scale 0.1–2 (default 1)"},"format":{"enum":["A4","A3","A5","Letter","Legal","Tabloid"],"type":"string","description":"Page size (default A4)"},"margin":{"type":"string","description":"Margin, e.g. \"0.5in\", or a {top,right,bottom,left} object"},"landscape":{"type":"boolean","description":"Landscape orientation"},"footer_html":{"type":"string","description":"Footer template (e.g. page numbers)"},"header_html":{"type":"string","description":"Header template (Chromium print syntax)"},"print_background":{"type":"boolean","description":"Print CSS backgrounds (default true)"}}},"responseSchema":{"type":"json","example":{"note":"response body is the raw PDF bytes, not JSON","content_type":"application/pdf"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dxZ6wMl86xxvxPmEtLWd2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Renders a URL or raw HTML into a PDF document with configurable page size, margins, orientation, and headers/footers","exampleAgentPrompt":"Can you convert https://example.com/report to a PDF in Letter format with landscape orientation and include page numbers in the footer?","exampleUseCases":[{"title":"Invoice PDF from HTML template","prompt":"I have this HTML invoice template — can you render it as an A4 PDF with 0.5in margins and a footer showing the page number?"},{"title":"Archive webpage as PDF","prompt":"Save https://techcrunch.com/2024/01/15/article as a PDF so I can keep it for my records — use the default A4 size and make sure the background colors print."},{"title":"Legal document export","prompt":"Convert https://mycompany.com/contract into a PDF in Legal page format with portrait orientation and a header that says 'Confidential — Draft'"}],"resultDescription":"Raw PDF bytes returned as application/pdf content. The response body is the binary PDF file, not JSON. The agent receives a fully rendered PDF document ready to save, attach, or display.","failureModes":["URL is not publicly accessible — returns error if the target page is behind authentication or a firewall","Invalid HTML submitted — malformed markup may produce broken or blank PDF output","Unsupported page format enum value — must be one of A4, A3, A5, Letter, Legal, Tabloid","Scale value out of range — must be between 0.1 and 2.0","Payment failure via x402 protocol — call rejected if USDC payment of $0.008 is not completed","Timeout rendering complex pages — heavy JavaScript-rendered pages may time out"],"whenToPreferThis":"Choose this endpoint when you need a production-quality PDF rendered from a live URL or raw HTML, especially in agentic workflows where no API key setup is desired and per-call USDC micropayments via x402 are acceptable. Prefer it over headless browser DIY setups when you want a managed rendering service. Use it when you need precise control over page format, margins, orientation, and custom headers/footers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:33:43.118Z","isFirstParty":false,"canonicalSlug":"rasterly-pdf-generation-api-1a3a84b0"}