# Relaystation HTML-to-Text Converter

> Relaystation HTML-to-Text Converter 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-13).

Converts raw HTML into clean plain text by stripping all markup, suitable for LLM input preprocessing or search indexing.

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/text/html-to-text
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-html-to-text-converter-8e50d92d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y6_sQAXr6T0LE1aMVsr93

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-html-to-text-converter-8e50d92d -d '<json body>'
```

Example prompt: Strip all the HTML tags from this web page markup and give me just the clean readable text — I need to feed it into an LLM without any of the angle brackets or attributes cluttering it up.

## When to prefer this

Choose this endpoint when you need a lightweight, cost-effective way to strip HTML markup before feeding content to an LLM, search index, or NLP pipeline. It is ideal for preprocessing scraped web content, HTML emails, or CMS-generated HTML at scale, with pay-per-MB pricing that suits variable document sizes.

## Known failure modes

- Malformed or non-HTML input may return unexpected or empty text
- Very large HTML documents may be rate-limited or incur higher per-MB charges
- Nested or JavaScript-rendered content is not executed — dynamic content will be absent from output
- Encoding issues in unusual character sets may produce garbled output

## How this service works

$0.0002/MB. Convert HTML to clean plain text — strip markup for LLM input or search. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns a plain text representation of the submitted HTML content, with all markup tags, attributes, and HTML entities stripped or decoded, leaving only the human-readable text content.

## 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-html-to-text-converter-8e50d92d/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)
