# RelayStation Image OCR

> RelayStation Image 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 an image using Tesseract OCR, supporting 10 languages and returning plain text output

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/image/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-image-ocr-e6d08b15
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FuxHCGVnxvohv_wJ-3cH3

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-image-ocr-e6d08b15 -d '<json body>'
```

Example prompt: Can you extract all the text from this image of my receipt? It's in English — just give me the plain text.

## When to prefer this

Choose this endpoint when you need fast, low-cost OCR on a single image and plain text output is sufficient. It is ideal for agent pipelines that need to digitize receipts, screenshots, scanned documents, or image-embedded text without requiring structured data extraction. Prefer it over vision-LLM approaches when cost per call matters and Tesseract accuracy is adequate for the language and image quality.

## Known failure modes

- Image URL is inaccessible or returns a non-image response — endpoint returns an error
- Image format is unsupported — only common raster formats (JPEG, PNG, etc.) are handled
- Low image quality or resolution results in garbled or incomplete text extraction
- Language not in supported set of 10 — may produce poor results
- Payment insufficient — x402 minimum charge is 1¢ USDC

## How this service works

$0.003/call. Extract text from an image — Tesseract, 10 languages, plain text out. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Plain text string containing all text recognized in the image, extracted via Tesseract OCR across up to 10 supported languages

## 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> }."
      },
      "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."
      },
      "tsv": {
       "type": "boolean",
       "description": "Also return tesseract TSV (per-word boxes + confidences)."
      }
     }
    }
   },
   "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-image-ocr-e6d08b15/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)
