# Relaystation Text Count

> Relaystation Text Count 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).

Counts characters, words, and lines in text and returns estimated reading time, billed at $0.0002/MB via x402.

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/text/count
- 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-text-count-19485983
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uZhpf2yjxvbDGDWCKRixR

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-text-count-19485983 -d '<json body>'
```

Example prompt: Can you count the words, characters, and lines in this article and tell me how long it would take to read? Here's the text: [paste text]

## When to prefer this

Use this endpoint when you need fast, cheap, per-call text metrics (characters, words, lines, reading time) without spinning up a local NLP library. Ideal for agents that need to validate content length before submission, estimate reading time for content pipelines, or check character limits for platforms like SMS or social media. The x402 micropayment model at $0.0002/MB makes it cost-effective for both small and large text volumes.

## Known failure modes

- Empty or missing text body returns an error
- Extremely large payloads may exceed billing thresholds or timeouts
- Non-UTF-8 encoded text may cause parsing errors
- Insufficient x402 payment balance results in payment required error

## How this service works

$0.0002/MB. Count characters, words, and lines — plus reading time. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns a structured response containing character count, word count, line count, and estimated reading time for the provided text input.

## 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": {
     "properties": {}
    }
   },
   "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-text-count-19485983/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)
