Api Endpoint

quickbuild.quynguyenbac.workers.dev

Cohere/Jina-style rerank: POST {query, documents: string[] | {text}[], top_n, return_documents} and get {results: [{index, relevance_score, document?}]} sorted by relevance. Models (Cloudflare Workers AI): bge-reranker-base (cross-encoder, English/Chinese, scores 0..1); bge-m3 (multilingual similarity scoring) (default bge-reranker-base; other names map to it). Up to 100 documents, each scored on its first 4000 chars; one fixed price per call. Use after vector search to pick the best...

Open interactive test console

Offering

Provider
quickbuild.quynguyenbac.workers.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://quickbuild.quynguyenbac.workers.dev/v1/rerank
MIME type
application/json
First seen
2026-10-23T22:46:33.373Z
Last seen
Tags
rerank, RAG, Search, relevance, AI

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.002 USDC
Atomic price: 2000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "2000",
    "payTo": "0x751a4c3841bE287544C371B4EE09Bd3366AeA7cf"
  }
]

Observed health

Status
Healthy
Latest latency
506 ms
Average latency
425 ms
HTTP status
402
Last checked
Reachability
100% over 16 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "query": {
          "type": "string",
          "description": "Search query (max 2000 chars). Optional with documents omitted: a sample is ranked."
        },
        "documents": {
          "type": "array",
          "items": {
            "type": [
              "string",
              "object"
            ]
          },
          "description": "Documents to rank: strings or {text} objects (max 100)."
        },
        "top_n": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100,
          "description": "Return only the best N (default all)."
        },
        "return_documents": {
          "type": "boolean",
          "description": "Include the document text in each result (default false)."
        },
        "model": {
          "type": "string",
          "enum": [
            "bge-reranker-base",
            "bge-m3"
          ],
          "description": "Rerank model (default bge-reranker-base)."
        }
      },
      "required": []
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "model": {
          "type": "string"
        },
        "results": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "index": {
                "type": "integer"
              },
              "relevance_score": {
                "type": "number"
              },
              "document": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "truncatedDocuments": {
          "type": "boolean"
        },
        "usage": {
          "type": "object"
        }
      }
    }
  },
  "required": [
    "type"
  ]
}