# x402-tools Slugify

> x402-tools Slugify is a paid API for AI agents from x402.nichospt.net, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-13).

Converts arbitrary text (including Unicode, accents, and special characters) into a URL-safe slug string

## Facts

- Endpoint: POST https://x402.nichospt.net/slugify?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-tools-slugify-06a36a01
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EhbT2bbKROKBvuldGfXg1

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 x402-tools-slugify-06a36a01 -d '<json body>'
```

Example prompt: Can you slugify the title 'Crème Brûlée & Café!' into a URL-safe string using hyphens as separators, keeping it lowercase and stripping everything outside a-z and 0-9?

## When to prefer this

Choose this endpoint when you need to reliably slugify Unicode or accent-heavy text (e.g. French, Spanish, Portuguese strings) into clean ASCII URL slugs, with configurable separator, case, and strictness. Prefer it over rolling your own regex when correctness with diacritics and special characters matters and you are already operating within the x402 micropayment ecosystem.

## Known failure modes

- Text exceeds 5000 character limit — request rejected
- Empty or missing 'text' field — likely returns error or empty slug
- Invalid separator value — may produce unexpected output
- Network or payment failure via x402 protocol — 402 Payment Required if USDC payment not attached

## How this service works

Pay-per-call utility APIs for AI agents, settled in USDC via the x402 protocol.

## Output

A JSON object containing the generated slug (e.g. 'creme-brulee-and-cafe') and the original input text. The slug has accents removed, special characters stripped, spaces replaced by the chosen separator, and is optionally lowercased.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 5000
  },
  "lower": {
   "type": "boolean",
   "default": true
  },
  "strict": {
   "type": "boolean",
   "default": true,
   "description": "Strip characters outside [a-z0-9]"
  },
  "separator": {
   "type": "string",
   "default": "-",
   "description": "Word separator"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "slug": "creme-brulee-and-cafe",
  "text": "Crème Brûlée & Café!"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-tools-slugify-06a36a01/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.nichospt.net](https://www.zero.xyz/host/x402.nichospt.net/llms.txt)
