# Saylor Innovations Text Similarity Analyzer

> Saylor Innovations Text Similarity Analyzer is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-18).

Compares two texts using cosine, Jaccard, Dice bigram, and edit-distance similarity metrics, returning an overall score, duplicate verdict, and shared terms

## Facts

- Endpoint: GET https://saylorinnovations.com/api/text/similarity?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-text-similarity-analyzer-8138100b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BgZjgQeCtp1xjo8MCQHy4

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 saylor-innovations-text-similarity-analyzer-8138100b
```

Example prompt: Can you compare these two paragraphs and tell me how similar they are — give me cosine, Jaccard, Dice bigram, and edit-distance scores along with an overall verdict on whether they're duplicates? Text A: 'The quick brown fox jumps over the lazy dog.' Text B: 'A fast brown fox leaps over a sleepy dog.'

## When to prefer this

Choose this endpoint when you need multi-metric text similarity in a single call — it combines cosine, Jaccard, Dice bigram, and edit-distance into one aggregated score with a duplicate verdict, saving you from calling separate NLP tools. Prefer it over standalone edit-distance or cosine tools when you want a holistic comparison with shared-term extraction for explainability.

## Known failure modes

- Missing required query parameters 'a' or 'b' returns an error
- Text inputs exceeding 2500 characters may be rejected or truncated
- Very short inputs (single words) may produce unreliable similarity scores
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Compare two texts with cosine, Jaccard, Dice bigram and edit-distance similarity, an overall score, a duplicate verdict and the shared terms

## Output

Returns a JSON object with cosine similarity, Jaccard similarity, Dice bigram similarity, edit distance, edit similarity, an aggregated overall similarity score (0–1), a plain-English duplicate verdict, a list of shared terms, and word counts for both inputs — plus optional notes and source attribution.

## 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": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "a",
      "b"
     ],
     "properties": {
      "a": {
       "type": "string",
       "description": "First text (up to 2500 characters)"
      },
      "b": {
       "type": "string",
       "description": "Second text (up to 2500 characters)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "overall_similarity",
      "verdict",
      "cosine_similarity"
     ],
     "properties": {
      "note": {
       "type": "string",
       "description": "Caveat or context for reading the result"
      },
      "source": {
       "type": "string",
       "description": "Data source the values come from"
      },
      "verdict": {
       "type": "string",
       "description": "Overall assessment derived from the listed reasons"
      },
      "exact_match": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "Exact match"
      },
      "shared_terms": {
       "type": [
        "array",
        "null"
       ],
       "description": "Shared terms"
      },
      "shared_words": {
       "type": "number",
       "description": "Shared words"
      },
      "text_a_words": {
       "type": "number",
       "description": "Text a words"
      },
      "text_b_words": {
       "type": "number",
       "description": "Text b words"
      },
      "edit_distance": {
       "type": "number",
       "description": "Edit distance"
      },
      "edit_similarity": {
       "type": [
        "number",
        "null"
       ],
       "description": "Edit similarity"
      },
      "cosine_similarity": {
       "type": "number",
       "description": "Cosine similarity"
      },
      "jaccard_similarity": {
       "type": "number",
       "description": "Jaccard similarity"
      },
      "overall_similarity": {
       "type": "number",
       "description": "Overall similar
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-text-similarity-analyzer-8138100b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
