---
title: "Generate a URL-safe slug from text"
method: GET
path: "/api/util/slug"
tags: ["x402"]
---

# Generate a URL-safe slug from text

`GET /api/util/slug`

## Request

- Base URL: `https://yruz.one`
- URL: `https://yruz.one/api/util/slug`
- Auth: none required

URL slug from any text, with transliteration of accents. No account or API key. Without PAYMENT-SIGNATURE the response is HTTP 402 with an x402 v2 payment challenge; pay and resend the identical request. Input as query string (GET) or JSON body (POST), max 64 KB; the payment is bound to the exact input. Price: 0.002 USDC per call.

## Query parameters

- `text` string
- `separator` string
- `max` string

## Headers

- `PAYMENT-SIGNATURE` string

## Response `200`

Tool result

- object
  - `tool` string
  - `result` object

## Other responses

- `400`: Invalid input
- `402`: Payment Required
- `413`: Input over 64 KB

---

[API](https://skmtc.dev/yruz/apis/yruz-api.md) · [All operations](https://skmtc.dev/yruz/apis/yruz-api/llms.txt) · [OpenAPI document](https://skmtc.dev/yruz/apis/yruz-api/revisions/17883cb21a4a?raw)
