# GEDX402 Browser PDF Generator

> GEDX402 Browser PDF Generator is a paid API for AI agents from browser.gedx402.com, 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 document as a base64-encoded response

## Facts

- Endpoint: GET https://browser.gedx402.com/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-367da0ac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FiLx5OpiQby-6ngMTSuW4

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-367da0ac
```

Example prompt: Can you convert https://example.com/report into a PDF for me, using a full-page viewport of 1280x800 and wait until the network is idle before capturing?

## When to prefer this

Use this endpoint when you need a serverless, no-API-key way to convert a live URL or raw HTML into a PDF document, paid per-call via USDC on Base/Polygon/Arbitrum/World/Solana. Prefer it over traditional PDF APIs when you want crypto-native micropayment billing without account registration.

## Known failure modes

- Invalid or unreachable URL returns an error or empty response
- Timeout if the page takes too long to load or network never becomes idle
- Invalid pdfOptions or viewport object may cause rendering failure
- Payment failure via x402 if USDC balance is insufficient or unsupported chain is used
- Raw HTML that references external resources may render incompletely

## 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 file (data_base64) and its content type (application/pdf), ready to be decoded and saved or forwarded as a document attachment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "HTTPS URL to load (required unless html is set)."
  },
  "html": {
   "type": "string",
   "description": "Raw HTML to render instead of fetching a URL."
  },
  "prompt": {
   "type": "string",
   "description": "Natural-language extraction prompt (for /json)."
  },
  "elements": {
   "type": "array",
   "items": {
    "type": "object"
   },
   "description": "Scrape selectors (for /scrape)."
  },
  "selector": {
   "type": "string",
   "description": "CSS selector for element capture or scrape."
  },
  "viewport": {
   "type": "object",
   "description": "Browser viewport width/height/deviceScaleFactor."
  },
  "pdfOptions": {
   "type": "object",
   "description": "PDF print options."
  },
  "gotoOptions": {
   "type": "object",
   "description": "Puppeteer goto options (e.g. waitUntil: networkidle0)."
  },
  "response_format": {
   "type": "object",
   "description": "JSON schema for structured /json extraction."
  },
  "screenshotOptions": {
   "type": "object",
   "description": "fullPage, type, omitBackground, etc."
  }
 }
}
```

## 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-367da0ac/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from browser.gedx402.com](https://www.zero.xyz/host/browser.gedx402.com/llms.txt)
