# Text Slugify

> Text Slugify is a paid API for AI agents from x402-gateway-production-1f21.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Converts arbitrary text into a URL-safe slug (lowercase, hyphenated, ASCII-normalized)

## Facts

- Endpoint: POST https://x402-gateway-production-1f21.up.railway.app/text/slugify?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-slugify-a4ccdd90
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y3KccmRfzk9_GQn1mcQ7_

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 text-slugify-a4ccdd90 -d '<json body>'
```

Example prompt: Can you slugify this title for me: 'Top 10 Héros of the Modern Würld! (2024 Edition)' so I can use it as a URL path?

## When to prefer this

Choose this endpoint when you need a deterministic, machine-payable slugification service at $0.001 USDC per call, especially in automated pipelines that already use x402 micropayment infrastructure. Prefer it over client-side slug libraries when you need a consistent, server-authoritative slug output across distributed agents or when you want to avoid shipping text-processing logic in client code.

## Known failure modes

- Missing required 'text' field returns a validation error
- Text exceeding 250,000 characters is rejected
- Empty string input may return an empty slug or error
- Payment failure (x402) results in 402 Payment Required before processing
- Non-UTF-8 or malformed input may cause a parsing error

## How this service works

Machine-payable x402 utilities for hashing, Base64, UUID generation, unit and timezone conversion, realtime crypto market data, webpage/document extraction, URL-to-Markdown, metadata, RAG ingestion and deterministic website change detection.

## Output

Returns a JSON object containing the slugified version of the input text — lowercase, with spaces and special characters replaced by hyphens, and non-ASCII characters normalized or stripped, suitable for 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": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "maxLength": 250000
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "ready"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-slugify-a4ccdd90/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production-1f21.up.railway.app](https://www.zero.xyz/host/x402-gateway-production-1f21.up.railway.app/llms.txt)
