# ONE Engine Text Token Character Counter (t4)

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

Counts or tokenizes characters in a text string up to 50,000 characters long, returning token/character metrics.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/text-token/characters/t4?utm_source=zero.xyz
- Price: $0.0015/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-t4-b31d01e6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xdu3n3DGM3vQsqH_XPoVj

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

Example prompt: Count the number of characters and tokens in this text for me: 'The quick brown fox jumps over the lazy dog. This sentence is used to test character and token counting utilities.'

## When to prefer this

Choose this endpoint when you need a fast, cheap, pay-per-call character or token count for a text string up to 50,000 characters, especially in autonomous agent workflows on Base where x402 micropayments are already in use. At $0.0015 per call it is cost-effective for high-frequency validation tasks.

## Known failure modes

- Text exceeds 50,000 character limit — returns an error or truncation notice
- Empty text field — may return zero counts or a validation error
- Malformed JSON body — returns a 400 bad request
- Payment not included or insufficient USDC balance — returns 402 Payment Required

## How this service works

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

## Output

Returns a JSON object containing character and/or token count metrics for the submitted text, likely including total character count and token count breakdown.

## 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-t4-b31d01e6/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)
