Qwen3 Reranker 8B
Qwen3 Reranker 8B ranks supplied text documents against a search query. Send qwen/qwen3-reranker-8b to the Rerank endpoint with the query and candidate passages, then use the returned relevance scores and original document indices to select material for search results, a knowledge-base answer or a retrieval workflow.
About the model
This description covers the model’s capabilities. Available in Ailoot inputs, outputs and options are listed for the selected method below.
Qwen3 Reranker 8B is a text reranking model available under the exact ID qwen/qwen3-reranker-8b. It takes a query and a collection of candidate documents and returns a relevance ranking. A practical place for it is between an initial search and the application that consumes the selected passages: retrieve possible matches first, rerank those matches against the actual question, and pass the chosen source text to the next step.
Send POST /v1/rerank with a JSON body containing model, query and documents. Set model to qwen/qwen3-reranker-8b, supply the search question as a string, and put the candidate passages in a nonempty array of text strings. Preserve the input array order and your own document identifiers alongside it, because the returned index identifies a document by its original position. Include the material that determines relevance, such as a product name, policy condition or technical passage, in the text supplied for that candidate.
The optional top_n parameter is an integer with a minimum of 1 and selects how many of the most relevant documents to return. For a support search, the query could be a customer’s exact question and the documents could be candidate help-centre sections. For an internal knowledge base, use the question together with passages that retain their section titles and enough surrounding text to explain each result. Choose a result count that fits the downstream answer or search display.
The published model profile lists a context length of 40,960 tokens. Account for the query and supplied document text when preparing the request, and select the passages that are useful for the question. Reranking produces scores and source selections; use the selected document text when another step needs to compose an answer or quotation.
The operation returns a complete JSON response. Read results in their returned relevance order, retain each result’s index, relevance_score and returned document content, and keep the response model, identifier and usage fields when present. Map indices back to your original documents before presenting a source or assembling an answer. Save the original response and request identity if delivery is interrupted so the existing result can be investigated without submitting the same uncertain operation again.
Ailoot Ultra · Rerank POST /v1/rerank qwen/qwen3-reranker-8b
qwen/qwen3-reranker-8bOverview
Qwen3 Reranker 8B ranks supplied text documents against a search query. Send qwen/qwen3-reranker-8b to the Rerank endpoint with the query and candidate passages, then use the returned relevance scores and original document indices to select material for search results, a knowledge-base answer or a retrieval workflow.
- Accepted inputs
- Text
- Results
- ranking
Available in Ailoot · inputs & methods
Ailoot Ultra · Rerank POST /v1/rerank
- Input types
text- Output types
ranking- Output format
- JSON
| Field | Type | Requirement | Values & limits | Default |
|---|---|---|---|---|
Fieldmodel | Typestring | RequirementRequired | Values & limits qwen/qwen3-reranker-8b | Default— |
Fieldquery | Typestring | RequirementRequired | Values & limits | Default— |
Fielddocuments | Typearray | RequirementRequired | Values & limits | Default— |
Fieldtop_n | Typeinteger | RequirementOptional | Values & limits Minimum: 1 | Default— |
Method parameters and lifecycle
| Parameter | Contract |
|---|---|
Parametercontent_type | Contractapplication/json |
Parameterrequired | Contractmodel, query, documents |
Parameteroptional | Contracttop_n |
Parametermaterial_types | Contracttext |
Parameterconditions | Contract |
Lifecycle: synchronous_json
Pricing
Tariff references do not add request options. Supported parameters are listed for the selected method.
- Fast mode
- Not specified When fast mode is selected
- Flex mode
- Not specified When flex mode is selected
- Maximum reasoning effort
- Not specified When maximum reasoning effort uses the default adjustment
Ailoot rates
Prices by configuration
Match each charge to the conditions shown. Use one rate for each set of alternative configurations.
| Configuration | Rate schedule | Billing unit | Charge |
|---|---|---|---|
| ConfigurationBase token rates | Rate scheduleBase rate | Billing unit— | Charge Input · Input tokens — / 1K tokens Output · Output tokens — / 1K tokens Input · Cache read — / 1K tokens Input · Cache write — / 1K tokens Input · Cache write, 1 hour — / 1K tokens |
| Configurationinput token | Rate schedule— | Billing unit/ 1K tokens | Charge Input · input token $0.0004 / 1K tokens |
Ailoot reserves an estimated amount before a request. After the result, it settles the final charge from measured usage. Streaming settlement uses the final usage record. How reservation and settlement work →
Example requests
Ailoot Ultra · Rerank
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
export AILOOT_API_KEY
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p=json.loads('{"documents": ["Paris is the capital of France.", "Berlin is the capital of Germany."], "model": "qwen/qwen3-reranker-8b", "query": "What is the capital of France?", "top_n": 3}')
Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/rerank \
-H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
--data-binary @request.json -D response-headers.txt -o result.json
# Submit once. Retain the complete result, original identifiers and every response header.
Receive and save results
Ailoot Ultra · Rerank
JSON
Keep all completed results
Keep every complete returned response, file and content part.
Retain the complete response, all actual results, original identifiers, usage and response headers.
If the original response needs checking
Preserve the original response, headers and X-Client-Request-ID. An uncertain outcome does not authorize another creation.
Response fields
| Field | Type |
|---|---|
Fieldresults | Typearray |
Aliases
Model aliases
Ailoot Ultra qwen/qwen3-reranker-8b
Method path aliases
Use the method paths shown above.
Related caller IDs
FAQ · Qwen3 Reranker 8B
- What inputs and results are available?
POST /v1/rerank·qwen/qwen3-reranker-8b:text→ranking- Which fields does the request use?
POST /v1/rerank·qwen/qwen3-reranker-8b:model,query,documents,top_n- What limits apply?
POST /v1/rerank·qwen/qwen3-reranker-8b:top_n.minimum:1