v13

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-08-0148123138.3 KB
Rerank

Create Rerank

post/v1/rerank

Request body

querystring required

The search query to use for the reranking. query and prompt cannot both be provided.

documentsstring[] required
modelstring required

The model to use for the reranking, call /v1/models endpoint to get the list of available models, only text-classification model type is supported.

top_ninteger nullable

The number of top results to return. If set to None, all results will be returned.

Response

Successful Response

object'list'
idstring required

A unique identifier for the request.

modelstring required

The model used to generate the reranking.