Sub-second rendering for simple documents. Under 2s for most pages.
HTML2DocHub delivers industry-leading render times by keeping Chromium warm and reusing browser contexts. Simple HTML documents render in under 500ms. Standard invoices and reports in under 2 seconds. Backed by horizontal auto-scaling.
const start = Date.now();
const { render_duration_ms, final_cost } = await fetch(
"https://api.html2dochub.com/v1/render",
{
method: "POST",
headers: { "X-API-Key": "sk_live_YOUR_KEY", "Content-Type": "application/json" },
body: JSON.stringify({ type: "pdf", html: "<h1>Invoice</h1>", options: { format: "A4" } }),
}
).then((r) => r.json());
console.log(`API latency: ${Date.now() - start}ms`);
console.log(`Render time: ${render_duration_ms}ms`);
console.log(`Cost: $${final_cost}`);Pay only for pages rendered. No subscriptions. No minimum monthly fee.
Free account. No credit card required. API ready in minutes.
Get your free API key