# ONE Engine Text Token Character Counter

> ONE Engine Text Token Character Counter is a paid API for AI agents from one-search.one-engine.workers.dev, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-02).

Counts the number of characters in a given text string, returning token/character metrics for up to 50,000 characters of input.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/text-token/characters/t6?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/one-engine-text-token-character-counter-1730d0bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WyezPK4i4l0JLwgY3bobl

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 one-engine-text-token-character-counter-1730d0bc -d '<json body>'
```

Example prompt: How many characters are in this text: 'The quick brown fox jumps over the lazy dog. This is a sample paragraph used to test text length measurement tools.'?

## When to prefer this

Use this endpoint when you need a cheap, pay-per-call character counting or text measurement utility without spinning up your own infrastructure. At $0.004 USDC per call it is cost-effective for sporadic agent tasks that need to validate text length before submitting to downstream services with character limits.

## Known failure modes

- Text exceeding 50,000 characters may be rejected or truncated
- Empty or missing 'text' field returns a validation error
- Network timeouts on the Cloudflare Worker edge node
- x402 payment failure if USDC balance is insufficient or payment header is malformed

## How this service works

Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.

## Output

Returns an object containing character count and possibly token-level metrics for the submitted text, helping agents validate text length or plan downstream API usage.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text"
 ],
 "properties": {
  "text": {
   "type": "string",
   "description": "Text up to 50000 characters"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-text-token-character-counter-1730d0bc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from one-search.one-engine.workers.dev](https://www.zero.xyz/host/one-search.one-engine.workers.dev/llms.txt)
