# 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-09-14).

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

## Facts

- Endpoint: POST https://kihustle.tech/api/v1/cosine-similarity-bow
- 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-cosine-similarity-bag-of-words-f58c5657
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S1Gmv6fXUk9-ITvIbXFvx

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-f58c5657 -d '<json body>'
```

Example prompt: Can you compute the cosine similarity between these two texts using bag-of-words: 'Machine learning helps automate tasks' and 'Automation with AI reduces manual work'?

## When to prefer this

Prefer this endpoint when you need a fast, lightweight, word-overlap-based similarity measure between two short-to-medium texts without needing deep semantic embeddings. Ideal for deduplication, basic relevance scoring, and keyword-overlap checks where speed and low cost matter more than nuanced semantic understanding.

## Known failure modes

- Missing text_a or text_b fields returns an error
- Empty strings may produce a zero or undefined similarity score
- Very long texts may hit request size limits
- Non-string inputs may cause a validation error
- Server errors return a non-success status field

## 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 (a float between 0 and 1, where 1 means identical and 0 means no overlap) and a success status field indicating whether the computation completed successfully.

## 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-f58c5657/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)
