Back to models
Qwen3-VL-Reranker-2B
Alibaba Qwen's compact 2B multimodal cross-encoder reranker supporting 32K context across 30+ languages, scoring relevance across mixed text, image, document, and video query-candidate pairs.
What you can do
- Second-stage multimodal RAG reranking
- Visually rich document QA refinement
- Image-text and video candidate matching
Input & output
- Input
- Query and candidate document pairs containing text, images, or video frames (up to 32K context)
- Output
- Calibrated cross-modal relevance scores for candidate ranking
Example input
Query: Q3 operating margin breakdown chart by region | Candidates: [slide_04.png, slide_11.png, appendix_notes.txt]
Things to know
Apache 2.0 licensed and runs in ~5GB VRAM in BF16; cross-encoder scoring processes pairs sequentially/batched, so apply it to top-50/100 vector recall candidates rather than full corpora.
All listed models publish open weights for self-hosted deployment; check each repository's license before commercial use.
Call it through the API
The platform exposes an OpenAI-compatible API. Use an official SDK or any HTTP client, then set the gateway URL, API key, and model ID.
- Endpoint
POST/v1/rerank- Model repo ID
Qwen/Qwen3-VL-Reranker-2B
import os
import requests
response = requests.post(
f"{os.environ['API_BASE_URL']}/rerank",
headers={"Authorization": f"Bearer {os.environ['API_KEY']}"},
json={
"model": "Qwen/Qwen3-VL-Reranker-2B",
"query": "Query: Q3 operating margin breakdown chart by region | Candidates: [slide_04.png, slide_11.png, appendix_notes.txt]",
"documents": ["Document A","Document B","Document C"],
},
timeout=30,
)
print(response.json())Before running a sample, set the API_BASE_URL (gateway URL) and API_KEY environment variables.
Read the full API guide