Skip to content
Back to skills

Text Similarity Post Similarity

ASecurity

Compares two texts and returns a cosine similarity score.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 22, 2026
ai-agentsgoapi

Works with

  • api

Security analysis

A100/100

Scanned September 22, 2026

npx -y skills add bobadilla-tech/requiems-api-skills --skill text-similarity-post-similarity --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Text Similarity Post Similarity?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Text Similarity Post Similarity
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bobadilla-tech-text-similarity-post-similarity/badge)](https://www.skillsdirectory.com/skills/bobadilla-tech-text-similarity-post-similarity)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: text-similarity-post-similarity
api: Text Similarity
method: POST
path: /v1/text/similarity
base_url: https://requiems.xyz
description: Compares two texts and returns a cosine similarity score.
---

## Endpoint

**POST https://requiems.xyz/v1/text/similarity**

## Compare Text Similarity

Compares two texts and returns a cosine similarity score.

## Parameters

| Name | Type | Required | Location | Description |
| ---- | ---- | -------- | -------- | ----------- |
| `text1` | string | yes | body | The first text to compare. |
| `text2` | string | yes | body | The second text to compare. |

## Request Example

```json
{
  "text1": "The cat sat on the mat",
  "text2": "A cat was sitting on a mat"
}
```

## Response Example

```json
{
  "data": {
    "similarity": 0.4364,
    "method": "cosine"
  },
  "metadata": {
    "timestamp": "2026-01-01T00:00:00Z"
  }
}
```

## Response Fields

| Field | Type | Description |
| ----- | ---- | ----------- |
| `similarity` | number | Cosine similarity score between the two texts, in the range [0, 1]. |
| `method` | string | The algorithm used. Currently always 'cosine'. |

## Errors

- `422` **validation_failed** — One or both text fields are missing or empty.
- `400` **bad_request** — The request body is missing or malformed.
- `500` **internal_error** — Unexpected server error.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…