# PennyRail Character Counter

> PennyRail Character Counter 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 text string

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/text.char-count--count-characters
- 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-counter-0f0b7588
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0rSnRwxgpVHkUCqEwkYdv

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-counter-0f0b7588 -d '<json body>'
```

Example prompt: Count the characters in this text for me: 'The quick brown fox jumps over the lazy dog.'

## When to prefer this

Use this endpoint when you need a simple, reliable, pay-per-call character count computation without setting up local string processing. Ideal for lightweight agent workflows, serverless pipelines, or billing calculations where a microservice approach is preferred over inline code.

## Known failure modes

- Missing required 'input' field returns a validation error
- Empty string may return zero or an error depending on server handling
- Non-string input types may cause a schema validation failure
- Network or payment authorization issues may result in a 402 or 5xx error

## How this service works

Machine-readable settlement service

## Output

Returns a JSON object containing the character count for the provided input string, indicating the total number of characters present in the text.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

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

## More

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