{"uid":"cap_YYIB56MCUUpNSSIa5_7lJ","slug":"agishub-html-to-pdf-renderer-d146df0d","name":"AGISHub HTML-to-PDF Renderer","description":"Render a public URL or a raw HTML string into a PDF document, returned base64-encoded. Backed by a headless browser. Use for invoices, reports, receipts and any HTML-to-PDF need.","url":"https://api.agishub.com/v1/pdf","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"enum":["http"],"type":"string"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Public http/https URL to render to PDF. Provide this OR html."},"html":{"type":"string","description":"Raw HTML string to render to PDF. Provide this OR url."},"format":{"enum":["A4","Letter","Legal","A3","A5","Tabloid"],"type":"string","description":"Paper size (default A4)."},"landscape":{"type":"boolean","description":"Landscape orientation (default false = portrait)."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"enum":["json"],"type":"string"},"example":{"type":"object"}},"additionalProperties":false}}},"responseSchema":{"type":"json","example":{"result":"Render a public URL or a raw HTML string into a PDF document, returned base64-encoded. Backed by a headless browser. Use"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__GtDaQTeqcnzsm5rynIxL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Renders a public URL or raw HTML string into a PDF document, returned as a base64-encoded string, using a headless browser.","exampleAgentPrompt":"Can you render this invoice HTML into a PDF for me? Here's the raw HTML: '<html><body><h1>Invoice #1042</h1><p>Amount due: $500</p></body></html>' — use A4 paper size in portrait orientation.","exampleUseCases":[{"title":"Generate PDF invoice from HTML template","prompt":"I have an HTML invoice template with the customer details filled in — can you convert it to a PDF so I can email it as an attachment? Here's the HTML string, use A4 portrait format."},{"title":"Save a live report page as PDF","prompt":"Turn this public URL into a PDF for me: https://reports.example.com/q4-summary — use Letter size in landscape orientation so the tables fit nicely."},{"title":"Export a legal receipt as PDF","prompt":"Convert this receipt HTML to a PDF document using Legal paper size so I can print it for filing: '<html><body><h1>Receipt</h1><p>Order #8821 — $120.00</p></body></html>'"}],"resultDescription":"A JSON response containing a base64-encoded PDF string in the 'result' field, representing the fully rendered page or HTML content as a PDF document ready to decode and save or send.","failureModes":["Invalid or unreachable URL returns an error (URL must be publicly accessible over HTTP/HTTPS)","Malformed HTML may produce a blank or broken PDF","Missing both 'url' and 'html' parameters causes a validation error","Unsupported paper format enum value returns a schema validation error","Very large or complex pages may time out during headless browser rendering","Payment failure (402) if USDC balance or x402 credentials are insufficient"],"whenToPreferThis":"Choose this endpoint when you need server-side, headless-browser-accurate PDF rendering from either a live public URL or a raw HTML string, especially for invoices, receipts, or reports where CSS and JavaScript rendering fidelity matters. Prefer it over client-side PDF libraries when you need a reliable, hosted, per-call service without managing browser infrastructure yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:56:56.471Z","isFirstParty":false}