{
  "x402Version": 2,
  "id": 33870,
  "slug": "33870",
  "resource": "https://x402.agentindex.world/rank",
  "description": "Rank up to 50 documents by relevance to a query in a single call - each document returned with its relevance probability, sorted highest first. Powered by Jev (TypeSafe System One). $0.001 per call, no OpenRouter or TypeSafe account needed. Try GET /rank/sample.",
  "type": "http",
  "serviceName": "document-rerank",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1790530885/bazaar-icons/fde5dd6af2b2b42f.png",
  "resourceType": "Monitoring",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xb3F32bdfe8D07825BC0D7387295aB1D7559BA69d",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "documents": {
            "description": "Input documents, sorted by relevance score descending.",
            "items": {
              "properties": {
                "document": {
                  "type": "string"
                },
                "score": {
                  "description": "Relevance probability, 0-1.",
                  "type": "number"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "x402_receipt": {
            "description": "Billing and provenance receipt for this call.",
            "type": "object"
          }
        },
        "required": [
          "documents"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "documents": [
              "A blog post comparing REST API versioning strategies: URL path, header, and query param versioning.",
              "A recipe for chocolate cake with step-by-step baking instructions.",
              "A guide to RESTful resource naming conventions and correct HTTP verb usage."
            ],
            "query": "best practices for REST API design"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "documents": [
              {
                "document": "A guide to RESTful resource naming conventions and correct HTTP verb usage.",
                "score": 1
              },
              {
                "document": "A blog post comparing REST API versioning strategies: URL path, header, and query param versioning.",
                "score": 0
              },
              {
                "document": "A recipe for chocolate cake with step-by-step baking instructions.",
                "score": 0
              }
            ],
            "x402_receipt": {
              "latency_ms": 405,
              "model_served": "jev",
              "price_paid_usdc": 0,
              "upstream": "rerank"
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "documents": {
                    "description": "Up to 50 documents to rank by relevance to the query. Each truncated to 2000 characters before scoring.",
                    "items": {
                      "type": "string"
                    },
                    "maxItems": 50,
                    "minItems": 1,
                    "type": "array"
                  },
                  "query": {
                    "description": "The query to rank documents against.",
                    "type": "string"
                  }
                },
                "required": [
                  "query",
                  "documents"
                ]
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "documents": {
                    "description": "Input documents, sorted by relevance score descending.",
                    "items": {
                      "properties": {
                        "document": {
                          "type": "string"
                        },
                        "score": {
                          "description": "Relevance probability, 0-1.",
                          "type": "number"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "x402_receipt": {
                    "description": "Billing and provenance receipt for this call.",
                    "type": "object"
                  }
                },
                "required": [
                  "documents"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "rerank",
    "bazaar"
  ],
  "sourceHost": "x402.agentindex.world",
  "lastUpdated": "2026-10-08T06:08:21.555Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T06:08:21.348Z"
  },
  "metadata": {
    "serviceName": "document-rerank",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1790530885/bazaar-icons/fde5dd6af2b2b42f.png",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "documents": [
                "A blog post comparing REST API versioning strategies: URL path, header, and query param versioning.",
                "A recipe for chocolate cake with step-by-step baking instructions.",
                "A guide to RESTful resource naming conventions and correct HTTP verb usage."
              ],
              "query": "best practices for REST API design"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "documents": [
                {
                  "document": "A guide to RESTful resource naming conventions and correct HTTP verb usage.",
                  "score": 1
                },
                {
                  "document": "A blog post comparing REST API versioning strategies: URL path, header, and query param versioning.",
                  "score": 0
                },
                {
                  "document": "A recipe for chocolate cake with step-by-step baking instructions.",
                  "score": 0
                }
              ],
              "x402_receipt": {
                "latency_ms": 405,
                "model_served": "jev",
                "price_paid_usdc": 0,
                "upstream": "rerank"
              }
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "documents": {
                      "description": "Up to 50 documents to rank by relevance to the query. Each truncated to 2000 characters before scoring.",
                      "items": {
                        "type": "string"
                      },
                      "maxItems": 50,
                      "minItems": 1,
                      "type": "array"
                    },
                    "query": {
                      "description": "The query to rank documents against.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "query",
                    "documents"
                  ]
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "documents": {
                      "description": "Input documents, sorted by relevance score descending.",
                      "items": {
                        "properties": {
                          "document": {
                            "type": "string"
                          },
                          "score": {
                            "description": "Relevance probability, 0-1.",
                            "type": "number"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "x402_receipt": {
                      "description": "Billing and provenance receipt for this call.",
                      "type": "object"
                    }
                  },
                  "required": [
                    "documents"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402.agentindex.world",
    "manifest_name": "x402.agentindex.world",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "documents": [
        {
          "document": "string",
          "score": 0
        }
      ],
      "x402_receipt": {}
    },
    "type": "string"
  }
}