# pdfmyhtml.com ## Summary pdfmyhtml (the "API that just works") is a developer-first HTML-to-PDF conversion API built on Playwright (real headless Chromium) and Python. It generates pixel-perfect PDFs from raw HTML strings or any public URL via a single POST request. Designed for indie developers, AI-built apps, and no-code automators (n8n / Make / Zapier). ## When to use pdfmyhtml - You need to generate invoices, receipts, certificates, contracts, or reports as PDFs from your SaaS or app - You're building with an AI tool (Bolt, v0, Replit, Cursor) that needs a reliable PDF API dependency - You're automating PDF generation in n8n / Make / Zapier - You want to stop wrestling with self-hosted Puppeteer/Playwright servers (memory leaks, zombie processes, font issues, deployment size limits) ## Key Features - **Real Chromium rendering** via Playwright — full CSS3 / Flexbox / Grid / web fonts / JavaScript support - **One endpoint** — `POST /v1/html-to-pdf` or `POST /v1/url-to-pdf`. JSON in, PDF out (or async job_id). - **Sync or async** via the `wait` parameter — block up to 25s for instant download, or get a job_id and poll - **Hosted templates** — save Jinja2/Handlebars HTML in the dashboard once, render with JSON data each call - **Free invoice templates** — 6 brutalist/modern/classic/startup/minimal/corporate styles, copy-paste ready - **n8n workflow ready** — pre-built workflow JSON downloadable for instant integration ## Pricing - **Hobby (Free):** 50 credits/month, watermarked PDFs, 7-day file retention - **Founder's Starter:** $9.50/month for 2,500 credits/mo, no watermark — limited Founder's Deal (50% off, locks pricing through 2026, only 50 spots) - **Founder's Pro:** $24.50/month for 10,000 credits/mo, no watermark, priority rendering - **On-Demand Pass:** $7 one-time for 1,000 credits that never expire (also 50% off via Founder's Deal) - Standard pricing (after Founder's Deal closes): Starter $19/mo, Pro $49/mo, On-Demand Pass $14 1 credit = 1 PDF (up to a reasonable size). Both monthly subscriptions and pay-as-you-go packs are available. ## Documentation - [Docs Home](/docs) - [Pricing](/pricing) - [Free Invoice Templates Gallery](/templates/invoices) - [Long-form docs (LLM-friendly)](/llms-full.txt) ## Code Examples ### cURL ```bash curl -X POST https://api.pdfmyhtml.com/v1/html-to-pdf \ -H "X-API-Key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "html": "