
Semantic document reranker. Sorts up to 500 candidates per query by relevance, supports 100+ languages, and accepts a custom sorting instruction.
Semantic document reranker. Sorts up to 500 candidates per query by relevance, supports 100+ languages, and accepts a custom sorting instruction.
Also known as Alibaba Cloud Qwen3 Rerank
qwen3-rerank/v1/reranksLive pay-as-you-go rates from the EmpirioLabs catalog. You are billed only for what you use, with no monthly minimum.
Qwen3 Rerank ranks candidate documents against a query through POST /v1/reranks with the model id qwen3-rerank. Get an API key from the EmpirioLabs dashboard.
curl https://api.empiriolabs.ai/v1/reranks \
-H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3-rerank",
"query": "How do I rotate an API key?",
"documents": ["Rotate keys from the dashboard.", "Billing is pay as you go."]
}'import requests
response = requests.post(
"https://api.empiriolabs.ai/v1/reranks",
headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
json={
"model": "qwen3-rerank",
"query": "How do I rotate an API key?",
"documents": ["Rotate keys from the dashboard.", "Billing is pay as you go."],
},
)
print(response.json())Request parameters supported by the Qwen3 Rerank API on EmpirioLabs. Defaults apply when a field is omitted.
| Parameter | Type | Default | Range / values | Description |
|---|---|---|---|---|
| query | string | - | - | Query text to rank documents against. Max 4,000 tokens. |
| documents | array | - | - | Candidate documents to sort (strings). Max 500 items, each up to 4,000 tokens. |
| top_n | number | 10 | 1 to 500 | Number of top-ranked documents to return. Defaults to all. |
| instruct | string | Given a web search query, retrieve relevant passages that answer the query. | - | Custom English instruction. Use "Retrieve semantically similar text." for similarity sorting. |
| return_documents | boolean | false | - | When true, return the original document text alongside each result. |
On EmpirioLabs, Qwen3 Rerank is billed pay as you go: Input $0.10 per 1M prompt tokens. The live rate card on this page always matches what the API charges.
Qwen3 Rerank supports a 4K-token context window.
Qwen3 Rerank is served through POST /v1/reranks on api.empiriolabs.ai with standard bearer-token authentication.
Yes. The EmpirioLabs playground runs Qwen3 Rerank in the browser with the same parameters the API exposes, so you can test prompts before writing code.
Create an EmpirioLabs account, then generate a key under API Keys in the dashboard. Billing is pay-as-you-go credits, so you only pay for the requests you make.
Check out our pricing or reach out if you want your own model deployed on our stack.