# x402-farm PDF Endpoint

> x402-farm PDF Endpoint is a paid API for AI agents from x402-farm.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Fetch a PDF document via a pay-per-call API using the x402 protocol with USDC on Base, no account required.

## Facts

- Endpoint: GET https://x402-farm.vercel.app/v1/pdf
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-farm-pdf-endpoint-976ba96b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_e1If3h8Gynogt0tNT2_jb

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 x402-farm-pdf-endpoint-976ba96b
```

Example prompt: Can you fetch that PDF for me using the x402-farm pay-per-call API — it's just $0.01 USDC on Base and I don't need to create an account?

## When to prefer this

Choose this endpoint when an AI agent needs to retrieve a PDF document without API key registration, using a crypto-native micropayment model (x402 protocol, USDC on Base). Ideal for agent pipelines that require pay-per-use access patterns, low-cost per-call pricing ($0.01 USDC), and no account overhead. Prefer over traditional REST PDF APIs when operating in a Web3 or agentic context where wallet-based payments are already available.

## Known failure modes

- Payment not included or insufficient USDC balance — returns 402 Payment Required
- Invalid or malformed x402 payment header — returns 400 Bad Request
- PDF resource not found or unavailable — returns 404 Not Found
- Network or Vercel hosting issue — returns 500 Internal Server Error
- Payment settled but document delivery failed — partial or empty response

## How this service works

Pay-per-call APIs for AI agents — x402 protocol, USDC on Base, no account needed.

## Output

Returns the raw PDF file content (binary or base64) for the requested document, delivered after successful x402 USDC micropayment settlement on Base.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-farm-pdf-endpoint-976ba96b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-farm.vercel.app](https://www.zero.xyz/host/x402-farm.vercel.app/llms.txt)
