# URL Slug Generator (Text to Slug)

> URL Slug Generator (Text to Slug) is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.0022/call, status unknown (last checked 2026-09-13).

Converts any text string into a URL-friendly slug by lowercasing, stripping diacritics, and replacing spaces with hyphens

## Facts

- Endpoint: GET https://api.x402node.dev/text/slugify
- Price: $0.0022/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-x402node-dev-3b0ab052
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W675EnzKOMHxpIJU4VFR5

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 api-x402node-dev-3b0ab052
```

Example prompt: Can you slugify this blog post title for me: 'Héllo Wörld! Top 10 Best Practices for Node.js in 2024'? I need it as a clean URL-friendly string.

## When to prefer this

Use this endpoint when you need a reliable, server-side text-to-slug conversion that handles diacritics and special characters correctly — especially for multilingual content or when a consistent, SEO-safe permalink format is required without writing custom normalization logic.

## Known failure modes

- Empty or missing input body returns an error
- Extremely long strings may be truncated or rejected
- Non-string input types may cause a 400 error
- Payment failure (402) if USDC balance is insufficient

## How this service works

URL slug generator, slugify text, make url friendly, seo slug, clean string for url, kebab case url, web slug, convert text to slug, permalink generator. Convert any string to URL-friendly slug, strip diacritics, lowercase, replace spaces with hyphens. Accepts payment on Base or Solana — either network works.

## Output

Returns a JSON object with a 'slug' field containing the lowercased, diacritic-stripped, hyphenated URL-friendly version of the input string, plus an 'input' field echoing the original text.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Input text (required)"
      },
      "separator": {
       "type": "string",
       "description": "Separator (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-3b0ab052/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
