# ONE Engine Text Token Word Count (T5)

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

Counts the number of words in a given text string using a T5-based tokenization approach, returning word-level token statistics.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/text-token/words/t5?utm_source=zero.xyz
- Price: $0.0025/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-count-t5-bb9a5d63
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sHda7qD71SgixSiEIyXMZ

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-count-t5-bb9a5d63 -d '<json body>'
```

Example prompt: Count the words in this text for me: 'The quick brown fox jumped over the lazy dog. It was a bright and sunny day in the meadow.'

## When to prefer this

Choose this endpoint when you need a cheap, fast, pay-per-call word count or T5-based token count for text up to 50,000 characters, especially within an autonomous agent pipeline already using x402 micropayments on Base. It is well-suited for lightweight text measurement tasks where you don't need a full NLP pipeline or embeddings — just a quick word/token count statistic.

## Known failure modes

- Text exceeds 50000 character limit — request rejected or truncated
- Empty text field — may return zero count or validation error
- Payment failure via x402 — 402 response requiring USDC payment on Base
- Malformed JSON request body — 400 error
- Service unavailability on Cloudflare Workers edge — 500 or timeout

## How this service works

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

## Output

Returns a JSON object containing word count and related token metrics derived from T5-based processing of the input text. The exact fields are flexible but expected to include the total word or token count for the submitted text.

## 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-count-t5-bb9a5d63/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)
