# KiHustle Cosine Similarity (Bag-of-Words)

> KiHustle Cosine Similarity (Bag-of-Words) is a paid API for AI agents from kihustle.tech, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-13).

Computes cosine similarity between two text strings using a bag-of-words (BoW) representation

## Facts

- Endpoint: POST https://kihustle.tech/nexus/api/v1/cosine-similarity-bow?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kihustle-cosine-similarity-bag-of-words-a3531a92
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uFZV3aUcnCmWpMSX24l4I

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-cosine-similarity-bag-of-words-a3531a92 -d '<json body>'
```

Example prompt: Can you tell me how similar these two texts are using bag-of-words cosine similarity — text A: 'Machine learning helps automate repetitive tasks' and text B: 'AI tools can be used to automate workflows and save time'?

## When to prefer this

Choose this endpoint when you need a lightweight, fast, keyword-overlap-based similarity score between two texts without requiring heavy embedding models or semantic neural networks. Ideal for deduplication, basic matching, or cost-sensitive pipelines where BoW similarity is sufficient.

## Known failure modes

- Missing text_a or text_b field returns an error
- Empty strings may produce a zero or undefined similarity score
- Very long texts may time out or be truncated
- Non-string inputs may cause a parsing error
- Identical texts should return 1.0 but may vary with implementation edge cases

## 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 with a cosine similarity score (likely a float between 0 and 1) reflecting how similar the two input texts are based on their bag-of-words vector representations, along with a status field indicating success.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text_a": {
   "type": "string"
  },
  "text_b": {
   "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-cosine-similarity-bag-of-words-a3531a92/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)
