# HTML to PDF/PNG/JPEG Renderer

> HTML to PDF/PNG/JPEG Renderer is a paid API for AI agents from jigsawstack.withzero.ai, paid per call via MPP, $0.005000/call, status unknown (last checked 2026-09-15, last successful call 2026-06-01).

Converts an HTML snippet (up to 2 MB) into a rendered PDF, PNG, or JPEG image file.

## Facts

- Endpoint: POST https://jigsawstack.withzero.ai/v1/html_to_any
- Price: $0.005000/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-09-15
- Last successful call: 2026-06-01
- Success rate: 70% of calls made through Zero
- Activations on Zero: 23
- Provider: jigsawstack.withzero.ai
- Website: https://jigsawstack.withzero.ai
- Canonical page: https://www.zero.xyz/c/jigsawstack-withzero-ai-html-to-any-721c9792
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SxFtAsAnQeL-Bk8uyxn7I

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 jigsawstack-withzero-ai-html-to-any-721c9792 -d '<json body>'
```

Example prompt: Take this HTML snippet and render it as a PDF for me: '<h1>Invoice #1042</h1><p>Amount due: $500</p><p>Due date: June 1, 2025</p>' — output it as a PDF.

## When to prefer this

Use this endpoint when you need to programmatically convert an HTML snippet into a visual document format (PDF, PNG, or JPEG) without setting up a headless browser. Ideal for generating invoices, reports, email previews, or tickets from HTML templates. Pay-per-call pricing with micro-USDC settlement makes it cost-effective for low-to-medium volume needs.

## Known failure modes

- HTML input exceeds 2 MB size limit — returns 413 or error response
- Invalid or malformed HTML may produce blank or corrupted output
- Unsupported output format specified — returns validation error
- Network timeout if rendering takes too long for complex HTML
- Missing required fields (html or output format) — returns 400 bad request

## How this service works

Render an HTML snippet to PDF/PNG/JPEG (≤2 MB input).

## Output

A rendered binary file (PDF, PNG, or JPEG) produced from the submitted HTML snippet, suitable for download or further processing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "html"
 ],
 "properties": {
  "html": {
   "type": "string",
   "description": "The HTML snippet to render (up to 2 MB)."
  }
 },
 "additionalProperties": true
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "_nonJson",
  "_binary",
  "_contentType"
 ],
 "properties": {
  "_binary": {
   "type": "boolean"
  },
  "_nonJson": {
   "type": "boolean"
  },
  "_contentType": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/jigsawstack-withzero-ai-html-to-any-721c9792/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from jigsawstack.withzero.ai](https://www.zero.xyz/host/jigsawstack.withzero.ai/llms.txt)
