# Cosine Similarity (Bag-of-Words) — KiHustle Bot Bazaar

> Cosine Similarity (Bag-of-Words) — KiHustle Bot Bazaar 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/bot-bazaar/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/cosine-similarity-bag-of-words-kihustle-bot-bazaar-19f2cb29
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4e9sJ5482JJZtxA0ZNcak

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 cosine-similarity-bag-of-words-kihustle-bot-bazaar-19f2cb29 -d '<json body>'
```

Example prompt: Can you check how similar these two sentences are using bag-of-words cosine similarity? First: 'Earn money online with AI tools and automation.' Second: 'Use artificial intelligence to build passive income streams online.'

## When to prefer this

Choose this endpoint when you need a fast, lightweight, lexical similarity measure between two short-to-medium text strings and do not need semantic embedding-based comparison. It is ideal for deduplication, keyword matching, and basic relevance scoring where vocabulary overlap is a sufficient proxy for similarity. Prefer semantic embedding endpoints when deep semantic meaning matters more than word overlap.

## Known failure modes

- Missing text_a or text_b fields returns an error
- Empty string inputs may yield a zero-similarity result or error
- Very long texts may cause unexpected truncation or timeout
- Non-UTF-8 or special character inputs may cause parsing failures
- Response schema is minimal — numeric score format not guaranteed beyond 'result' and 'status' fields

## 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 similarity result and status field. The similarity score reflects how close the two input texts are based on overlapping vocabulary weighted by cosine distance using a bag-of-words model. A score of 1.0 indicates identical term distributions; 0.0 indicates no overlap.

## 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/cosine-similarity-bag-of-words-kihustle-bot-bazaar-19f2cb29/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)
