# PennyRail Character Count

> PennyRail Character Count 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).

Counts the number of characters in a given input string

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/f/text.char-count
- 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-character-count-06dc785e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wf45UjZ-WhqU4miyRCcn3

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-character-count-06dc785e -d '<json body>'
```

Example prompt: Count the characters in this string: 'Hello, world! This is my sample sentence.'

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-use character counting operation via the x402 micropayment protocol, especially in automated agent workflows where billing granularity and machine-readable settlement matter. Prefer over rolling your own if you want auditable, on-chain payment records per computation.

## Known failure modes

- Missing required 'input' field returns a validation error
- Non-string input type may cause unexpected results
- Very large strings may result in timeout or processing errors
- Payment failure (402) if USDC balance is insufficient

## How this service works

Machine-readable settlement service

## Output

Returns a JSON object containing the operation name (e.g. 'char-count') and the result, which is the total character count of the provided input string.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "operation",
  "result"
 ],
 "properties": {
  "result": {},
  "operation": {
   "type": "string"
  }
 },
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-character-count-06dc785e/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)
