Skip to main content
POST

Headers

string
required
Bearer token authentication. Format: Authorization: Bearer sk-xxxxxx

Body

Format: application/json
string
required
Model ID.
string
required
Query text.
(string | object)[]
required
List of documents to rerank.
integer
Return the top N results.
boolean
default:"false"
Whether to return the original document content in the results.

Response

200 Successfully reranked

Format: application/json
string
Rerank task ID.
object[]
List of reranking results.
object
Metadata.
Last modified on October 28, 2026