Models/qwen3-rerank
Model Code
qwen3-rerank
Try now

Model overview

Embedding model

Qwen3-Rerank is a text ranking model trained on a Qwen LLM base. It ranks candidate documents for a query, supports 100+ languages and long-text input, and is suitable for text retrieval and RAG scenarios.

Company: AlibabaProvider: Alibaba Cloud

Model capabilities

Input modalityTQD
Output modalityTS
Model experience
Function calling-
Structured output-
Web search-
Prefix completion-
Context cache-
Batch inference
Fine-tuning-

Model pricing

Text input$0.07463/1M tokens

Rate limits and context

Maximum input length30K
Context length30K
Maximum output length-
RPM5400
TPM5000000000

API reference

EndpointPOST /v1/rerank
SDKOpenAI-compatible

API code examples

Get API Key
import os
import requests

response = requests.post(
    "https://api.wlrouter.com/v1/rerank",
    headers={
        "Authorization": f"Bearer {os.environ['WLROUTER_API_KEY']}",
        "Content-Type": "application/json",
    },
    json={
  "model": "qwen3-rerank",
  "query": "What is WLRouter?",
  "documents": [
    "WLRouter is an AI gateway for model APIs.",
    "A router directs network traffic."
  ],
  "top_n": 2,
  "return_documents": True
}
)
response.raise_for_status()
print(response.json())