# PrepLayer.ai Slugify

> PrepLayer.ai Slugify is a paid API for AI agents from api.maximusmediahouse.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Converts arbitrary text into a URL-safe slug with NFKD unicode normalization, configurable separator, and word-boundary-aware truncation.

## Facts

- Endpoint: POST https://api.maximusmediahouse.com/v1/slugify?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/preplayer-ai-slugify-b48ae10f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bTB_dMy8ZD_npQMmW2DUP

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 preplayer-ai-slugify-b48ae10f -d '<json body>'
```

Example prompt: Turn this blog post title into a URL slug: 'Héllo Wörld! 10 Tips for Better SEO in 2025' — use hyphens as separators and keep it under 80 characters.

## When to prefer this

Choose this endpoint when you need deterministic, linguistically-aware slug generation that handles unicode correctly via NFKD decomposition, especially for multilingual content pipelines. It is preferable to a regex-only approach when you need guaranteed word-boundary truncation (never cutting mid-word), configurable separators, and consistent behavior across accented characters, ligatures, and mixed scripts.

## Known failure modes

- Input text exceeds 10000 character limit — returns validation error
- max_length below minimum of 1 — returns schema validation error
- Separator is too long or contains invalid characters — returns error
- All characters normalize away (e.g. pure emoji with transliterate=true) — may return empty slug
- Network timeout or service unavailability — HTTP 5xx response

## How this service works

URL-safe slug from arbitrary text. NFKD-decomposes unicode (é -> e), lowercases, replaces every non-[a-z0-9] run with a separator, strips leading/trailing separators, truncates on separator boundaries (never mid-word).

## Output

Returns a URL-safe slug string derived from the input text: unicode NFKD-decomposed and stripped of combining marks (if transliterate is enabled), lowercased, non-alphanumeric character runs replaced with the specified separator, leading/trailing separators stripped, and truncated at a word boundary to fit within max_length.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Source text (1-10000 chars)."
  },
  "separator": {
   "type": "string",
   "default": "-",
   "description": "Separator character or short run (e.g. '-', '_', '..')."
  },
  "max_length": {
   "type": "integer",
   "default": 80,
   "maximum": 500,
   "minimum": 1,
   "description": "Maximum slug length."
  },
  "transliterate": {
   "type": "boolean",
   "default": true,
   "description": "Strip combining marks (NFKD). Disable to keep unicode."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/preplayer-ai-slugify-b48ae10f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.maximusmediahouse.com](https://www.zero.xyz/host/api.maximusmediahouse.com/llms.txt)
