Skip to main content
POST
/
rerank
Create Rerank
curl --request POST \
  --url https://api.siliconflow.com/v1/rerank \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "Qwen/Qwen3-Reranker-8B",
  "query": "Apple",
  "documents": [
    "apple",
    "banana",
    "fruit",
    "vegetable"
  ]
}'
{
  "id": "<string>",
  "results": [
    {
      "document": {
        "text": "<string>"
      },
      "index": 123,
      "relevance_score": 123
    }
  ],
  "tokens": {
    "input_tokens": 123,
    "output_tokens": 123
  }
}

Authorizations

Authorization
string
header
required

Body

application/json
model
enum<string>
default:Qwen/Qwen3-Reranker-8B
required
Available options:
Qwen/Qwen3-Reranker-8B,
Qwen/Qwen3-Reranker-4B,
Qwen/Qwen3-Reranker-0.6B
Example:
query
string
required
Example:
documents
string[]
required
Minimum length: 1
Example:
top_n
integer
Example:
return_documents
boolean
max_chunks_per_doc
integer
overlap_tokens
integer
Required range: x <= 80

Response

id
string
required
results
object[]
required
tokens
object
required