# GlianaAI Rerank

> GlianaAI Rerank is a paid API for AI agents from api.glianalabs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-17).

Reranks a list of documents or passages by relevance to a query using AI-powered scoring

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/tools/rerank?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-rerank-a1d6f71d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Tk-zpBX7xArvvjvrzyzL2

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 glianaai-rerank-a1d6f71d
```

Example prompt: Rerank these 10 retrieved passages by how relevant they are to the query 'what are the side effects of ibuprofen?' and return them sorted with relevance scores.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call reranking step in a RAG or search pipeline without managing your own cross-encoder infrastructure. Prefer it when you want no-signup USDC micropayment billing and access to multiple underlying reranker models through a single API. It is especially suitable for agents that need to dynamically improve retrieval quality on-the-fly.

## Known failure modes

- Empty or missing query causes undefined ranking behavior
- Malformed body type (must be json, form-data, or text) returns 400
- Exceeding document count limits may cause truncation or error
- Payment failure (insufficient USDC balance) returns 402
- Rate limiting if too many concurrent requests

## How this service works

One endpoint for 90+ generative AI models, live market data, SEC filings and identity APIs — image, video, music, speech, LLM chat, crypto and FX rates, DEX liquidity, gas, US company fundamentals and insider trades, document OCR and face matching. Pay per request in USDC on Tempo, Base, Solana, Algorand or BNB Chain with no signup, or top up a prepaid balance in rupiah.

## Output

Returns the input documents reordered by relevance score, with each document assigned a numerical relevance/confidence score relative to the query. The response is JSON with the tool identifier and reranked list.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tool": "tools/rerank"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glianaai-rerank-a1d6f71d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.glianalabs.com](https://www.zero.xyz/host/api.glianalabs.com/llms.txt)
