# PitchPilot Slug Generator

> PitchPilot Slug Generator is a paid API for AI agents from pitchpilot-outreach-api.pitchpilot-agents.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Converts arbitrary text (including Unicode/non-Latin scripts) into a URL-safe slug string, with optional maximum length truncation.

## Facts

- Endpoint: GET https://pitchpilot-outreach-api.pitchpilot-agents.workers.dev/tools/slug
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pitchpilot-slug-generator-b63e8379
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Id4ffTVCZgOL8sgltnVXG

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 pitchpilot-slug-generator-b63e8379
```

Example prompt: Slugify 'Привет, Мир!' for me and keep the slug under 30 characters.

## When to prefer this

Choose this endpoint when you need to reliably slugify arbitrary text including Unicode, Cyrillic, CJK, or other non-Latin scripts into URL-safe ASCII slugs, especially within a workflow that already uses PitchPilot micro-utilities (paid via USDC on Base via x402). It is ideal when you also need length-capped slugs with explicit truncation output and warnings, and when you want a simple pay-per-call model at $0.001 USDC without infrastructure overhead.

## Known failure modes

- Missing required 'text' query parameter returns an error
- Text that is purely non-transliterable characters may produce an empty or near-empty slug
- maxlength value outside the 1–500 range returns a validation error
- Very long input strings may produce slugs that exceed maxlength and require truncation warnings
- Network or worker timeout on the Cloudflare edge in rare cases

## How this service works

Paid micro-utilities for cold-email outreach agents: domain deliverability audits, cold-email grading, template generation, plus a tools toolbox (hashing, JWT decode, IDs, slugs, JSON, regex, crypto prices, domain age, weather). Paid via x402 (USDC on Base).

## Output

A JSON object containing the generated slug (lowercased, URL-safe, with spaces and special characters replaced by hyphens), the original input text, the slug's character length, the configured maxlength, an optional truncated slug (if the slug exceeds maxlength), and an array of any warnings (e.g. about truncation or unsupported characters).

## 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": "Text to slugify"
      },
      "maxlength": {
       "type": "integer",
       "maximum": 500,
       "minimum": 1,
       "description": "Max slug length"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "slug"
     ],
     "properties": {
      "slug": {
       "type": "string"
      },
      "length": {
       "type": "number"
      },
      "warnings": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "maxlength": {
       "type": "number"
      },
      "slug_truncated": {
       "type": "string",
       "description": "null, or the slug cut to maxlength when it is too long"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "slug": "privet-mir",
  "text": "Привет, Мир!",
  "length": 11,
  "warnings": [],
  "maxlength": 60
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pitchpilot-slug-generator-b63e8379/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pitchpilot-outreach-api.pitchpilot-agents.workers.dev](https://www.zero.xyz/host/pitchpilot-outreach-api.pitchpilot-agents.workers.dev/llms.txt)
