# Cluster Protocol Rerank

> Cluster Protocol Rerank is a paid API for AI agents from api.clusterprotocol.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-17).

Reranks a list of documents by relevance to a given search query, returning scored and ordered results

## Facts

- Endpoint: POST https://api.clusterprotocol.ai/v1/rerank?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cluster-protocol-rerank-2efb0da0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cxX6dEcIlHPxfwnZ2IKy7

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability cluster-protocol-rerank-2efb0da0 -d '<json body>'
```

Example prompt: Rerank these 10 passages using the Cluster Protocol reranker with the query 'what are the side effects of ibuprofen?' and return the top 5 most relevant ones.

## When to prefer this

Choose this endpoint when you need to rerank a set of candidate documents or passages by relevance to a specific query — especially in RAG pipelines, semantic search, or any retrieval system where initial recall quality needs to be boosted. It is preferable over embedding-based similarity alone when cross-encoder precision matters and you have a fixed candidate set to score.

## Known failure modes

- Missing required fields (model, query, or documents) returns a 400 validation error
- Empty documents array causes an error or empty results
- Unsupported or misspelled model slug returns a 404 or model-not-found error
- Payment not provided or insufficient USDC balance causes a 402 payment required error
- Very large document arrays may hit token or size limits
- Documents that are too long may be truncated or rejected

## How this service works

Liberation Engine for Internet Capital Market

## Output

An array of result objects, each containing the original document index, the document text, and a relevance_score float indicating how relevant that document is to the query. Results are ordered by descending relevance, with an optional top_n limit applied.

## Request schema (JSON Schema)

```json
{
 "input": {
  "type": "object",
  "required": [
   "model",
   "query",
   "documents"
  ],
  "properties": {
   "model": {
    "type": "string",
    "description": "Reranker model slug"
   },
   "query": {
    "type": "string",
    "description": "Search query"
   },
   "top_n": {
    "type": "integer",
    "description": "Number of top results"
   },
   "documents": {
    "type": "array",
    "items": {
     "type": "string"
    },
    "description": "Documents to rerank"
   }
  }
 },
 "output": {
  "type": "object",
  "properties": {
   "results": {
    "type": "array",
    "items": {
     "type": "object",
     "properties": {
      "index": {
       "type": "integer"
      },
      "document": {
       "type": "string"
      },
      "relevance_score": {
       "type": "number"
      }
     }
    }
   }
  }
 },
 "properties": {
  "input": {
   "required": [
    "method"
   ],
   "properties": {
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cluster-protocol-rerank-2efb0da0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.clusterprotocol.ai](https://www.zero.xyz/host/api.clusterprotocol.ai/llms.txt)
