models

Qwen: Qwen3 Rerank

Markdown · JSON

Qwen: Qwen3 Rerank

Qwen3 Rerank orders candidate text for a supplied query and instruction. The exact qwen3-rerank profile accepts text-document lists and returns indexed relevance scores with usage metadata for retrieval and document-selection workflows.

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 Rerank evaluates candidate text against a supplied query and ranking instruction. The exact configured selector is qwen3-rerank. Its role is ordering the supplied candidates for retrieval and document-selection work; the request keeps the query, instruction and candidate passages together so the relevance judgment can be traced back to its inputs.

Prepare documents as an array of strings, with one candidate passage in each entry. Keep a separate mapping from each array position to your own document identifier, title or source location. This lets the application reconnect a ranked result with the original passage without adding undocumented identifier objects to the string array. For a support search, the candidates might be the relevant sections already retrieved from a product guide; the query should state the user's actual information need.

The documented request requires model, documents, query, top_n and instruct. The query and instruct fields are strings, and top_n is an explicitly supplied integer. The published example uses three candidate texts, top_n=2 and an instruction to retrieve relevant passages that answer a web-search query. Use instruct to state the relation that matters for the ranking, while keeping the actual question in query and the material to evaluate in documents.

The operation guide lists a maximum input length of 30K. Keep the candidate passages focused on the text needed to judge their relevance, retaining headings or nearby context when those change the meaning. Preserve source boundaries so a selected passage can still be checked in its original document. The exact request profile and its required fields remain the basis for preparing the input.

The returned structured result contains results entries with index and relevance_score. The index refers to the candidate's position in the original documents array, rather than its position in the ranked result list. Keep the returned ordering and use each index to recover the corresponding input text. Preserve every returned result so the application can inspect the selected candidates and their scores together.

Retain the complete JSON response, including its model, response id and usage.total_tokens. The returned document text can be absent, so keep the original candidate array available when processing the indices. The relevance scores and reported usage have separate roles: scores describe the ranking result, while usage records the quantity reported for the operation. Neither replaces the source passage that supports a later answer.

For a retrieval workflow, use the ranking to select the passages that the next step should inspect or cite. Compare a selected passage with the query and instruction before presenting its contents as evidence. A high position in a result list identifies a candidate for review; the application's eventual answer should remain connected to the actual text and its source identifier.

Review the result with representative queries and the candidate sets used by the application. Check that indices resolve to the intended original texts, that the ordering serves the supplied instruction and that the chosen passages address the question. Keep the exact selector, query, instruction, candidate mapping and complete response together, producing a reusable relevance-selection record for the next retrieval or document step.

Ailoot Ultra · Rerank POST /v1/rerank qwen3-rerank

qwen3-rerank

Qwen /qwen3-rerank

Overview

Qwen3 Rerank orders candidate text for a supplied query and instruction. The exact qwen3-rerank profile accepts text-document lists and returns indexed relevance scores with usage metadata for retrieval and document-selection workflows.

Accepted inputs
Text
Results
structured

Available in Ailoot · inputs & methods

Ailoot Ultra · Rerank POST /v1/rerank
Input types
text
Output types
structured
Output format
application/json
FieldTypeRequirementValues & limitsDefault
FieldmodelTypestringRequirementRequiredValues & limits
qwen3-rerank
Conditions: Literal model selector.
Default—
FielddocumentsTypearrayRequirementRequiredValues & limits
Conditions: Candidate text passages, kept in their original input order.
Default—
FieldqueryTypestringRequirementRequiredValues & limits
Conditions: Relevance query.
Default—
Fieldtop_nTypeintegerRequirementRequiredValues & limits
Conditions: Requested number of ranked results; no undocumented minimum, maximum or default is asserted.
Default—
FieldinstructTypestringRequirementRequiredValues & limits
Conditions: Instruction describing the retrieval task.
Default—
Input material combinations

Method parameters and lifecycle
ParameterContract
Parametercontent_typeContractapplication/json
ParameterrequiredContractmodel, documents, query, top_n, instruct
ParameteroptionalContract
Parametermaterial_typesContracttext
Parameteradditional_propertiesContracttrue

Lifecycle: synchronous

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
Configurationtotal tokenRate schedule—Billing unit/ 1K tokensCharge
Input · total token $0.00014 / 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

JSON · rerank text
{
  "model": "qwen3-rerank",
  "query": "Which passage discusses text ranking?",
  "documents": [
    "Text ranking orders candidate passages by relevance.",
    "Quantum computing studies computation using quantum systems.",
    "Pretrained language models can improve text ranking."
  ],
  "top_n": 2,
  "instruct": "Given a web search query, retrieve relevant passages that answer the query."
}

Receive and save results

Ailoot Ultra · Rerank

Read indices and relevance scores and map each index back to your original documents. An echoed document can be absent.

If the original response needs checking

Preserve the original response and request id after an ambiguous send; never replay it.

Response fields
FieldTypeMeaning
Fieldresults[].indexTypeintegerMeaningIndex of the corresponding original input document.
Fieldresults[].relevance_scoreTypenumberMeaningReturned relevance score.
FieldmodelTypestringMeaningActual response model.
FieldidTypestringMeaningActual response identifier.
Fieldusage.total_tokensTypeintegerMeaningMeasured total tokens used for billing.
Errors and next steps
ResponseConditionNext step
Response400 · invalid_request_errorConditionInvalid JSON or required model selection.Next stepCorrect the indicated input before a new request.
Response401 · authentication_errorConditionInvalid API key.Next stepUse your valid Ailoot API key.
Response503 · price_unavailableConditionStructured method pricing or admission is unavailable.Next stepPreserve the original response; do not replay an ambiguous send.

Aliases

Model aliases

Ailoot Ultra qwen3-rerank

Method path aliases

Use the method paths shown above.

Related caller IDs

qwen3-rerank

FAQ · Qwen: Qwen3 Rerank
What inputs and results are available?

POST /v1/rerank · qwen3-rerank: text → structured

Which fields does the request use?

POST /v1/rerank · qwen3-rerank: model, documents, query, top_n, instruct

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