models

Qwen3 Reranker 8B

Markdown · JSON

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-8b

Alibaba Cloud /qwen/qwen3-reranker-8b

Overview

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
FieldTypeRequirementValues & limitsDefault
FieldmodelTypestringRequirementRequiredValues & limits
qwen/qwen3-reranker-8b
Default—
FieldqueryTypestringRequirementRequiredValues & limitsDefault—
FielddocumentsTypearrayRequirementRequiredValues & limitsDefault—
Fieldtop_nTypeintegerRequirementOptionalValues & limits
Minimum: 1
Default—
Method parameters and lifecycle
ParameterContract
Parametercontent_typeContractapplication/json
ParameterrequiredContractmodel, query, documents
ParameteroptionalContracttop_n
Parametermaterial_typesContracttext
ParameterconditionsContract

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.

ConfigurationRate scheduleBilling unitCharge
ConfigurationBase token ratesRate scheduleBase rateBilling 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 tokenRate schedule—Billing unit/ 1K tokensCharge
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

curl · create once and retain the complete result
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
FieldType
FieldresultsTypearray

Aliases

Model aliases

Ailoot Ultra qwen/qwen3-reranker-8b

Method path aliases

Use the method paths shown above.

Related caller IDs

qwen/qwen3-reranker-8b

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

More details

Connect Ailoot to Claude Code, OpenCode, Hermes or your own app.

The company and its project portfolio

The company and its project portfolio: millions of customers; monthly sales in the billions.

Buy tokens at a discount.

Subscription discounts for regular use. Promo codes offer up to 50% off token purchases.

Subscription
Choose a discounted plan for your regular requests.
Promo code: up to 50% off
Enter your code at checkout. The price updates to reflect the current promotion.
Spending in your history
The model, tokens and amount are recorded for each request.

Choose a subscription · View model prices

Connect the API to a product you sell.

Use Ailoot in SaaS, apps and bots under its official service offer and licence agreement. Request a reseller licence for resale.

Commercial application
Add text, image, video and audio generation to paid features in your service.
Reseller licence
Send a description of your project and how you provide access. Request written terms for use and resale.
Documents on the website
The service offer, licence agreement and data processing policy are available before you connect.

Request a reseller licence · Service offer and licence agreement