# NoJunk Moderate Rerank

> NoJunk Moderate Rerank is a paid API for AI agents from nojunk-moderate.mick8511.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-28).

Semantically reranks up to 100 documents against a query, returning them ordered best-first for RAG pipelines, search, and deduplication.

## Facts

- Endpoint: POST https://nojunk-moderate.mick8511.workers.dev/rerank?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nojunk-moderate-rerank-4dc409cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_25ajI3ZaW2IrjwMTrxY1a

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 nojunk-moderate-rerank-4dc409cd -d '<json body>'
```

Example prompt: Rerank these 20 retrieved passages against my query 'how does photosynthesis work?' and return only the top 5 most relevant ones.

## When to prefer this

Use this endpoint when you need fast, pay-per-call semantic reranking of up to 100 documents without managing your own reranking model infrastructure. It is ideal for RAG pipelines, hybrid search post-processing, and relevance filtering where you want best-first ordering before feeding context to an LLM. Prefer it over embedding-based similarity when you want a dedicated reranking model optimized for query-document relevance rather than general similarity.

## Known failure modes

- More than 100 documents submitted — returns validation error
- Empty documents array — returns 400 bad request
- Query string exceeds 2000 characters — rejected
- Individual document text missing 'text' field when using object format — schema validation error
- Service unavailable or payment failure — 402 or 5xx response

## How this service works

Text Moderation rerank: Semantic reranking: score up to 100 documents against a query and return them best-first (RAG, search, dedupe).

## Output

Returns the input documents reordered from most to least semantically relevant to the query, each with a relevance score. If top_k is specified, only the top-k documents are returned. Documents can include their original id field for downstream reference.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "maxLength": 2000,
   "minLength": 1,
   "description": "The search query"
  },
  "top_k": {
   "type": "integer",
   "maximum": 100,
   "minimum": 1,
   "description": "Return only the best top_k documents (default all)"
  },
  "documents": {
   "type": "array",
   "items": {
    "oneOf": [
     {
      "type": "string"
     },
     {
      "type": "object",
      "required": [
       "text"
      ],
      "properties": {
       "id": {
        "type": [
         "string",
         "number"
        ]
       },
       "text": {
        "type": "string"
       }
      }
     }
    ]
   },
   "maxItems": 100,
   "minItems": 1,
   "description": "1 to 100 documents as strings or {id, text} objects"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nojunk-moderate-rerank-4dc409cd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nojunk-moderate.mick8511.workers.dev](https://www.zero.xyz/host/nojunk-moderate.mick8511.workers.dev/llms.txt)
