---
title: "HTML to PDF"
method: POST
path: "/api/v1/render/html-to-pdf"
tags: ["render"]
---

# HTML to PDF

`POST /api/v1/render/html-to-pdf`

## Request

- Base URL: `https://toolforte.com`
- URL: `https://toolforte.com/api/v1/render/html-to-pdf`
- Auth: one of:
  - HTTP bearer
  - none

Render an HTML document to a real PDF with headless Chrome (full CSS support). Returns a hosted download URL valid for 24 hours. Free demo: 3 renders per day without a key. With an API key a render costs 25 units from the account's shared monthly balance, the same balance spent by REST calls (1 unit) and AI generations (10 units). Any plan can be extended with a pack from EUR 5.

## Request body

- object
  - `html` string, required: Full HTML document to render (max 1MB)
  - `format` 'A4' | 'Letter'
  - `landscape` boolean

## Response `200`

Hosted PDF download URL

## Other responses

- `400`: Missing or invalid html field
- `413`: HTML larger than 1MB
- `429`: Render limit reached (see error message)
- `502`: Render failed

---

[API](https://skmtc.dev/toolforte/apis/toolforte-api.md) · [All operations](https://skmtc.dev/toolforte/apis/toolforte-api/llms.txt) · [OpenAPI document](https://skmtc.dev/toolforte/apis/toolforte-api/revisions/4d814d484dfc?raw)
