# Relaystation PDF Text Extraction

> Relaystation PDF Text Extraction 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 clean text and structure from a PDF file, optimized as input for LLMs and search pipelines

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/pdf/extract-text
- 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-text-extraction-565fa12c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_K0SDbSQjUn1iMAEDMp2_G

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-text-extraction-565fa12c -d '<json body>'
```

Example prompt: Can you pull all the text out of this PDF — https://example.com/report.pdf — and give me clean, structured content I can feed into my LLM pipeline?

## When to prefer this

Use this endpoint when you have a native (text-layer) PDF and need clean, LLM-ready text extracted cheaply at $0.002/page. Prefer this over the OCR-based sibling endpoint for digital PDFs that already contain a text layer, since it is faster and cheaper. Choose the OCR pipeline endpoint instead for scanned single-page documents. Ideal for RAG ingestion, search indexing, or any workflow that needs machine-readable text from PDFs.

## Known failure modes

- PDF is password-protected or encrypted — extraction fails or returns partial content
- PDF contains only scanned images without text layer — returns empty or minimal text (use OCR endpoint instead)
- Invalid or inaccessible PDF URL — returns error indicating the file could not be fetched
- Malformed PDF file — parsing error returned
- Insufficient x402 payment credits — request rejected with payment required error

## How this service works

$0.002/page. Pull text and structure out of a PDF — clean input for LLMs and search. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns extracted text content and structural information from the PDF, cleaned and formatted for direct use as LLM input or search indexing — billed at $0.002 per page with a $0.01 minimum via x402.

## 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": [
      "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-text-extraction-565fa12c/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)
