# 24K Labs Slugify API

> 24K Labs Slugify API 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-16).

Converts any input text into a clean, ASCII-only, lowercased, hyphenated URL slug.

## Facts

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

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-api-1e7f6ac9 -d '<json body>'
```

Example prompt: Can you turn 'Hello World! This is My Blog Post #42' into a clean URL slug — all lowercase, hyphens instead of spaces, no special characters?

## When to prefer this

Choose this endpoint when you need a fast, reliable, single-call text-to-slug conversion without building your own normalization logic. Ideal for CMS pipelines, blog engines, e-commerce platforms, or any workflow where user-generated titles need to become valid URL path segments. Prefer this over rolling your own regex when you need consistent handling of accented characters, special symbols, and edge cases across languages.

## Known failure modes

- Empty input text returns an error or empty slug
- Extremely long input strings may be truncated or rejected
- Input consisting entirely of non-ASCII, non-alphanumeric characters may produce an empty slug
- Network timeout or service unavailability returns a 5xx error

## How this service works

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

## Output

A clean URL slug string derived from the input text: all characters lowercased, non-ASCII characters transliterated or removed, spaces and punctuation replaced with hyphens, and consecutive hyphens collapsed — ready for direct use in a URL path.

## 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-api-1e7f6ac9/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)
