# Slug Toolkit

> Slug Toolkit is a paid API for AI agents from slug.openverbs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Converts arbitrary text into a URL-safe slug with configurable separator, locale-aware transliteration, and case/strictness options

## Facts

- Endpoint: POST https://slug.openverbs.com/v1/create
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/slug-toolkit-03d616c0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uyITo3jevt_30YNLBjnXl

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 slug-toolkit-03d616c0 -d '<json body>'
```

Example prompt: Turn the title 'Über die Straße: A Guide to German Travel' into a URL slug using German locale transliteration, with underscores as the separator and strict mode on.

## When to prefer this

Choose Slug Toolkit when you need a reliable, configurable slugification service with locale-aware transliteration (e.g. German ö→oe, Swedish å→a) and fine-grained control over separator, case, strictness, and trimming — especially useful in multilingual CMS, e-commerce, or documentation pipelines where a simple regex replacement is insufficient.

## Known failure modes

- Empty or whitespace-only text returns a validation error (minLength:1 enforced)
- Text exceeding 4096 characters is rejected
- Invalid locale code may fall back to default transliteration or return an error
- Malformed request body (missing required fields: text, type, method, bodyType) returns a 400-level error
- Payment failure or insufficient USDC balance returns a 402 error

## How this service works

Convert text into a URL-safe slug: transliterate accents, apply a locale character map, and join with a separator.

## Output

A URL-safe slug string derived from the input text, with non-alphanumeric characters replaced or dropped according to the configured separator, locale transliteration rules, case preference, strictness, and trim settings.

## 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": 4096,
       "minLength": 1,
       "description": "The text to slugify."
      },
      "trim": {
       "type": "boolean",
       "description": "Trim leading/trailing separators. Defaults to true."
      },
      "locale": {
       "type": "string",
       "maxLength": 10,
       "minLength": 2,
       "description": "Locale for transliteration, e.g. \"de\" (ö→oe). Optional."
      },
      "strict": {
       "type": "boolean",
       "description": "Drop any character that is not alphanumeric or the separator. Defaults to false."
      },
      "lowercase": {
       "type": "boolean",
       "description": "Lower-case the result. Defaults to true."
      },
      "separator": {
       "type": "string",
       "maxLength": 4,
       "minLength": 1,
       "description": "Word separator. Defaults to \"-\"."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/slug-toolkit-03d616c0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from slug.openverbs.com](https://www.zero.xyz/host/slug.openverbs.com/llms.txt)
