Rerank API (Jina-compatible format)
Introduction
The rerank endpoint sorts a list of documents by relevance to a query and assigns each a relevance score. It uses the Jina AI rerank request format. Available models: qwen3-reranker-8b, qwen3-reranker-4b, and qwen3-reranker-0.6b, all multilingual.
Basic Rerank Request:
curl https://beeroute.ai/v1/rerank \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d '{
"model": "qwen3-reranker-8b",
"query": "Organic skincare products for sensitive skin",
"top_n": 3,
"documents": [
"Organic skincare for sensitive skin with aloe vera and chamomile...",
"New makeup trends focus on bold colors and innovative techniques...",
"Bio-Hautpflege für empfindliche Haut mit Aloe Vera und Kamille..."
]
}'
Example Response:
{
"results": [
{
"document": {
"text": "Organic skincare for sensitive skin with aloe vera and chamomile..."
},
"index": 0,
"relevance_score": 0.8783142566680908
},
{
"document": {
"text": "Bio-Hautpflege für empfindliche Haut mit Aloe Vera und Kamille..."
},
"index": 2,
"relevance_score": 0.7624675869941711
}
],
"usage": {
"prompt_tokens": 815,
"completion_tokens": 0,
"total_tokens": 815
}
}
Last updated 2026-11-29 · Markdown source · llms.txt