Unicode-aware URL slug with transliteration
text_slugTurn arbitrary text into a URL-safe slug. Decomposes accents, transliterates German umlauts, Scandinavian and Turkish letters, and the ligatures that lose meaning under plain NFD, lowercases, collapses separators, and truncates on a word boundary. Options for separator character, maximum length and case preservation. Returns the slug plus what was removed. Price: $0.05 per successful call, paid over x402 (USDC on Base).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Maximum slug length 1-512, default 96. Truncates at the last complete word. Accepted: integer 1-512. | |
| case | No | lower (default), preserve or upper. Accepted: lower, preserve, upper. | |
| lang | No | ISO 639-1 code for locale-sensitive folding (de: ü->ue, tr: dotless i). Default locale-neutral. Accepted: an ISO 639-1 language code. | |
| text | Yes | Text to slugify, at most 2048 characters. Accepted: at most 2048 characters. | |
| separator | No | Separator: - (default), _, . or empty. Accepted: -, _, . or empty. |