# Relaystation PDF Repair

> Relaystation PDF Repair is a paid API for AI agents from api.relaystation.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Diagnoses and repairs damaged or corrupted PDF files, recovering files that other tools reject

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/pdf/repair
- 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/relaystation-pdf-repair-d93ba187
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_67JTwWunHa58YVFevW8fd

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 relaystation-pdf-repair-d93ba187 -d '<json body>'
```

Example prompt: I have a PDF that's corrupted and won't open in any viewer — can you repair it and give me a working copy back? Here's the file encoded in base64.

## When to prefer this

Use this endpoint when you have a PDF that is corrupted, damaged, or rejected by standard PDF tools and you need to recover or repair it. It is specifically designed to handle files that other PDF utilities cannot process, making it the go-to choice when conventional repair tools fail. Prefer this over generic PDF conversion tools when the primary problem is file corruption rather than format conversion.

## Known failure modes

- PDF too severely corrupted to recover — no recoverable structure remains
- File exceeds size limit (50 MB via scratch key, 4 MiB inline)
- Invalid or malformed base64 input causing decode failure
- Unsupported file type submitted instead of a PDF
- Payment insufficient — minimum 1¢ x402 required

## How this service works

$0.001/page. Diagnose and rewrite a damaged PDF — recover files other tools reject. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

A repaired, recovered PDF file returned in the response, reconstructed from the damaged input so it can be opened, read, and processed normally by standard PDF viewers and tools.

## 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": {
     "type": "object",
     "properties": {
      "file": {
       "type": "object",
       "description": "cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key from /v1/cputools/upload-url, ≤ 50 MB> }."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relaystation-pdf-repair-d93ba187/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relaystation.ai](https://www.zero.xyz/host/api.relaystation.ai/llms.txt)
