基于Qwen LLM底座训练的文本排序模型,对输入的Query和候选Docs进行相关性排序,支持100+语种和长文本输入,适用于文本检索、RAG等场景,效果对齐开源Qwen3-Rerank系列模型
重排序按文本输入与图片 token 分别计价,单位为人民币 / 百万 token。
| 提供商 | 文本输入 | 上下文长度 | 延迟 | 可用率 | 状态 |
|---|---|---|---|---|---|
dashscope dashscope/qwen3-rerank | ¥0.500 | 30K | — | 0.00% |
import os
import requests
response = requests.post(
"https://api.openroute.cn/v1/rerank",
headers={
"Authorization": f"Bearer {os.environ['ONTOROUTE_API_KEY']}",
"Content-Type": "application/json",
},
json={
"model": "qwen/qwen3-rerank",
"query": "What is the capital of France?",
"documents": [
"Paris is the capital of France.",
"London is the capital of England.",
"Berlin is a city in Germany.",
],
"top_n": 2,
},
)
response.raise_for_status()
print(response.json())暂无调用数据
该模型未公开可调参数。