# Relaystation PDF OCR

> Relaystation PDF OCR 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-15).

Extracts text from scanned PDF pages using Tesseract OCR, making paper documents machine-readable and searchable.

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/pdf/ocr
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-pdf-ocr-93cbf6b8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1ruSOdJEHtfeqX-ea0yoh

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-ocr-93cbf6b8 -d '<json body>'
```

Example prompt: Can you run OCR on this scanned PDF and pull out all the text so I can search through it?

## When to prefer this

Choose this endpoint when you have scanned or image-based PDFs where text is not selectable and you need to extract readable content. Ideal for digitizing legacy paper documents, archiving printed materials, or making scanned reports searchable. Priced per page at $0.003, making it cost-effective for moderate document volumes with Tesseract-grade accuracy.

## Known failure modes

- Poor scan quality or low-resolution images may result in inaccurate or garbled OCR output
- Non-PDF file formats will be rejected
- Encrypted or password-protected PDFs may fail to process
- Very large PDFs may time out or incur higher per-page costs
- Handwritten text may be poorly recognized compared to printed text

## How this service works

$0.003/page. Extract text from a scanned PDF (Tesseract) — make paper searchable data. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns the extracted plain text content from each page of the scanned PDF, making previously image-only content machine-readable and searchable.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "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> }."
      },
      "pages": {
       "type": "string",
       "description": "1-based pages/ranges, e.g. \"1-3,5\" (default all)."
      },
      "lang": {
       "type": "string",
       "enum": [
        "eng",
        "spa",
        "fra",
        "deu",
        "ita",
        "por",
        "nld",
        "pol",
        "rus",
        "chi_sim"
       ],
       "description": "OCR language tag (default \"eng\"). The live roster is the operator-tunable cputools.ocr.langs (deployed traineddata: eng, spa, fra, deu, ita, por, nld, pol, rus, chi_sim); an off-roster lang is a free 422 UNSUPPORTED_LANG naming the roster."
      }
     }
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relaystation-pdf-ocr-93cbf6b8/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)
