# OmniAPI Word Count

> OmniAPI Word Count is a paid API for AI agents from omni-api-cyan.vercel.app, paid per call via x402, $0.082554/call, status unknown (last checked 2026-09-15).

Counts the number of words in a given text string

## Facts

- Endpoint: POST https://omni-api-cyan.vercel.app/api/tools/text/word-count
- Price: $0.082554/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/omniapi-word-count-c869c5f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7e9RJu3qMreNBfcWg4pmD

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 omniapi-word-count-c869c5f8 -d '<json body>'
```

Example prompt: Can you count how many words are in this paragraph: 'The quick brown fox jumps over the lazy dog and then runs away into the forest'?

## When to prefer this

Use this endpoint when you need a quick, programmatic word count for any text string and are already integrated with the OmniAPI x402 payment flow. It is appropriate for lightweight, single-call text measurement without requiring a full NLP or document processing pipeline.

## Known failure modes

- Empty or missing query field returns an error or zero count
- Extremely long text strings may be truncated or cause timeout
- Non-text inputs (numbers, symbols only) may return unexpected counts
- Payment failure via x402 results in 402 response and no data returned

## How this service works

444 endpoints across 9+ chains. Crypto, AI, Social, Finance, Weather, Tools. Pay per call in USDC via x402 with 4 facilitators: Dexter, Meridian, FluxA, GoPlausible.

## Output

Returns the total word count of the input text, and potentially additional text statistics such as word frequency or character count

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "input": {
   "type": "string",
   "description": "Input data for the endpoint"
  },
  "query": {
   "type": "string",
   "description": "Search query or input text"
  },
  "params": {
   "type": "object",
   "description": "Additional parameters"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/omniapi-word-count-c869c5f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from omni-api-cyan.vercel.app](https://www.zero.xyz/host/omni-api-cyan.vercel.app/llms.txt)
