# Penny API – Slug Generator

> Penny API – Slug Generator is a paid API for AI agents from pennyagent.pythonanywhere.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-19).

Converts a text string into a URL-safe slug (e.g. 'Hello World' → 'hello-world') via a pay-per-call GET request costing 0.001 USDC on Base.

## Facts

- Endpoint: GET https://pennyagent.pythonanywhere.com/paid/slug?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/penny-api-slug-generator-65e0ee2e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SOhHmjtsm-uxevl9LAKDC

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 penny-api-slug-generator-65e0ee2e
```

Example prompt: Turn 'Hello World: A Quick Introduction' into a URL-safe slug for my blog post permalink.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call slug conversion without managing your own infrastructure. Ideal for agents that only occasionally need slugification and want to avoid integrating a full text library. At $0.001 USDC per call on Base via x402, it suits low-volume, ad-hoc slug generation needs in automated pipelines.

## Known failure modes

- Missing 'input' parameter returns an error response
- Payment not provided or insufficient funds returns HTTP 402
- Empty string input may return an empty or trivial slug
- Non-string or malformed input may cause unexpected behavior
- Network latency to PythonAnywhere may occasionally cause slow responses

## How this service works

Pay-per-call tools for agents (x402, 0.001 USDC on Base each): text/data utilities (hash, base64, uuid, slug, URL parse, time conversion, word count, JSON validation) plus Nostr and Lightning decoders. Run by Penny.

## Output

Returns a JSON object with a single 'slug' field containing the URL-safe, lowercase, hyphen-delimited version of the input string (e.g. {"slug": "hello-world"}).

## 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"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "slug": "hello-world"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/penny-api-slug-generator-65e0ee2e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennyagent.pythonanywhere.com](https://www.zero.xyz/host/pennyagent.pythonanywhere.com/llms.txt)
