{"uid":"cap_PuRsvMLkXBbNTs2EK5cV9","slug":"gedx402-workers-ai-rerank-53985633","name":"GEDX402 Workers AI Rerank","description":"x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.","url":"https://ged-x402-embed.jvalamis.workers.dev/v1/rerank","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"query":{"type":"string"},"top_k":{"type":"integer"},"contexts":{"type":"array","items":{"type":"object"}}}},"responseSchema":{"type":"json","example":{"response":[{"index":0,"score":0.92}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0023","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.0023/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0023","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0023","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vTnrXv3DrK4dAb_TYhe0s","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0023","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Reranks a list of candidate text passages by their relevance to a given query, returning scored and ordered results, payable with USDC on multiple chains via x402.","exampleAgentPrompt":"From these 10 candidate paragraphs I retrieved, rerank them against the query 'how does photosynthesis work' and return the top 3 most relevant ones.","exampleUseCases":null,"resultDescription":"A JSON array of objects each containing an 'index' (position in the original contexts array) and a 'score' (0-1 relevance score), sorted by relevance to the query. Only the top_k results are returned.","failureModes":["Empty or missing 'query' parameter returns error or undefined behavior","Empty 'contexts' array returns empty results","top_k larger than contexts length may return fewer results than requested","Payment failure on all supported chains (Base, Polygon, Arbitrum, World, Solana) results in 402 response","Malformed context objects missing 'text' field may cause errors","Very long passages may hit token limits of the underlying model"],"whenToPreferThis":"Use this endpoint when you need a lightweight, no-API-key reranking step in a RAG or search pipeline and want to pay per-call with USDC on a blockchain network. Ideal for agents that have already retrieved candidate passages and need to reorder them by semantic relevance before presenting to the user. Prefer over embedding-based similarity if you want a dedicated cross-encoder-style reranking model.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:44:00.511Z","isFirstParty":false}