# ONE Engine Text Token Lines Counter (t9)

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

Counts and returns line-level token information for a given text input up to 50,000 characters.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v3/text-token/lines/t9?utm_source=zero.xyz
- Price: $0.018/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-lines-counter-t9-fe31af08
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FPZRJlrh1q5Mzh5qg4Zyl

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-lines-counter-t9-fe31af08 -d '<json body>'
```

Example prompt: Count the tokens for each line in this text and give me a breakdown: 'Line one is here.
Line two follows.
And here is line three.' — I want to see the token count per line.

## When to prefer this

Choose this endpoint when you need granular, line-by-line token analysis of a text block, especially for LLM context planning, document chunking, or prompt engineering. It is low-cost ($0.018 USDC per call) and pay-per-use via x402 on Base, making it suitable for agent workflows that need lightweight, on-demand tokenization without a subscription.

## Known failure modes

- Text exceeds 50,000 character limit — likely returns a 400 or validation error
- Empty text field — may return an error or empty result
- Payment failure via x402 — returns 402 Payment Required if USDC not provided
- Malformed JSON body — returns 400 Bad Request
- Network timeout on Cloudflare Worker — transient 5xx error

## How this service works

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

## Output

Returns a JSON object containing line-level token data for the submitted text, including token counts or token sequences broken down by each line of the input.

## 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-lines-counter-t9-fe31af08/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)
