{"uid":"cap_NtxzFBlnUADkPSi9y0w-c","slug":"pagesnap-html-to-image-pdf-render-api-560289ce","name":"Pagesnap HTML-to-Image/PDF Render API","description":"Turn any public URL into clean Markdown, a screenshot, a PDF or metadata with one API. Free tier, no signup and a remote MCP server for AI agents.","url":"https://pagesnap.142-93-197-141.sslip.io/x402/v1/render","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"html":{"type":"string","maxLength":1500000},"type":{"enum":["png","jpeg","jpg","webp","pdf"],"type":"string"},"width":{"type":"integer","maximum":3840,"minimum":200},"height":{"type":"integer","maximum":10000,"minimum":200}}},"responseSchema":{"type":"json","example":{"encoding":"binary","contentType":"image/png"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-KiGulRvXefbCueoYGItk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Renders an HTML string into a PNG, JPEG, WebP, or PDF binary at specified dimensions via a paid x402 POST endpoint","exampleAgentPrompt":"Take this HTML snippet and render it as a 1200×800 PNG for me: '<h1 style=\"color:red\">Hello World</h1><p>This is a test page.</p>'","exampleUseCases":[{"title":"HTML invoice to PDF export","prompt":"I have an HTML invoice template — can you render it as a PDF at 1024 pixels wide so I can send it to a client? Here's the HTML: '<html><body><h1>Invoice #42</h1><p>Amount due: $500</p></body></html>'"},{"title":"Email template preview image","prompt":"Turn this HTML email template into a 600×400 JPEG so I can preview how it looks before sending: '<table><tr><td><h2>Summer Sale!</h2><p>50% off everything.</p></td></tr></table>'"},{"title":"Social card thumbnail generation","prompt":"Generate a 1200×630 PNG from this HTML so I can use it as an Open Graph social card thumbnail: '<div style=\"background:#4f46e5;color:white;padding:40px;font-size:48px\">My Awesome Post Title</div>'"}],"resultDescription":"A binary response containing the rendered image or PDF in the requested format (PNG, JPEG, WebP, or PDF), with the corresponding Content-Type header (e.g. image/png, application/pdf). No JSON wrapper — the body is the raw binary file.","failureModes":["HTML exceeds 1,500,000 character limit — request rejected","Width or height outside allowed range (200–3840 for width, 200–10000 for height) — validation error","Invalid or missing 'type' enum value — request rejected","Payment not included or insufficient USDC — x402 payment required error","HTML references external assets that are blocked or slow — partial or broken render","Server-side rendering timeout for very complex HTML — empty or error response"],"whenToPreferThis":"Use this endpoint when you have raw HTML content you want to convert to an image or PDF programmatically — particularly useful for templated documents like invoices, reports, social cards, or email previews. Prefer this over URL-based screenshot APIs when you already have the HTML and don't need to fetch a live page. The x402 micropayment model ($0.005 USDC per call) makes it suitable for high-volume automated pipelines without subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:26:48.144Z","isFirstParty":false}