Skip to main content
Document Reranking
Rank supplied documents by relevance to a query. This endpoint returns scores and original document indexes, not generated answers.

Models

Request Fields

Request Example

Response

Read results[].index and results[].relevance_score. The index refers to the original input array; do not assume a document object is present. Scores are ranking signals, not calibrated probabilities.

Usage and billing

Use usage.prompt_tokens and usage.total_tokens for the reported token usage. Reranking does not generate answer text, so usage.completion_tokens can be 0. Other generic token fields are not a substitute for these fields. Prices and available routes are listed in the Model Marketplace. The console Usage Logs show the charge for each request; use those records for billing reconciliation rather than treating the usage object as a dollar amount.