# KiHustle Type-Token Ratio Calculator

> KiHustle Type-Token Ratio Calculator is a paid API for AI agents from kihustle.tech, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Computes the type-token ratio (TTR) of a given text, measuring lexical diversity by comparing unique word types to total word tokens

## Facts

- Endpoint: POST https://kihustle.tech/api/v1/type-token-ratio
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kihustle-type-token-ratio-calculator-2c29d90f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_E5aYSe1M0dWhBKvBc0XqV

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 kihustle-type-token-ratio-calculator-2c29d90f -d '<json body>'
```

Example prompt: Can you calculate the type-token ratio of this paragraph to tell me how lexically diverse it is: 'The quick brown fox jumps over the lazy dog. The dog barked at the fox as the fox ran away.'

## When to prefer this

Choose this endpoint when you need a quick, paid-per-call TTR computation without setting up local NLP infrastructure. It is ideal for lightweight lexical diversity checks in content pipelines, educational grading tools, or NLP feature extraction workflows where simplicity and low per-call cost matter more than advanced linguistic models. Prefer this over custom NLP libraries when you want a serverless, pay-as-you-go approach at $0.002 per call.

## Known failure modes

- Empty text input may return an error or undefined ratio
- Extremely short texts (1-2 words) produce unreliable TTR values close to 1.0
- Non-string input types will likely fail schema validation
- Very long texts may be truncated or slow to process
- Non-Latin scripts or multilingual text may produce unexpected tokenization results
- Payment failure (insufficient USDC balance) blocks the request entirely

## How this service works

Kostenlose Guides, Solo-Playbooks und Artikel zu KI, Automation und Side Hustles — für Menschen, die mit echten Systemen online Einkommen aufbauen wollen. Transparent finanziert über faire Affiliate-Links.

## Output

Returns a JSON object indicating the processing result and success status. Based on the TTR computation, the response contains a result field with the computed ratio or processed output and a status field confirming success. The TTR value represents the proportion of unique words (types) to total words (tokens) in the submitted text, ranging from 0 to 1 where higher values indicate greater lexical diversity.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "processed",
  "status": "success"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kihustle-type-token-ratio-calculator-2c29d90f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kihustle.tech](https://www.zero.xyz/host/kihustle.tech/llms.txt)
