API live — ₹0.10 per page

HTML to PDF API
Pay Only What You Use

Convert HTML to pixel-perfect PDFs and images in milliseconds. No subscriptions. No hidden fees. Pay for successful renders with a clear per-job total — see typical rates on our pricing page.

< 2s render
SSRF protected
Pay per use
REST API

No credit card required · ₹10 free credit on signup (~100 pages) · Cancel anytime

terminal
curl -X POST https://api.html2dochub.com/v1/render \
  -H "X-API-Key: sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "type": "pdf",
    "html": "<h1>Invoice #1042</h1><p>Total: $299</p>",
    "options": { "format": "A4" }
  }'
200 OK12ms
{
  "job_id": "9f2b...",
  "status": "completed",
  "pages": 1,
  "cost": "₹0.10",
  "download_url": "https://cdn.html2dochub.com/..."
}
< 2s
Avg render
₹0.08
Per page
99.9%
Uptime

Everything you need to render at scale

Built for developers who need reliable, cost-transparent PDF generation in production.

Lightning Fast Rendering

Chromium-based rendering delivers pixel-perfect PDFs in under 2 seconds. Sync and async modes.

True Pay-Per-Use

No subscriptions. Charged per page on successful jobs, with a clear total every time.

Enterprise Security

SSRF protection, HTML sanitization, signed S3 URLs, IP throttling, and rate limiting.

Auto Retry & Webhooks

Failed jobs retry automatically. Webhooks delivered with exponential backoff.

Async Job Queue

Submit large batch jobs asynchronously. Get webhook notifications on completion.

Clear job receipts

Every completed job shows output pages and the exact amount charged — no bundled tiers to decode.

Multiple API Keys

Create separate keys per project. Set custom rate limits. Revoke instantly.

Global CDN Delivery

Output files delivered via CloudFront. Signed URLs with configurable expiry.

Integrate in minutes

One API endpoint. Any language. Ship PDF generation to production today.

1
Sign up & get API key
Free account, no credit card needed
2
Add ₹100 to wallet
Razorpay-powered, instant credit
3
Make your first request
PDFs in under 2 seconds
curl -X POST https://api.html2dochub.com/v1/render \
  -H "X-API-Key: sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "pdf",
    "html": "<h1>Hello World</h1>",
    "options": {
      "format": "A4",
      "margin_top": "2cm"
    }
  }'

Transparent, usage-based pricing

Pay for successful renders only. Every job shows pages output and the exact amount charged — no subscription tiers.

ONLY PLAN YOU NEED

Pay As You Go

No subscriptions. Ever.

₹0.10minimum per job
  • Unlimited API calls
  • Sync & async rendering
  • HTML to PDF + Image
  • Webhook notifications
  • Full job history
  • Multiple API keys with rate limits
  • Per-job pages and charge in API responses
  • Low balance email alerts
Get started free

No credit card required

Typical Costs

1 page PDF~₹0.10
10 page PDF~₹0.80
100 page PDF~₹8
1,000 pages/day~₹80/day
10,000 pages/day~₹800/day

How pricing works

Add Funds

Minimum deposit: ₹100. Razorpay processes payment. Payment gateway fee (2% + 18% GST) shown transparently at checkout. Full invoice available.

10M+
Pages rendered
5,000+
Developers
99.9%
Uptime
< 2s
Avg render time

Why developers choose HTML2DocHub

FeatureHTML2DocHubPDFShiftDocRaptor
Pricing modelTrue pay-per-useSubscription tiersSubscription tiers
Minimum cost₹0.10/job$9/month$15/month
Cost transparencyPer-job totalOpaqueOpaque
Async mode✓ Built-in
Webhook retries✓ AutomaticLimitedLimited
Published rate guide✓ /pricing

Start rendering PDFs today

Free account. No credit card. ₹0.10 minimum per job.

Get your free API key