Skip to main content
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.
Model name: 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

How to choose: if you have 50–100 candidates, a budget constraint and a simple matching task, 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

The official list price for 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.
Model prices can change with the official price list. The table above is APIYI’s list price; after recharge bonuses the effective price is about 83–91% of list. The Model Pricing tab in the top navigation is authoritative: Model Pricing.
Cost intuition: 100 candidates (about 3,000 tokens) cost roughly $0.00024. A million such searches cost about $240. Reranking is almost never the cost bottleneck in a RAG system — latency and candidate quality are. Usage semantics (measured):
  • prompt_tokens = the query (counted once) plus every candidate document; total_tokens equals it
  • input_tokens / output_tokens are always 0 on this channel — don’t use them
  • top_n and return_documents do 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

Response with return_documents: true:
index is the field that matters. It is the document’s original position in the documents array you sent — use it to look up your own document object (ID, URL, metadata), not the returned text. When return_documents is omitted or false, the response contains no document, which keeps response bodies small.

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): There is an order-of-magnitude gap between relevant and irrelevant documents, so a threshold like 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?”): The two negated documents land below all three genuinely relevant ones. bge, in the same test, puts them in the top three with nDCG@3 0.47. This is one of the most valuable differences between the two models. Cross-lingual scores no longer collapse either:

Known issues

The upstream model supports 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.
  • Omitted top_n → return everything
  • top_n: 0 → treated as omitted, return everything
  • top_n: -1 → upstream returns 400 (parameter top_n should be larger than 0)
  • top_n: "2" → 400 (must be an integer)
bge returns everything for both 0 and negative values. The two models are not identical here — check your migration.
A single 60K-character Chinese document returns 400 with 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.
[{"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

Budget first, 50–100 candidates, simple matching → 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.
The parameter names (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.
That is the normal behavior for qwen3.7: 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.
The upstream quota is RPM 3,000 / TPM 9,000,000. We measured 10/10 at 10 concurrent and 20/20 at 20 concurrent, with the slowest request around 7 seconds. That is two orders of magnitude more headroom than bge’s TPM 20,000 / 4–5 concurrent, but it is still a shared resource: keep production concurrency around 20–50 and retain exponential backoff.
Billing follows the upstream 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.