# MiniFrame URL to PDF

> MiniFrame URL to PDF is a paid API for AI agents from tools.miniframe.com.br, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-13).

Renders a public web page with a headless browser (executing JavaScript) and returns the result as a base64-encoded PDF.

## Facts

- Endpoint: POST https://tools.miniframe.com.br/url-to-pdf
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/miniframe-url-to-pdf-abf86d7f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8MCZUBVTtwO47XUY2P-bT

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 miniframe-url-to-pdf-abf86d7f -d '<json body>'
```

Example prompt: Can you convert https://example.com/report into a PDF for me? Use A4 size and landscape orientation.

## When to prefer this

Choose this endpoint when you need a PDF of a web page that relies on JavaScript rendering, such as single-page apps, dynamic dashboards, or JavaScript-heavy reports. Prefer this over static HTML-to-PDF converters when the page content is dynamically generated. Use when you need configurable paper sizes (A4, Letter, Legal, A3) or landscape orientation support.

## Known failure modes

- Private or internal URLs (e.g., localhost, 192.168.x.x) are blocked and will return an error
- Invalid or malformed URLs return a 4xx error
- Unreachable or timeout URLs may fail with a network error
- Unsupported format enum values return a validation error
- Pages requiring authentication may render incorrectly or incompletely

## How this service works

Use when a page has to become a shareable, archivable document — a receipt, a report, an invoice, a record kept for later. Renders it with a headless browser (running JavaScript) and returns a PDF. JSON body { url } (public http/https); optional format (A4|Letter|Legal|A3, default A4) and landscape (default false). Returns pdf_base64. Private/internal targets are blocked.

## Output

A JSON response containing a `pdf_base64` field with the base64-encoded PDF of the fully JavaScript-rendered web page, ready to be decoded and saved or attached as a file.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Public http/https URL."
  },
  "format": {
   "enum": [
    "A4",
    "Letter",
    "Legal",
    "A3"
   ],
   "type": "string",
   "description": "Paper size (optional, default A4)."
  },
  "landscape": {
   "type": "boolean",
   "description": "Landscape orientation (optional)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bytes": 24680,
  "format": "A4",
  "landscape": false,
  "pdf_base64": "JVBERi0xLjQK..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/miniframe-url-to-pdf-abf86d7f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tools.miniframe.com.br](https://www.zero.xyz/host/tools.miniframe.com.br/llms.txt)
