Rerank documents

post/rerank

Request

  • Base URL: https://www.ninjachat.ai/api/v1
  • URL: https://www.ninjachat.ai/api/v1/rerank
  • Auth: HTTP bearer

Headers

Idempotency-Keystring

Safely retry the same logical write without duplicate billing or execution.

Request body

model'rerank-2.5' | 'rerank-2.5-lite' required
querystring required
documentsstring[] required
top_ninteger
return_documentsboolean
truncationboolean

Response

Document relevance and metered usage.

modelstring required
providerstring required
cost_usdnumber required
request_idstring required

Changes

No recorded changes to this operation across all 1 revision of this API.