# rendex HTML to PDF Renderer

> rendex HTML to PDF Renderer is a paid API for AI agents from rendex.x402tools.xyz, paid per call via x402, $0.05/call, status down (last checked 2026-09-15).

Renders raw HTML markup or a publicly accessible URL into a PDF document with configurable layout, margins, headers, and footers

## Facts

- Endpoint: POST https://rendex.x402tools.xyz/v1/render
- Price: $0.05/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rendex-html-to-pdf-renderer-74f4188d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Mc07jFF3BA7IyiPxq2YYf

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability rendex-html-to-pdf-renderer-74f4188d -d '<json body>'
```

Example prompt: Convert this HTML invoice snippet into a PDF with A4 page size, 20mm margins on all sides, and a footer showing the page number — return it as a base64-encoded PDF.

## When to prefer this

Choose this endpoint when you need server-side, pay-per-call PDF generation from HTML or a live URL without managing a headless browser yourself. It is especially suited for generating invoices, reports, or documents from HTML templates where precise layout control (margins, headers, footers) is required. The x402/USDC micropayment model makes it cost-effective for low-volume or on-demand rendering without a subscription.

## Known failure modes

- Invalid or inaccessible public URL returns an error response
- Malformed HTML may produce a blank or partially rendered PDF
- Unsupported layout options may be silently ignored or cause a 400 error
- Payment failure via x402 returns a 402 Payment Required status before rendering begins
- Large or complex pages may time out
- Missing or invalid options field may result in default layout being applied without warning

## How this service works

Render raw HTML or a public URL into a PDF with configurable page layout, margins, headers, and footers. Pay-per-call via x402 (USDC on Base).

## Output

A binary PDF document, or when base64 output is requested, a JSON object containing a base64-encoded PDF string and the total page count. The PDF reflects the rendered HTML or URL content with the configured layout options.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "options": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": "Binary PDF document or JSON { pdf, pages } when output=base64"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rendex-html-to-pdf-renderer-74f4188d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rendex.x402tools.xyz](https://www.zero.xyz/host/rendex.x402tools.xyz/llms.txt)
