Qwen-Rerank
Copy success!
Overview
A text-ranking model trained on the Qwen LLM foundation performs relevance ranking for input queries and candidate documents. It supports over 100 languages and long-text inputs, and is suitable for applications such as text retrieval and RAG. Its performance is aligned with the open-source Qwen3-Rerank series models.
Input
Text
Output
Text
Features
Prefix Completion
Enable Partial Mode when calling the Qwen API to make the model continue strictly from your provided prefix text.View docsFunction Calling
Use function calling to connect large language models with external tools and systems.View docsCache
Context Cache stores shared prefixes for long-context requests to reduce repeated computation, improve latency, and lower cost.View docsStructured Outputs
Structured Outputs help ensure the model returns a JSON string in the expected format.View docsPricing
- Text Input$0.1Per 1M tokens
Rate Limits & Context
- Max Input32K
- Context32K
- TPMTokens Per Minute5B
- RPMRequests Per Minute5K
API Reference
Call APICopy success!
1234567891011121314
curl --location 'https://dashscope-intl.aliyuncs.com/api/v1/services/rerank/text-rerank/text-rerank' \
--header "Authorization: Bearer $DASHSCOPE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"model": "qwen3-rerank",
"query": "What is a text rerank model",
"documents": [
"Text rerank models are widely used in search engines and recommendation systems. They sort candidate texts based on text relevance",
"Quantum computing is a cutting-edge field in computer science",
"The development of pre-trained language models has brought new progress to text rerank models"
],
"top_n": 5,
"return_documents": true
}'