# Text to URL Slug Converter

> Text to URL Slug Converter is a paid API for AI agents from compute-api-production-245d.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-29).

Converts arbitrary text into a URL-safe slug (lowercase, hyphenated, special-characters removed)

## Facts

- Endpoint: POST https://compute-api-production-245d.up.railway.app/slugify?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-to-url-slug-converter-4b3b9c25
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2xBZICLWSaqwd1ieO4et4

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 text-to-url-slug-converter-4b3b9c25 -d '<json body>'
```

Example prompt: Turn the title 'My Top 10 Travel Tips for 2025!' into a URL-friendly slug I can use in my blog post permalink.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call ($0.001 USDC) slug generation service without spinning up your own string processing logic. Ideal for agents that occasionally need to sanitize user-supplied text into URL-safe identifiers without a full NLP or CMS dependency. Best when integrated into automated content pipelines where slugs are generated at creation time.

## Known failure modes

- Empty or missing input body results in a 400 error
- Input consisting entirely of non-alphanumeric characters may return an empty or minimal slug
- Payment failure (insufficient USDC balance) results in a 402 response blocking the call
- Network timeout on Railway-hosted service during cold start

## How this service works

Text to URL slug

## Output

Returns a URL-safe slug string derived from the input text — lowercased, with spaces and special characters replaced by hyphens, and consecutive hyphens collapsed — suitable for use in URL paths, permalinks, or identifiers.

## 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": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-to-url-slug-converter-4b3b9c25/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from compute-api-production-245d.up.railway.app](https://www.zero.xyz/host/compute-api-production-245d.up.railway.app/llms.txt)
