# 24K Labs Slugify

> 24K Labs Slugify is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Converts any input text into a clean, URL-safe slug — ASCII characters, lowercased, and hyphen-separated.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/slugify
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-slugify-1757dbb5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Cv6AaJAu21bjmHuDlqYFD

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 24k-labs-slugify-1757dbb5 -d '<json body>'
```

Example prompt: Turn the title 'How to Build a REST API with Node.js & Express!' into a clean URL slug I can use as a permalink.

## When to prefer this

Choose this endpoint when you need a reliable, consistent slug from arbitrary user-supplied text without implementing your own regex or handling edge cases like diacritics, special characters, and Unicode normalization. Particularly useful in automated content pipelines, CMS integrations, or any workflow where URL slugs must be deterministically generated at scale for $0.001 per call.

## Known failure modes

- Empty input string may return an empty slug or an error
- Extremely long input strings may be truncated or rejected
- Inputs that are entirely non-ASCII (e.g. pure CJK text) may yield an empty or near-empty slug
- Network timeout if the API is temporarily unavailable

## How this service works

Turn any text into a clean URL slug (ASCII, lowercased, hyphenated).

## Output

Returns a clean URL slug derived from the input text: all characters converted to ASCII, lowercased, with spaces and special characters replaced by hyphens, and consecutive hyphens collapsed. For example, 'Hello World! 2025' becomes 'hello-world-2025'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "slug": "hello-world-2026-edition"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-slugify-1757dbb5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
