{"uid":"cap_1Mrfnd4tOyIGOKFPid52v","slug":"delx-commerce-multilingual-text-ranking-api-21f24119","name":"Delx Commerce — Multilingual Text Ranking API","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/rank-multilingual-texts?utm_source=zero.xyz","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_ztTXdqb0H-EaAoxM8_QVh","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 a list of candidate texts against a multilingual query using semantic similarity scoring, returning candidates ordered by relevance score.","exampleAgentPrompt":"Rank these 4 candidate answers by how well they match the question 'What are the symptoms of diabetes?' — the candidates are in English, French, Spanish, and German — and tell me which one is most relevant with its score.","exampleUseCases":[{"title":"Multilingual FAQ answer selection","prompt":"I have a user question in English — 'How do I reset my password?' — and 5 candidate answers pulled from our knowledge base in English, French, and Spanish. Rank them by relevance so I can return the best one."},{"title":"Cross-lingual search result reranking","prompt":"I ran a search for 'renewable energy policies' and got back 8 snippets in different languages. Rank them by how closely they match the original query so I know which to show first."},{"title":"Multilingual intent matching for chatbot","prompt":"Given the user message 'je veux annuler ma commande', rank these 6 intent labels — in English and French — by which one the message most likely belongs to."}],"resultDescription":"A JSON object containing a ranked array of candidate objects, each with a floating-point similarity score and the original zero-based candidate_index. Also includes the model name (multilingual-e5-large), a SHA256 hash of the result for verifiability, a URL to retrieve the stored ranking, input SHA256, generation ID, candidate count, sale price in USDC, and cost breakdown.","failureModes":["Fewer than 2 or more than 16 candidates returns a validation error","Query or candidate text exceeds character limits (1000 / 2000 chars) causes rejection","Duplicate candidate texts rejected due to uniqueItems constraint","Payment failure via x402 if USDC balance is insufficient","Upstream Replicate model unavailability causes 502/503 errors","Empty or null query string fails schema validation"],"whenToPreferThis":"Choose this endpoint when you need semantic relevance ranking across multiple languages without building or hosting your own embedding model. It is ideal for multilingual RAG pipelines, cross-lingual FAQ retrieval, or reranking search results where candidates may span languages. Prefer it over monolingual rankers when your corpus or users are multilingual. The pay-per-call model ($0.003 USDC, no signup) is optimal for agent workflows with variable or unpredictable load, and the verifiable SHA256 delivery and stored ranking URL make it suitable for auditable pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T01:17:54.537Z","isFirstParty":false,"canonicalSlug":"delx-commerce-multilingual-text-ranking-api-21f24119"}