# Agent Link Text Similarity

> Agent Link Text Similarity is a paid API for AI agents from agent-link.annushka1190.workers.dev, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-15).

Computes semantic or lexical similarity between two text strings, returning a similarity score

## Facts

- Endpoint: POST https://agent-link.annushka1190.workers.dev/v1/text/similarity
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-link-text-similarity-77b47875
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JheRcskcV3a_dNdM_MJso

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 agent-link-text-similarity-77b47875 -d '<json body>'
```

Example prompt: Can you tell me how similar these two sentences are: 'The quick brown fox jumps over the lazy dog' and 'A fast auburn fox leaps above a sleepy hound'?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call text similarity computation without managing API keys or standing up an NLP service. It is ideal for agents that need on-demand similarity checks for deduplication, matching, or ranking tasks and want to pay in USDC via x402 with minimal setup.

## Known failure modes

- Missing required 'input' body fields returns a 4xx validation error
- Non-text or empty string inputs may produce a zero or undefined score
- Payment failure via x402 results in a 402 response requiring USDC payment
- Very long text inputs may exceed processing limits and return a 4xx or timeout
- Network timeouts to the Cloudflare worker may occur under load

## How this service works

URL and content micro-tools for AI agents: parse URLs, probe HTTP status and security headers, extract text from HTML, text stats, and similarity. Pay with USDC via x402 — no API keys.

## Output

Returns a JSON object with an 'ok' boolean and a similarity score or metric indicating how similar the two input texts are, likely as a float between 0 and 1.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "const": "json"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-link-text-similarity-77b47875/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-link.annushka1190.workers.dev](https://www.zero.xyz/host/agent-link.annushka1190.workers.dev/llms.txt)
