Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint
$ man embedding-similarity

/embedding-similarity

agentutility / wordmint / embedding-similarity
PRICE / CALL
$0.002
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
wordmint
CATEGORY
uncategorized
STATUS
live
NAME
embedding-similarity embedding similarity / cosine similarity / semantic match / vector compare / are-these-strings-similar
SYNOPSIS
POST https://x402.agentutility.ai/embedding-similarity
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

Embedding similarity / cosine similarity / semantic match / vector compare / are-these-strings-similar. Embeds two strings via Venice (default model: text-embedding-bge-m3) and returns the cosine similarity as a single float in [-1, 1]. Useful for paraphrase detection, dedup, and cheap retrieval routing.

INPUTrequest schema
propertytypedescriptionreq?
text_astringFirst text. Up to 30,000 chars.required
text_bstringSecond text. Up to 30,000 chars.required
modelstringVenice embedding model. Default 'text-embedding-bge-m3'.optional
OUTPUTresponse shape
fieldtypedescription
text_astringEchoes back the first input string that was embedded for comparison.
text_bstringEchoes back the second input string that was embedded for comparison.
similaritystringCosine similarity between the two embeddings as a float in [-1, 1]; 1 means identical direction.
modelstringVenice embedding model used to produce the vectors, defaults to text-embedding-bge-m3.
dimensionsstringNumber of dimensions in each embedding vector returned by the model.
sourcestringUpstream embedding provider that generated the vectors, typically venice.
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/embedding-similarity \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# MCP packages on npm under
# @agentutility/mcp-*  (one per cluster)
#
# Catalog + install:
# https://mcp.agentutility.ai
#
# Or call embedding-similarity directly over HTTP — see above.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
wordmintembeddingscosine-similaritysemantic-searchvector-compareparaphrase-detectiondedupembedding-similarity
methods
POST
cluster
wordmint
price
$0.002 USDC per call
ADJACENTother endpoints in wordmint
endpointdescriptionprice
cron-explainCron expression explainer / cron parser / scheduling translator.$0.002
cron-parseCron parser.$0.002
dictionary-defineEnglish dictionary / word definition / lookup word / pronunciation / part of speech / synonyms / etymology adjacent.$0.002
regex-testRegex tester / pattern matcher / regex playground / verify-a-pattern / match-and-capture extractor.$0.002
semantic-chunkSemantic chunker / text splitter / RAG chunker / chunking with overlap / sentence + paragraph aware.$0.002
text-embeddingText embedding / vector embedding / semantic vector / Venice embeddings / Gemini embeddings / BGE-M3.$0.002
thesaurusThesaurus / synonyms / antonyms / similar words / rhymes / Datamuse / paraphrasing / query expansion.$0.002
content-simhashSimHash / 64-bit content fingerprint / near-duplicate detection / dedup hashing / locality-sensitive hash.$0.001
SEE ALSO
agentutility · wordmint · x402 · mcp · llms.txt · registry.json · bazaar.x402.org