# GEDX402 Browser PDF Generator

> GEDX402 Browser PDF Generator is a paid API for AI agents from ged-x402-browser.jvalamis.workers.dev, paid per call via x402, $0.07/call, status unknown (last checked 2026-09-14).

Renders a URL or raw HTML in a headless browser and returns the resulting PDF as base64-encoded data, paid via USDC on multiple blockchains with no API keys required.

## Facts

- Endpoint: GET https://ged-x402-browser.jvalamis.workers.dev/v1/browser/pdf
- Price: $0.07/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gedx402-browser-pdf-generator-00afc96b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PgKU9h7i-y9ToTNtrkxwF

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 gedx402-browser-pdf-generator-00afc96b
```

Example prompt: Can you convert https://example.com/report into a PDF for me — use full-page rendering and wait until the network is idle before capturing it?

## When to prefer this

Choose this endpoint when you need to programmatically convert a live web URL or raw HTML into a PDF document without managing API keys, and are comfortable paying per-call with USDC on Base, Polygon, Arbitrum, World, or Solana. Ideal for one-off or low-volume PDF generation tasks in agentic workflows with crypto wallet access.

## Known failure modes

- URL is unreachable or returns an error — PDF not generated
- Invalid or malformed URL input causes a 4xx response
- Payment in USDC not completed or insufficient — request blocked with 402
- Puppeteer timeout if page takes too long to load
- Raw HTML is malformed and cannot be rendered
- Unsupported PDF options cause rendering failure

## How this service works

x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.

## Output

A JSON object containing a base64-encoded PDF string under the key 'data_base64' and the content type 'application/pdf', ready to decode and save or display.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string"
  },
  "html": {
   "type": "string"
  },
  "prompt": {
   "type": "string"
  },
  "elements": {
   "type": "array",
   "items": {
    "type": "object"
   }
  },
  "selector": {
   "type": "string"
  },
  "viewport": {
   "type": "object",
   "additionalProperties": true
  },
  "pdfOptions": {
   "type": "object",
   "additionalProperties": true
  },
  "gotoOptions": {
   "type": "object",
   "additionalProperties": true
  },
  "response_format": {
   "type": "object",
   "additionalProperties": true
  },
  "screenshotOptions": {
   "type": "object",
   "additionalProperties": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data_base64": "<base64>",
  "content_type": "application/pdf"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gedx402-browser-pdf-generator-00afc96b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ged-x402-browser.jvalamis.workers.dev](https://www.zero.xyz/host/ged-x402-browser.jvalamis.workers.dev/llms.txt)
