# x402 Agent Toolkit – Text Stats

> x402 Agent Toolkit – Text Stats is a paid API for AI agents from x402-agent-toolkit.vercel.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-13).

Computes statistical metrics (word count, character count, sentence count, etc.) for a given text string

## Facts

- Endpoint: POST https://x402-agent-toolkit.vercel.app/api/text-stats?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-agent-toolkit-text-stats-00ca03d8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xpeormM6S6nCLWbvRYta-

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 x402-agent-toolkit-text-stats-00ca03d8 -d '<json body>'
```

Example prompt: Can you run text stats on this paragraph for me: 'The quick brown fox jumps over the lazy dog. It was a beautiful morning and the sun was shining brightly.' — I want to know the word count, character count, and sentence count.

## When to prefer this

Choose this endpoint when you need fast, deterministic, LLM-free text statistics (word count, character count, sentence count) and want to pay per-call in USDC on Base or Solana via x402. Ideal for agents that need reliable text metrics without the cost or latency of a language model.

## Known failure modes

- Missing 'text' field returns a 400 or validation error
- Empty string may return zero-value stats or an error
- Very large text inputs may be rejected or time out
- Payment failure (insufficient USDC balance or x402 handshake failure) blocks the request before processing

## How this service works

Paid utility endpoints for AI agents. Pay with USDC on Base or Solana. Pure computation, no LLM dependency.

## Output

Returns a JSON object containing computed statistics about the submitted text, likely including word count, character count, sentence count, and possibly paragraph count or other structural metrics.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-agent-toolkit-text-stats-00ca03d8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-toolkit.vercel.app](https://www.zero.xyz/host/x402-agent-toolkit.vercel.app/llms.txt)
