# ONE Engine Text Token Word Counter

> ONE Engine Text Token Word Counter 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 the number of words (tokens) in a given text string of up to 50,000 characters.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/text-token/words/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-word-counter-0cb6d985
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WcME4AEFbTBu_EK8aRH_c

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-word-counter-0cb6d985 -d '<json body>'
```

Example prompt: How many words are in this text? 'The quick brown fox jumps over the lazy dog. It was a bright cold day in April, and the clocks were striking thirteen.'

## When to prefer this

Choose this endpoint when you need a fast, cheap ($0.0015 USDC), pay-per-call word count for text up to 50,000 characters and are already operating in an x402/Base payment environment. Prefer it over rolling your own counter when you need a reliable, API-native solution that integrates with autonomous agent payment flows on Base.

## Known failure modes

- Text exceeds 50,000 character limit — request rejected or truncated
- Empty text field returns zero or error
- Payment failure via x402 on Base blocks the call
- Malformed JSON body causes 400 error
- Cloudflare Worker timeout for very large inputs near the character limit

## How this service works

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

## Output

Returns a JSON object containing the word count (and potentially token count) for the submitted text. The response schema is open-ended (additionalProperties: true), so additional metadata about the text may be included.

## 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-word-counter-0cb6d985/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)
