Relevance scores for your candidate passages against a query
embed.gedx402.com/v1/rerank
Relevance scores for your candidate passages against a query. POST { query, contexts: [{ text }], top_k? } on embed.gedx402.com. Returns response[] of { index, score } sorted by relevance for search and RAG. Example: { query: "vector search", contexts: [{ text: "Embeddings store meaning." }], top_k: 2 } → [{ index: 0, score: 0.92 }].
POST
https://embed.gedx402.com/v1/rerankUptime100% of 1 check 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
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://embed.gedx402.com/v1/rerank", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"contexts":[{"text":"Embeddings store meaning so similar text is near in vector space."},{"text":"A coffee grinder chops beans into grounds for brewing."}],"query":"vector search for RAG","top_k":2}),
});
console.log(await res.json());Example input
{
"contexts": [
{
"text": "Embeddings store meaning so similar text is near in vector space."
},
{
"text": "A coffee grinder chops beans into grounds for brewing."
}
],
"query": "vector search for RAG",
"top_k": 2
}More from GEDX402 Knowledge
- embed.gedx402.com/v1/embedA vector embedding of the text you send. POST one text string; billed by input volume. Identical POSTs within 300s may return cached JSON (X-GED-Cache: hit).0.0073
- embed.gedx402.com/v1/embed/:modelA vector embedding of the text you send. POST one text string; billed by input volume. Identical POSTs within 300s may return cached JSON (X-GED-Cache: hit).0.003
- embed.gedx402.com/v1/sentimentClassify sentiment (positive/negative) with DistilBERT. POST text; returns label and confidence score. Fixed low per-request price.0.0075
- embed.gedx402.com/v1/summarizeA short summary of the text you send. POST input text; returns a concise summary. Price scales with input and output length.0.004
- embed.gedx402.com/v1/translateM2M100 machine translation — one x402 payment on embed.gedx402.com. POST { text, source_lang, target_lang } → { translated_text }; wire settlement USDC per request (see npm run pricing:report) worst-case. Hero: GET /heroes/translate. Competitive discovery alongside embed ping; not in the five-step AOV ladder.0.004
- embed.gedx402.com/v1/translate/indicTranslated text for the string you send. POST source text and target language; returns translated_text with dynamic token pricing.0.0058
