# Pagesnap HTML-to-Image/PDF Render API

> Pagesnap HTML-to-Image/PDF Render API is a paid API for AI agents from pagesnap.142-93-197-141.sslip.io, paid per call via x402, $0.005/call, status down (last checked 2026-09-15).

Renders an HTML string into a PNG, JPEG, WebP, or PDF binary at specified dimensions via a paid x402 POST endpoint

## Facts

- Endpoint: POST https://pagesnap.142-93-197-141.sslip.io/x402/v1/render
- Price: $0.005/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pagesnap-html-to-image-pdf-render-api-560289ce
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NtxzFBlnUADkPSi9y0w-c

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 pagesnap-html-to-image-pdf-render-api-560289ce -d '<json body>'
```

Example prompt: Take this HTML snippet and render it as a 1200×800 PNG for me: '<h1 style="color:red">Hello World</h1><p>This is a test page.</p>'

## When to prefer this

Use this endpoint when you have raw HTML content you want to convert to an image or PDF programmatically — particularly useful for templated documents like invoices, reports, social cards, or email previews. Prefer this over URL-based screenshot APIs when you already have the HTML and don't need to fetch a live page. The x402 micropayment model ($0.005 USDC per call) makes it suitable for high-volume automated pipelines without subscription overhead.

## Known failure modes

- HTML exceeds 1,500,000 character limit — request rejected
- Width or height outside allowed range (200–3840 for width, 200–10000 for height) — validation error
- Invalid or missing 'type' enum value — request rejected
- Payment not included or insufficient USDC — x402 payment required error
- HTML references external assets that are blocked or slow — partial or broken render
- Server-side rendering timeout for very complex HTML — empty or error response

## How this service works

Turn any public URL into clean Markdown, a screenshot, a PDF or metadata with one API. Free tier, no signup and a remote MCP server for AI agents.

## Output

A binary response containing the rendered image or PDF in the requested format (PNG, JPEG, WebP, or PDF), with the corresponding Content-Type header (e.g. image/png, application/pdf). No JSON wrapper — the body is the raw binary file.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "html": {
   "type": "string",
   "maxLength": 1500000
  },
  "type": {
   "enum": [
    "png",
    "jpeg",
    "jpg",
    "webp",
    "pdf"
   ],
   "type": "string"
  },
  "width": {
   "type": "integer",
   "maximum": 3840,
   "minimum": 200
  },
  "height": {
   "type": "integer",
   "maximum": 10000,
   "minimum": 200
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "encoding": "binary",
  "contentType": "image/png"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pagesnap-html-to-image-pdf-render-api-560289ce/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pagesnap.142-93-197-141.sslip.io](https://www.zero.xyz/host/pagesnap.142-93-197-141.sslip.io/llms.txt)
