Skip to content
Fourohtwo

agentsvc.io/api/v1/proxy/text-embed

Sentence embeddings (all-MiniLM-L6-v2, 384 dimensions, L2-normalized, multilingual input works best in English) for semantic search, clustering and deduplication, or rerank mode: pass query + documents to get documents sorted by cosine similarity. Runs locally, texts are not stored. Params: texts (1 to 32 strings, max 2000 chars each) for embed mode, or query + documents (up to 64) and top_k for r

BaseAnswering
POSThttps://agentsvc.io/api/v1/proxy/text-embed

Uptime100% of 3 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agentsvc.io/api/v1/proxy/text-embed", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"query":"how do AI agents pay for APIs?","documents":["x402 lets agents pay per call with USDC","The cat sat on the mat","Weather in Berlin is sunny"]}),
});
console.log(await res.json());

Example input

{
  "query": "how do AI agents pay for APIs?",
  "documents": [
    "x402 lets agents pay per call with USDC",
    "The cat sat on the mat",
    "Weather in Berlin is sunny"
  ]
}