# PennyRail Text Truncate – Limit Characters

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

Truncates a text string to a specified character limit, returning the shortened version

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/text.truncate--limit-characters?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pennyrail-text-truncate-limit-characters-08bbb54d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_USCW0gkxRLUPLjMfZJH8p

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-limit-characters-08bbb54d -d '<json body>'
```

Example prompt: Truncate this product description to 150 characters: 'Our premium organic cold-brew coffee is slow-steeped for 24 hours using single-origin beans sourced from sustainable farms in Ethiopia, delivering a smooth, rich flavor with low acidity.'

## When to prefer this

Choose this endpoint when you need a simple, paid-per-call text truncation as a microservice — useful in agent pipelines where you want a reliable, stateless character-limit trim without running your own string logic, especially when already operating within the PennyRail x402 payment infrastructure.

## Known failure modes

- Missing or malformed 'input' object returns a 400-level error
- No character limit specified may cause undefined behavior or no truncation
- Non-string input content may cause processing failure
- Payment not settled results in 402 Payment Required before processing

## How this service works

Machine-readable settlement service

## Output

Returns the input text clipped to the specified character limit, typically as a string field in a JSON object. The truncated result fits within the requested length constraint.

## 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-limit-characters-08bbb54d/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)
