# util.beauty Browser PDF Generator

> util.beauty Browser PDF Generator is a paid API for AI agents from util.beauty, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Renders a web page or HTML content into a PDF document using a headless browser, billed per request via USDC or prepaid API key.

## Facts

- Endpoint: POST https://util.beauty/v1/browser/pdf
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/util-beauty-browser-pdf-generator-39b28405
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MO8PZ3RplI5rDOATSqGa9

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 util-beauty-browser-pdf-generator-39b28405 -d '<json body>'
```

Example prompt: Can you convert the webpage at https://example.com/report into a PDF for me? I need it saved as a document I can download.

## When to prefer this

Choose this endpoint when you need a pay-per-use, no-infrastructure headless browser PDF renderer accessible over HTTP with micropayment billing via USDC (x402 protocol) or prepaid API keys. It's ideal for AI agents that need on-demand PDF generation without managing their own Puppeteer or Playwright infrastructure. Prefer it over self-hosted solutions when cost-per-call economics work and you want zero DevOps overhead.

## Known failure modes

- URL is unreachable or returns a non-200 status — PDF generation fails with an error
- Page takes too long to load and times out — request fails
- Invalid or malformed request body — returns validation error
- Insufficient credits or payment failure — request rejected with payment required error
- Rendering error on complex or JavaScript-heavy pages — may return partial or blank PDF

## How this service works

Metered web utilities for developers and AI agents: browser screenshot and PDF, crypto, DNS and net tools. Pay per request with x402 (USDC on Base) or prepaid API keys.

## Output

Returns a JSON object with a success flag, a utility identifier string, a unique requestId for tracking, and the number of credits charged. The actual PDF binary is returned as part of the response body or as a downloadable artifact depending on the API configuration.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "type": "object",
     "description": "JSON request body (see OpenAPI for the utility schema).",
     "additionalProperties": true
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "utility": {
       "type": "string"
      },
      "requestId": {
       "type": "string"
      },
      "chargedCredits": {
       "type": "number"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "utility": "…",
  "requestId": "req_…",
  "chargedCredits": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/util-beauty-browser-pdf-generator-39b28405/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from util.beauty](https://www.zero.xyz/host/util.beauty/llms.txt)
