POST /v1/rerank scores and reorders candidate documents against a query. It is commonly used after vector or keyword retrieval to improve the final context sent to a generation model.
Rerank Documents
results, ordered from highest to lowest relevance. Every result includes its original document index and a relevance_score.
Choosing a Model
Copy the exact rerank model ID from the model registry, including every/-separated part.
You always call the same Planck endpoint with your Planck API key. Some rerank models may require BYOK when their billing usage cannot be verified safely.
Reranking is not part of the OpenAI or Anthropic chat SDK surface. Call the
JSON endpoint directly with
fetch, your HTTP client, or cURL.Billing and Tracking
Rerank requests appear in Requests withPlanck-Operation: rerank, the resolved provider/model identity, duration, billing data when available, and the request and normalized response bodies.
See the Rerank API reference for supported fields and response shape.