# Relaystation Text Slugify

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

Converts arbitrary text into a URL-safe slug by stripping diacritics, lowercasing, and replacing spaces/punctuation with hyphens

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/text/slugify
- 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-text-slugify-0ad2193b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UnscLY4eW-NuCvJU68_jJ

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-slugify-0ad2193b -d '<json body>'
```

Example prompt: Turn 'Héllo Wörld: A Café Story!' into a clean URL slug — strip the accents, lowercase everything, and hyphenate it.

## When to prefer this

Choose this endpoint when you need a reliable, diacritic-aware slugification that handles international characters (accents, umlauts, cedillas) correctly in a single API call with micro-payment billing. Prefer it over client-side slugify libraries when working in environments where you want consistent, server-side normalization without bundling a transliteration library, or when chaining it within a Relaystation workflow pipeline.

## Known failure modes

- Empty or whitespace-only input may return an empty slug or error
- Extremely long input strings may be truncated or rejected
- Non-text binary input will fail with a bad request error
- Network timeouts if the service is temporarily unavailable
- x402 payment failure if the wallet lacks sufficient USDC balance

## How this service works

$0.0002/MB. URL-slugify text — strip diacritics, hyphenate, lowercase. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns the slugified version of the input text: all characters lowercased, diacritics stripped, non-alphanumeric characters replaced with hyphens, and consecutive hyphens collapsed — suitable for direct use in URLs or file paths.

## 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-text-slugify-0ad2193b/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)
