80trust / 100
Similarity
by Tanod mlpeek in AI models & inference
x402 APIPassing, checked 11 min ago
mlpeek (Tanod) semantic similarity of text pairs (cosine of embeddings). USD 0.0005 per pair, at least USD 0.001 per call (1-50 pairs per call: USD 0.001-0.025). This call: 1 pair.
POST https://tanod.dev/v1/similarity
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 282 ms typical, 797 ms slowest 5%
- Last check
- 11 min ago
- Next check
- in 21 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://tanod.dev/v1/similarity" \
-H "content-type: application/json" \
-d '{"a":"How do I reset my password?","b":"I forgot my password, how can I change it?"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftanod.dev%2Fv1%2Fsimilarity
const res = await pay("https://tanod.dev/v1/similarity", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"a":"How do I reset my password?","b":"I forgot my password, how can I change it?"}),
});
console.log(await res.json());Example input
{
"a": "How do I reset my password?",
"b": "I forgot my password, how can I change it?"
}Example output
{
"max_tokens_per_text": 512,
"metric": "cosine",
"model": {
"alias": "small-en",
"id": "bge-small-en-v1.5",
"license": "MIT",
"revision": "5c38ec7c405ec4b44b94cc5a9bb96e735b38267a",
"source": "BAAI/bge-small-en-v1.5"
},
"results": [
{
"index": 0,
"similarity": 0.913619,
"tokens": [
9,
13
],
"truncated": false
}
],
"similarity": 0.913619,
"usage": {
"pairs": 1,
"tokens": 22,
"truncated": 0
}
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 11 min ago | Passed | 402 | 290 ms | $0.001 |
| 4 h ago | Passed | 402 | 270 ms | $0.001 |
| 7 h ago | Passed | 402 | 797 ms | $0.001 |
| 11 h ago | Passed | 402 | 1.2 s | $0.001 |
| 15 h ago | Passed | 402 | 277 ms | $0.001 |
| 18 h ago | Passed | 402 | 282 ms | $0.001 |
| 22 h ago | Passed | 402 | 391 ms | $0.001 |
| 26 h ago | Passed | 402 | 260 ms | $0.001 |
| 29 h ago | Passed | 402 | 459 ms | $0.001 |
| 34 h ago | Passed | 402 | 275 ms | $0.001 |