{"uid":"cap_cBgnuL5NLjXXuIAwwSqLk","slug":"forgekit-pdf-generation-a0f6faff","name":"ForgeKit PDF Generation","description":"ForgeKit PDF (URL or HTML → PDF)","url":"https://useforgekit.dev/api/v1/pdf","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string"},"html":{"type":"string"},"format":{"type":"string"}}},"responseSchema":null,"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":"unknown","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_F9HZDhERG3_qTKJd5p1zi","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":"Converts a URL or raw HTML string into a PDF document","exampleAgentPrompt":"Can you convert this HTML invoice template into a PDF for me? Here's the HTML: '<html><body><h1>Invoice #1234</h1><p>Amount due: $500</p></body></html>' — use A4 format.","exampleUseCases":[{"title":"Invoice PDF from HTML template","prompt":"Take this HTML for my invoice — '<html><body><h1>Invoice #001</h1><p>Due: $250</p></body></html>' — and turn it into a PDF in letter format so I can email it to my client."},{"title":"Archive a webpage as PDF","prompt":"Can you save https://example.com/annual-report-2024 as a PDF for me? I want a permanent copy of that page."},{"title":"Generate PDF report from dynamic HTML","prompt":"I have this HTML string for a weekly analytics summary — '<html><body><h2>Weekly Report</h2><p>Visits: 4200</p></body></html>' — please render it as an A4 PDF so I can share it with the team."}],"resultDescription":"A PDF file (binary) rendered from the provided URL or HTML string, in the specified page format (e.g. A4, letter). The agent receives the PDF content which can be saved, sent, or returned to the user.","failureModes":["Invalid or unreachable URL returns an error","Malformed HTML may produce a blank or broken PDF","Unsupported format value may cause a validation error","Network timeout if the target URL is slow to load","Missing both url and html fields results in a bad request error"],"whenToPreferThis":"Choose this endpoint when you need to programmatically convert a webpage or HTML markup into a PDF document — especially in automated workflows, invoice generation, report exporting, or archiving web content. It supports both live URL rendering and raw HTML input, making it versatile for both scraping-to-PDF and template-to-PDF use cases. Prefer it over headless browser setups when a lightweight, pay-per-call API is sufficient.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:35:46.085Z","isFirstParty":false}