ai

Semantic Similarity

Text and embedding similarity scoring: cosine match and dedupe decisions at fixed model precision. POST /v1/semantic with {text_a, text_b} and get a similarity score as one JSON object. Deterministic. Pay per request in USDC; no account, no API key.

post/v1/semantic-similarity

Request

  • Base URL: https://agent.pocket.network
  • URL: https://agent.pocket.network/v1/semantic-similarity
  • Auth: none required

Request body

text_astring required

First text.

text_bstring required

Second text.

Response

The upstream response, served after payment settles.

object required

For POST /v1/semantic, a JSON object with a similarity score. The exact shape is the service's own and is not pinned here; errors return a JSON object with an error field, and the GET routes return their own small JSON documents.

Changes

No recorded changes to this operation across all 1 revision of this API.