{"uid":"cap_7T1OWoxlqOFCCNIe10sUT","slug":"multilingual-rag-reranking-api-cfd28eae","name":"Multilingual RAG Reranking API","description":"Multilingual RAG reranking API for agents: rank 2-16 passages, tools, routes, search results, or support answers against one query for $0.003 USDC. Returns original candidate indexes, relative cosine scores, and a durable SHA-256 receipt. No API key, subscription, raw embeddings, or provider controls.","url":"https://api.delx.ai/api/v1/x402/rank-multilingual-texts","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"query":{"type":"string","maxLength":1000,"minLength":1,"description":"The multilingual search question or intent to rank against."},"candidates":{"type":"array","items":{"type":"string","maxLength":2000,"minLength":1},"maxItems":16,"minItems":2,"description":"Unique candidate texts; returned by original zero-based index.","uniqueItems":true}}},"responseSchema":{"type":"json","example":{"model":"beautyyuyanli/multilingual-e5-large","ranked":[{"score":0.912314,"candidate_index":1},{"score":0.134221,"candidate_index":0}],"sha256":"2d6c7c2b3f3c8e1e7b0d3a5b6e7f8a9b1234567890abcdef1234567890abcdef","provider":"replicate","media_type":"application/json","ranking_url":"https://api.delx.ai/api/v1/generated-rankings/ranking-example.json","input_sha256":"34a8815e9c57e321194d50f2ea8b64394019fb8038c9aefd7a9a306a5030fc31","generation_id":"ranking-example-generation-id","candidate_count":2,"sale_price_usdc":0.003,"gross_margin_usd":0.002025,"upstream_cost_usd":0.000975}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VPQyPWpXADzzPMSYHN_sE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Ranks 2–16 multilingual candidate texts (passages, tools, routes, or answers) against a query by cosine similarity, returning ordered indexes and a SHA-256 receipt for $0.003 USDC.","exampleAgentPrompt":"Rerank these 6 support articles against the query 'how do I reset my password' and tell me which are most relevant — they're in English, French, and Spanish, and I need the ranked indexes and cosine scores back.","exampleUseCases":[{"title":"Multilingual support answer ranking","prompt":"I have 8 knowledge-base articles in English and German and a customer asked 'wie kann ich mein Konto kündigen?' — can you rank all 8 by how well they answer that question and give me their original indexes?"},{"title":"RAG passage reranking before LLM generation","prompt":"I retrieved 12 chunks from my vector store for the query 'what are the side effects of ibuprofen?' — please rerank them by relevance and return the top ones so I can pass them to the LLM."},{"title":"Agent tool routing by intent similarity","prompt":"I have 5 tool descriptions and the user intent is 'book a flight to Paris for next Monday' — rank all 5 tools by how well they match that intent so I can pick the right one to call."}],"resultDescription":"Returns the original zero-based indexes of the candidate texts ordered by relevance to the query, relative cosine similarity scores for each candidate, and a durable SHA-256 receipt that can be used to verify the result.","failureModes":["Fewer than 2 or more than 16 candidates causes validation error","Query or candidate text exceeds character limits (1000 / 2000 chars) returns 400","Duplicate candidate texts rejected due to uniqueItems constraint","Insufficient USDC balance or failed x402 payment returns 402","Non-string or malformed JSON body returns 400","Service unavailability returns 503 with no receipt issued"],"whenToPreferThis":"Choose this endpoint when you need language-agnostic semantic reranking across 2–16 passages without managing embedding infrastructure, API keys, or provider accounts. Ideal for multilingual RAG pipelines, agentic tool routing, or support answer selection where a pay-per-call model ($0.003 USDC) is preferable to a subscription. The SHA-256 receipt makes it suitable when auditability of ranking decisions matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:56:45.384Z","isFirstParty":false}