qwen3.7-text-rerank is the Qwen3.7 reranking model (a cross-encoder) from Alibaba Cloud Model Studio. It solves the same problem as bge — vector search pulled the right documents back, but the ones at the top aren’t the ones that actually answer the question — while raising the per-request candidate limit to 500 documents, the per-document limit to 30K tokens, and supporting 201 languages. In our 2026-12-05 testing it also handled negation, a known weakness of bge, correctly.
APIYI exposes it on the standard /v1/rerank endpoint with the same key as every other model. For a side-by-side selection guide, see the rerank overview.
qwen3.7-text-rerank (case-sensitive). Endpoint: POST /v1/rerank.
Available in the Default / SVIP / VVIP / Aliyun / ChinaOpenSource groups.
Upstream: Alibaba Cloud Model Studio (official passthrough).
Every number on this page comes from APIYI testing on 2026-12-05 (UTC+8), 40+ test cases.How it differs from bge-reranker-v2-m3
bge-reranker-v2-m3 is enough. If you need long documents, many candidates, multilingual ranking, negation/conditional semantics or higher concurrency, use qwen3.7-text-rerank.
Model information
Pricing
qwen3.7-text-rerank is ¥0.5 / 1M tokens (Beijing), about $0.0714 / 1M at the fixed 1:7 rate. APIYI lists it at $0.08 / 1M; after recharge bonuses the effective price is about 83–91% of list, or $0.066–0.073 / 1M, at or below the official price. See recharge promotions for the current ratios and stacking rules.
prompt_tokens= the query (counted once) plus every candidate document;total_tokensequals itinput_tokens/output_tokensare always 0 on this channel — don’t use themtop_nandreturn_documentsdo not change usage — every candidate is scored either way- Billing follows the upstream
prompt_tokens: 105 tokens billed 5 quota, 2,030 billed 82, 21,280 billed 852 —ceil(tokens × 0.04)
Minimal call
return_documents: true:
Request parameters
Measured capability matrix
How to read the scores
qwen’s scores are much cleaner than bge’s. For the same five candidates (Hangzhou attractions query):0.5 separates this sample cleanly. But scores are still comparable only within one request: don’t apply a fixed threshold across queries, languages or candidate sets. If you need to filter, use a relative threshold (score >= top1_score × 0.3) or take Top-N, and calibrate on your own labelled sample.
Negation comparison (query: “Which attractions are suitable for winter?”):
Known issues
1. instruct is not forwarded today
1. instruct is not forwarded today
instruct, and different instructions change the scores (measured: default QA retrieval vs semantic-similarity retrieval vs a custom strong instruction all differ).
The APIYI gateway does not forward the field today: sending instruct and omitting it produce bit-identical scores.Workaround: rewrite the query or add guidance on the document side; don’t rely on instruct. We have reported the gap to the shell-api maintainers and will update this page when it is fixed.2. top_n=0 and negative values behave differently
2. top_n=0 and negative values behave differently
- Omitted
top_n→ return everything top_n: 0→ treated as omitted, return everythingtop_n: -1→ upstream returns 400 (parameter top_n should be larger than 0)top_n: "2"→ 400 (must be an integer)
0 and negative values. The two models are not identical here — check your migration.3. The 60K-character error message does not match the documented limit
3. The 60K-character error message does not match the documented limit
document index:0 is invalid, it should not be larger than 50000, while the official per-document limit is 30,000 tokens. The two numbers use different units — don’t treat 50,000 as a token budget.
Chunk by 30K tokens per document. For Chinese, roughly 1.5 characters per token, so 45K characters is already near the limit.4. Object documents only accept text / image / video
4. Object documents only accept text / image / video
[{"text": "..."}] scores identically to a string array; {"foo": "..."} returns 400
No valid input found. Please provide exactly one of: "text", "image", or "video".
This model only reranks text; other fields are meaningless.FAQ
qwen3.7-text-rerank or bge-reranker-v2-m3?
qwen3.7-text-rerank or bge-reranker-v2-m3?
bge-reranker-v2-m3 ($0.01/M).
Long documents, many languages, negation/conditional semantics, 500 candidates or high concurrency → qwen3.7-text-rerank ($0.08/M).
See the rerank overview for the full comparison.Can I use the Cohere / Jina SDK directly?
Can I use the Cohere / Jina SDK directly?
query / documents / top_n / return_documents) match Cohere Rerank v1,
but Cohere SDK v2 defaults to /v2/rerank, which returns the site’s HTML homepage instead of JSON — the SDK throws a parse error.
The simplest approach is a thin HTTP call to https://api.apiyi.com/v1/rerank.Why is there no document in the response when return_documents=false?
Why is there no document in the response when return_documents=false?
return_documents defaults to false, so the response contains only index and relevance_score; pass true to echo document.text.
bge behaves the opposite way — it ignores the parameter and always echoes the source text.How much concurrency can I use?
How much concurrency can I use?
Is billing accurate, or does the gateway charge its own token estimate?
Is billing accurate, or does the gateway charge its own token estimate?
prompt_tokens, not a local estimate: 105 tokens billed 5 quota, 2,030 billed 82, 21,280 billed 852 — exactly ceil(tokens × 0.04).
The usage.prompt_tokens in the response is the billing basis, so you can use it for cost accounting.