# 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 text string and returns the character count

## Facts

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

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-f51abad6 -d '<json body>'
```

Example prompt: How many characters are in the following text: 'The quick brown fox jumps over the lazy dog'?

## When to prefer this

Use this endpoint when you need a quick, pay-per-use character count computation without standing up your own infrastructure, or when operating within a micropayment-based agent workflow using the x402 protocol where $0.001 USDC per call fits the budget.

## Known failure modes

- Missing 'input' field returns a validation error
- Empty string input may return zero or an error depending on server handling
- Very large strings may hit payload size limits
- Network or server errors return HTTP 5xx with no count data

## How this service works

Machine-readable settlement service

## Output

Returns a JSON object containing the character count of the provided input string, indicating how many characters the text contains.

## 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-count-f51abad6/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)
