# Slugify (`text.slugify`)

Turn a title into a URL slug: accents removed, punctuation dropped, words joined by a separator, optional length cap.

- **Route:** `POST /v1/run/text.slugify`
- **Price:** $0.0002 per request ($0.20 per 1,000) · `cost_usd` on every response
- **Source:** GetAllAPIs compute (`compute`) · failover: no
- **Measured latency:** p50 3 ms · p95 3 ms · p99 3 ms (1 calls, 30d)
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `text` | string | yes |  | Title or phrase |
| `separator` | string | no | "-" | Word separator |
| `max_length` | integer | no | 80 | Maximum slug length |
| `lowercase` | boolean | no | true | Lower-case the slug |

## Output (`output` in the run envelope)

| Field | Meaning |
|---|---|
| `slug` | The slug. |
| `length` | Slug length. |

## Example

```bash
curl -s -X POST https://getallapis.com/v1/run/text.slugify \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"Cr\u00e8me br\u00fbl\u00e9e: 10 fa\u00e7ons de l'aimer!"}'
```

```python
from getallapis_client import Client
client = Client()  # reads GETALLAPIS_API_KEY
result = client.run('text.slugify', {'text': "Crème brûlée: 10 façons de l'aimer!"})
print(result['cost_usd'], result['output'])
```

```bash
getallapis run text.slugify '{"text":"Cr\u00e8me br\u00fbl\u00e9e: 10 fa\u00e7ons de l'aimer!"}'
```

Quote first (free, validates input): `POST /v1/quote/text.slugify` with the same body.
