A rerank model scores a list of documents against a query and returns them ordered by relevance. It is the second stage of a retrieval pipeline: a vector search brings back a few dozen candidates, the reranker reads each one against the question and keeps the best. The endpoint is available over the REST API. The documents to score travel as input:
The answer lists the documents by decreasing relevance, each with its position in input and its score, so the caller maps the result back to its own records.

With the Python library

The library has no rerank resource yet; call the endpoint with the client’s transport, which carries your credentials:

Choosing a model

client.models.list() returns every inference model you can call, rerank models included. Model ids are stable; the catalog of available models evolves with the platform.