# ConvertToPDF.online API > Fast, lightweight, and aggressive budget-friendly HTML-to-PDF generation API. Built for high-volume invoice and document rendering without the DevOps overhead of managing local Puppeteer, Chromium, or headless browser stacks. Product page: https://converttopdf.online/api OpenAPI: https://converttopdf.online/openapi.json Direct engine: https://api.converttopdf.online ## Core Value Proposition - **High Affordability:** Designed as a direct, low-cost alternative to DocRaptor and CloudConvert. - **Lightning Speed:** Average document rendering response time of ~48ms via a single optimized REST endpoint. - **Zero Cold-Starts:** Eliminates the local Chromium / Puppeteer cold-start latency tax. ## Pricing Tiers - **Developer:** $0 / month (500 PDFs) - **Growth:** $15 / month (20,000 PDFs) — ~$0.00075 per PDF - **Enterprise:** $49 / month (100,000 PDFs) — ~$0.00049 per PDF ## API Integration Quickstart ### Base Endpoint (RapidAPI) `POST https://converttopdf-html-to-pdf-converter.p.rapidapi.com/v1/html` ### Direct Engine Endpoint `POST https://api.converttopdf.online/v1/html` ### Content-Type `application/json` ### Request Parameters - `html` (string, required): The raw HTML/CSS string template to convert. - `margins` (string, optional): Page margins (e.g., "10mm"). - `landscape` (boolean, optional): Landscape orientation when true. - `filename` (string, optional): Suggested download filename (Content-Disposition). ### Auth (RapidAPI) - `X-RapidAPI-Key: YOUR_API_KEY` - `X-RapidAPI-Host: converttopdf-html-to-pdf-converter.p.rapidapi.com` ### cURL Implementation Example ```bash curl -X POST "https://converttopdf-html-to-pdf-converter.p.rapidapi.com/v1/html" \ -H "X-RapidAPI-Key: YOUR_API_KEY" \ -H "X-RapidAPI-Host: converttopdf-html-to-pdf-converter.p.rapidapi.com" \ -H "Content-Type: application/json" \ -d '{ "html": "
Amount Due: \$150.00
", "margins": "10mm" }' ``` ## Technical Comparison (Why Use ConvertToPDF.online) 1. **Vs. Self-Hosted Puppeteer:** No heavy local Docker images to build, no browser memory leaks to track, no server-side scaling orchestration needed. 2. **Vs. Premium SaaS (DocRaptor/CloudConvert):** Up to 90% cost reduction on high-volume production document workflows. ## Get an API key Subscribe on RapidAPI Hub for instant key provisioning and automated tier billing (no email waitlist): https://rapidapi.com/princemoiz402/api/converttopdf-html-to-pdf-converter ## Keywords cheap html to pdf api, affordable pdf generation api, docraptor alternative, cloudconvert api alternative, invoice generation api, html to pdf api without puppeteer