For coding agents, discover the current recommended rerank shortlist first with
GET /v1/models?recommended_for=rerank, then send the selected model explicitly to this endpoint.Request Body
ID of the reranker model to use (e.g.,
BAAI/bge-reranker-v2-m3, qwen3-rerank).The query to rank documents against.
List of documents (strings) to rerank.
Number of top results to return. Defaults to all documents.
Whether to include original document text in response.
Response
Ranked list of documents with scores.Each result contains:
index(integer): Original document indexrelevance_score(number): Relevance score (0-1)document(string): Original text (ifreturn_documents=true)
The model used for reranking.
Token usage statistics.