{"uid":"cap_I2vtrvnCmGiJGy9UQVuYB","slug":"html-markdown-url-to-pdf-converter-8db5f69c","name":"HTML/Markdown/URL to PDF Converter","description":"Render HTML, Markdown, or a public URL to a PDF (A4, backgrounds on). Returns the PDF bytes. Exactly one of `html`, `markdown`, `url`.","url":"https://agent-vending-machine.avm-7301.workers.dev/pdf","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"Public http(s) URL to render"},"html":{"type":"string","description":"HTML document or fragment to render"},"markdown":{"type":"string","description":"Markdown to render (converted to styled HTML)"}}},"responseSchema":null,"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_-ASfXF4i3dl1kGdL336ZE","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 HTML, Markdown, or a public URL to a PDF document (A4, backgrounds enabled) and returns the raw PDF bytes.","exampleAgentPrompt":"Convert this markdown report to a PDF for me: '# Q2 Sales Report\\n\\nRevenue grew 12% this quarter...' — render it as a clean A4 PDF with backgrounds on.","exampleUseCases":[{"title":"Generate invoice PDF from HTML","prompt":"I've got an HTML invoice template with our company branding and the line items filled in — can you render it as a PDF so I can attach it to the client's email?"},{"title":"Archive live webpage as PDF","prompt":"Save this webpage as a PDF for our records: https://techcrunch.com/2024/05/01/openai-launches-new-model/ — I need an archived copy I can store in our document system."},{"title":"Export markdown docs to PDF","prompt":"Take this markdown documentation and turn it into a clean A4 PDF I can share with the team: '# API Integration Guide\n\n## Authentication\n\nAll requests require a Bearer token...'"}],"resultDescription":"Raw PDF binary bytes representing an A4-formatted PDF document rendered from the provided HTML, Markdown, or public URL, with CSS backgrounds enabled.","failureModes":["Invalid or inaccessible URL returns an error (URL must be public http/https)","More than one of html/markdown/url provided simultaneously returns a validation error","Malformed HTML may produce unexpected rendering output","Very large HTML documents or slow-loading URLs may time out","No input provided (none of html, markdown, url) returns a validation error"],"whenToPreferThis":"Use this endpoint when you need server-side PDF generation from HTML, Markdown, or a live URL without managing a headless browser yourself. Ideal for report generation, document export, invoice rendering, or archiving web pages as PDFs in an automated workflow. Prefer over client-side solutions when running in a headless or server environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:39:12.372Z","isFirstParty":false}