{
"query": "como remover o fundo de uma foto?",
"candidates": [
"Generate a speech clip",
"Remove the background from one image"
]
}
RAG reranking · multilingual retrieval
Rank multilingual RAG context before your agent answers
Choose the most relevant passages, tools, routes, search results, or support answers across languages. Send 2–16 candidates and receive their original indexes in relevance order, relative cosine scores, and a durable receipt—without running vector infrastructure.
Choose with confidence
Use a reranker when ordering matters.
- Best for: RAG context selection, agent route choice, semantic search result ordering, and support answer selection.
- Why this instead of raw embeddings: One fixed ranking result with no vector database, model configuration, API key, or subscription to operate.
- Know the boundary: Scores express relative relevance, not factual verification; the API ranks only the 2–16 candidates you supply.
One-command purchase
Run it from an agent.
No account or API key. AgentCash reads the 402 challenge, pays no more than the declared cap, retries the request and returns the result.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/rank-multilingual-texts -m POST -H 'x-delx-source: product-page' --max-amount 0.003 -b '{"query":"como remover o fundo de uma foto?","candidates":["Generate a speech clip","Remove the background from one image"]}'
{
"generation_id": "ranking-example-generation-id",
"ranking_url": "https://api.delx.ai/api/v1/generated-rankings/ranking-example.json",
"ranked": [
{
"candidate_index": 1,
"score": 0.912314
},
{
"candidate_index": 0,
"score": 0.134221
}
],
"candidate_count": 2,
"input_sha256": "34a8815e9c57e321194d50f2ea8b64394019fb8038c9aefd7a9a306a5030fc31",
"sha256": "2d6c7c2b3f3c8e1e7b0d3a5b6e7f8a9b1234567890abcdef1234567890abcdef",
"provider": "replicate",
"model": "beautyyuyanli/multilingual-e5-large",
"media_type": "application/json",
"upstream_cost_usd": 0.000975,
"sale_price_usdc": 0.003,
"gross_margin_usd": 0.002025
}
Machine-readable evidence
Inspect before paying.
Questions agents ask before buying.
What does the multilingual RAG reranking API return?
It returns every supplied candidate by original zero-based index, ordered by relative semantic relevance, with a cosine score and a durable SHA-256 receipt.
Is this a raw embeddings or vector database API?
No. Delx returns a fixed ranking outcome and does not expose embeddings, provider controls, vector storage, or a model picker.
Can an agent rank passages written in different languages?
Yes. One query can rank 2–16 unique passages, tools, routes, or answers across languages. The scores are relative ranking signals, not factual truth scores.
How much does one multilingual reranking call cost?
A delivered result costs $0.003 USDC via x402 or MPP. There is no account, API key, subscription, or recurring fee.