{"uid":"cap_Iy9taSIKAMagBo4FaSGE9","slug":"munition-html-to-pdf-renderer-d71b5b2d","name":"Munition HTML to PDF Renderer","description":"Synchronous HTML to A4 PDF, 0.020 USDC with seven-day deletion eligibility, not a hard public-access cutoff; asynchronous cleanup and caches may persist. Not renewable. Non-guessable public URL, not private: do not submit sensitive content. HTTP x402 only; no PDF MCP tool or MPP route. Candidate implementation; deployment not verified.","url":"https://api.munition.io/v1/render/pdf","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"html":{"type":"string","maxLength":1048576,"minLength":1,"description":"Self-contained HTML document (UTF-8, up to 1 MiB) with inline CSS. No JavaScript, iframes, forms, <link>, external or relative resources: scripting is disabled and document requests are intercepted/aborted in an offline browser context, not process-wide OS egress isolation. The Chromium sandbox is disabled; process isolation is a deployment concern. Embed images and fonts as data: URIs (png, jpeg, gif, webp, svg, woff/woff2/ttf/otf). Output is A4, up to 20 pages / 10 MiB on successful return, with a 10-second application-level render watchdog budget. Launch, shutdown and cleanup can extend elapsed call time; this is not a hard process-lifetime bound. Page and PDF-byte limits are checked after PDF allocation and do not bound peak memory or CPU."},"filename":{"type":"string","maxLength":180,"minLength":1,"description":"Optional filename used for a readable public URL slug, for example invoice-2026-09.pdf. Consecutive dots (..) anywhere are invalid."}}},"responseSchema":{"type":"json","example":{"id":"pdf_example","bytes":1000,"pages":1,"sha256":"0000000000000000000000000000000000000000000000000000000000000000","renderMs":100,"expiresAt":"2026-09-15T00:00:00.000Z","publicUrl":"https://files.munition.io/render/pdf_example-report.pdf"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MIbtp43A7uoC97zBL_bSm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a self-contained HTML document into an A4 PDF file and returns a temporary public download URL, billed at 0.020 USDC via x402.","exampleAgentPrompt":"Take this self-contained HTML invoice document and render it as an A4 PDF — save it as invoice-2026-09.pdf and give me the public download link.","exampleUseCases":[{"title":"Invoice PDF generation for billing","prompt":"Here's the HTML for my client invoice — can you convert it to an A4 PDF and give me a shareable download link? Save it as acme-invoice-june-2026.pdf."},{"title":"Automated report export to PDF","prompt":"I have a finished HTML sales report with all CSS inlined and charts as data URIs — please render it as a PDF so I can attach it to an email, name the file q2-sales-report.pdf."},{"title":"Legal document PDF rendering","prompt":"Convert this self-contained HTML contract template into a downloadable A4 PDF — call it service-agreement-draft.pdf — so the client can sign it."}],"resultDescription":"A JSON object containing: a unique PDF id, file size in bytes, page count, SHA-256 hash of the PDF, render time in milliseconds, an expiry timestamp (approximately seven days out), and a non-guessable public URL at files.munition.io where the PDF can be downloaded. The file is not renewed automatically and is deleted after the expiry window.","failureModes":["HTML exceeds 1 MiB limit — request rejected","Rendered PDF exceeds 20 pages or 10 MiB — post-render rejection","Render watchdog timeout (10-second budget) exceeded — timeout error","External resources (scripts, iframes, external CSS/images) blocked silently — output may be visually incomplete","Consecutive dots (..) in filename — validation error","Insufficient USDC balance or x402 payment failure — payment error","Service deployment unverified — endpoint may be unavailable"],"whenToPreferThis":"Choose this endpoint when you need a synchronous, pay-per-use HTML-to-A4-PDF conversion with a hosted download URL and no subscription. It is well-suited for AI agents generating invoices, reports, or contracts from pre-rendered, self-contained HTML with inlined CSS and data-URI assets. Prefer it over general-purpose PDF libraries when you need a hosted public URL returned automatically. Avoid it for documents requiring JavaScript execution, external resource loading, forms, iframes, or content that must remain private beyond the seven-day window.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:39:15.569Z","isFirstParty":false}