{"uid":"cap__ItBeiGOwrHfB5lTlb58s","slug":"toolrail-pdf-generator-8b61c9f7","name":"Toolrail PDF Generator","description":"Generate a print-ready PDF from JSON data (invoice, report, contract templates) or raw HTML. Returns application/pdf. No account or subscription needed. Use when an agent must hand a person a document: invoices, quotes, reports or contracts as a PDF file.","url":"https://toolrail.dev/pdf?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"quantity":{"type":"integer"},"unit_price":{"type":"integer"},"description":{"type":"string"}}}},"client":{"type":"object","properties":{"name":{"type":"string"}}},"issuer":{"type":"object","properties":{"name":{"type":"string"}}},"number":{"type":"string"},"currency":{"type":"string"},"tax_rate":{"type":"integer"}}},"template":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kMo1hTUqf8VX4Ro0haiB-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a print-ready PDF from structured JSON data (invoice, report, contract templates) or raw HTML, returning the PDF binary directly.","exampleAgentPrompt":"Generate a PDF invoice for my client Acme Corp — I'm billing them for 5 hours of consulting at $200 each and 2 software licenses at $500 each, my company is called Bright Solutions, invoice number INV-2024-042, USD currency, 10% tax. Use the invoice template.","exampleUseCases":[{"title":"Freelancer invoice to client","prompt":"Create a PDF invoice for my client Global Designs — I did 8 hours of web design at $150/hour and 3 hours of revisions at $100/hour. My company is called StudioMark, invoice number INV-007, currency USD, 8% tax. Use the invoice template."},{"title":"Sales quote for a prospect","prompt":"Generate a PDF quote for prospect NovaTech Ltd: 10 server units at $300 each and 1 setup service at $500. Issuer is CloudCore LLC, document number QT-2024-019, currency USD, no tax. Use the invoice template."},{"title":"Render custom HTML report to PDF","prompt":"Turn this HTML into a PDF for me — it's a monthly performance report I've already formatted in HTML and I just need it as a downloadable PDF file."}],"resultDescription":"Returns an application/pdf binary response — the fully rendered, print-ready PDF document. The agent receives raw PDF bytes that can be saved to disk, attached to an email, or served as a file download. No metadata envelope; the response body is the PDF itself.","failureModes":["Invalid or missing template name causes a 400 error","Malformed JSON data structure results in a rendering error","Missing required fields (e.g. client name, issuer name) may produce incomplete PDFs","Payment failure or insufficient USDC balance results in a 402 Payment Required response","Large or complex HTML input may cause timeout or rendering failure","Unsupported currency codes may not render correctly"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to hand a human a formatted, print-ready document such as an invoice, quote, report, or contract. It requires no account or subscription and charges a flat $0.01 USDC per call, making it ideal for low-friction, per-request document generation. Prefer it over generic HTML-to-PDF tools when you have structured invoice/report JSON data and want template-based rendering without managing a PDF library or server.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:46:54.187Z","isFirstParty":false,"canonicalSlug":"toolrail-pdf-generator-8b61c9f7"}