# OmniAPI Text Character Count

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

Counts the number of characters in a given text string

## Facts

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

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-text-character-count-4c74627a -d '<json body>'
```

Example prompt: How many characters are in this text: 'The quick brown fox jumps over the lazy dog'?

## When to prefer this

Use this endpoint when you need a quick, paid-per-call character count computation via the x402 micropayment protocol and already have OmniAPI access set up. For free or bulk text analysis, a local string-length function or a standard NLP library would be more cost-effective.

## Known failure modes

- Empty or missing query/input field returns an error or zero count
- Very large text strings may be truncated or rejected
- Ambiguity between character count with vs. without spaces may cause unexpected results
- Non-UTF-8 or special Unicode characters may be miscounted or cause errors
- Payment failure via x402 prevents the call from completing

## 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 character count (an integer) representing the total number of characters in the submitted text string, likely including spaces and punctuation.

## 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-text-character-count-4c74627a/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)
