# ALFRED x402 PDF Extract

> ALFRED x402 PDF Extract is a paid API for AI agents from x402.wallace.us, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-14).

Extracts text and content from a PDF document at a given URL, billed per-call via Lightning/x402 micropayment

## Facts

- Endpoint: GET https://x402.wallace.us/x402/pdf-extract
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alfred-x402-pdf-extract-0cfb30e1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g_KP9HGNvMwuHtbxF-rCU

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 alfred-x402-pdf-extract-0cfb30e1
```

Example prompt: Extract all the text from this PDF for me: https://example.com/report.pdf — I need the readable content from it.

## When to prefer this

Choose this endpoint when you need to extract text from a PDF hosted at a public URL and are operating in a Lightning/x402 micropayment environment. Best suited for one-off PDF parsing tasks in a self-hosted personal-assistant context where per-call billing via Lightning is acceptable. Prefer this over heavier document-processing SaaS when low cost and Lightning-native payment flow are priorities.

## Known failure modes

- Invalid or inaccessible PDF URL — document not reachable or returns non-PDF content
- Payment not yet confirmed — HTTP 402 returned with Lightning invoice requiring payment before content is served
- Malformed PDF — document cannot be parsed or is encrypted/password-protected
- URL missing or malformed in request body — schema validation error
- Payment hash not recognized — retry with wrong or missing X-Payment-Hash header

## How this service works

Self-hosted personal-assistant paid tools via Lightning. Uses x402-shaped protocol (L402 lineage): HTTP 402 with a Lightning invoice in the response body + WWW-Authenticate header, retry with X-Payment-Hash: <hex> once paid. Results cached per payment_hash so legitimate retries don't cost twice.

## Output

Returns the extracted text and/or structured content from the PDF document at the provided URL. Results are cached per payment hash so retrying after a successful payment does not incur an additional charge.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/alfred-x402-pdf-extract-0cfb30e1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.wallace.us](https://www.zero.xyz/host/x402.wallace.us/llms.txt)
