# x402.forgemesh.io Token & Text Analytics

> x402.forgemesh.io Token & Text Analytics is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Counts characters, words, sentences, estimated LLM tokens, Flesch reading ease score, and reading time for any input text in a single API call.

## Facts

- Endpoint: POST https://x402.forgemesh.io/count-tokens
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-forgemesh-io-token-text-analytics-f70994a2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mFC5tXeIYXbIp33u5bpDY

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-forgemesh-io-token-text-analytics-f70994a2 -d '<json body>'
```

Example prompt: Can you count the tokens, words, sentences, and Flesch readability score for this text: 'Artificial intelligence is transforming how we work and communicate, enabling faster decisions and richer insights across every industry.'?

## When to prefer this

Use this endpoint when you need to budget LLM context windows, check whether a prompt or document fits within a token limit, assess readability of text, or get a comprehensive set of text metrics in a single low-cost call without needing a local tokenizer library.

## Known failure modes

- Empty or missing 'text' field returns a validation error
- Extremely large text inputs may exceed payload limits
- Payment failure (insufficient USDC balance) blocks the request
- Network timeout for very large text submissions

## How this service works

Token and word counting API: characters, words, sentences, estimated LLM tokens, Flesch reading ease, and reading time for any text. Budgeting context windows and readability in one call.

## Output

Returns character count, word count, sentence count, estimated LLM token count, Flesch reading ease score, and estimated reading time for the submitted text — all in one response.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "words": 13,
  "sentences": 2,
  "flesch_reading_ease": 97,
  "estimated_llm_tokens": 16
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-forgemesh-io-token-text-analytics-f70994a2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
