# PennyRail Text Truncate

> PennyRail Text Truncate is a paid API for AI agents from pennyrail.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Truncates a text string to a specified length or limit via a paid micro-service endpoint

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/text.truncate--truncate-text
- 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/pennyrail-text-truncate-fbfc78bf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FyU14JqCRxETYcRSL3X12

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 pennyrail-text-truncate-fbfc78bf -d '<json body>'
```

Example prompt: Truncate this product description to 150 characters: 'Our handcrafted leather wallet is made from full-grain Italian leather, featuring 8 card slots, a hidden cash pocket, and RFID blocking technology for everyday carry.'

## When to prefer this

Use this endpoint when you need a simple, reliable, paid micro-service for text truncation without building custom string-handling logic. Particularly useful in agentic pipelines where text must be clipped to fit UI components, API field limits, or preview snippets, and you want a stateless, idempotent operation billed at $0.001 USDC per call via x402.

## Known failure modes

- Missing or malformed 'input' object returns a validation error
- No truncation parameters specified may result in no-op or error
- Payment failure or insufficient USDC balance causes 402 response
- Extremely large input strings may time out or be rejected
- Ambiguous truncation criteria (neither character nor word limit) may produce unexpected results

## How this service works

Machine-readable settlement service

## Output

Returns an object containing the truncated version of the input text, cut to the requested length or word/character limit.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-text-truncate-fbfc78bf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennyrail.vercel.app](https://www.zero.xyz/host/pennyrail.vercel.app/llms.txt)
