# PrimeAPI Character Count

> PrimeAPI Character Count is a paid API for AI agents from prime-api-seven.vercel.app, paid per call via x402, $0.144365/call, status unknown (last checked 2026-09-14).

Counts the number of characters in a given text string

## Facts

- Endpoint: POST https://prime-api-seven.vercel.app/api/tools/text/char-count
- Price: $0.144365/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/primeapi-character-count-15a875cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nCC2gwpKyKMIaqqUnGD5m

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 primeapi-character-count-15a875cd -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 simple, pay-per-call character count computation without managing API keys. Suitable for agents that need to measure text length on demand as part of a larger workflow, especially when already integrated with the x402 USDC payment protocol on Base.

## Known failure modes

- Empty input string returns zero or error
- Oversized input may be rejected or truncated
- Payment failure (402) if USDC balance insufficient on Base
- Generic API error response if service is unavailable

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

Returns a character count value for the input text string, indicating the total number of characters in the provided input.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/primeapi-character-count-15a875cd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from prime-api-seven.vercel.app](https://www.zero.xyz/host/prime-api-seven.vercel.app/llms.txt)
