Rerank model
Qwen3 Reranker 8B
qwen/qwen3-reranker-8b
qwen/qwen3-reranker-8b is a reranking model from Qwen you can call on the OceanToken API.
Price card, similar models and questions answered: Qwen3 Reranker 8B on oceantoken.ai.
At a glance
| Model ID | qwen/qwen3-reranker-8b |
|---|---|
| Type | Rerank |
| Publisher | Qwen |
| Price | On oceantoken.ai |
| Endpoint | /v1/rerank |
| API shape | Cohere rerank |
| In the catalog since | 2026-08-13 |
API
POST /v1/rerank. Base URL https://api.oceantoken.ai, your OceanToken key as the bearer token. The OpenAI SDKs work unchanged; see the Quickstart.
Download this spec (JSON) · llms.txt for AI assistants
Basic
- curl
- Python
- JavaScript
curl https://api.oceantoken.ai/v1/rerank \
-H "Authorization: Bearer $OCEANTOKEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen/qwen3-reranker-8b",
"query": "capital of France",
"documents": [
"Berlin is in Germany.",
"Paris is the capital of France."
]
}'
import os
import requests
result = requests.post(
"https://api.oceantoken.ai/v1/rerank",
headers={"Authorization": f"Bearer {os.environ['OCEANTOKEN_API_KEY']}"},
json={
"model": "qwen/qwen3-reranker-8b",
"query": "capital of France",
"documents": ["Berlin is in Germany.", "Paris is the capital of France."],
},
).json()
print(result["results"])
const result = await (await fetch('https://api.oceantoken.ai/v1/rerank', {
method: 'POST',
headers: {Authorization: `Bearer ${process.env.OCEANTOKEN_API_KEY}`, 'Content-Type': 'application/json'},
body: JSON.stringify({
"model": "qwen/qwen3-reranker-8b",
"query": "capital of France",
"documents": [
"Berlin is in Germany.",
"Paris is the capital of France."
]
}),
})).json();
console.log(result.results);
Request parameters
Only what this model takes. Anything else in the request is left out before it reaches the model.
| Parameter | Type | Description |
|---|---|---|
modelrequired | string | This model's ID. |
queryrequired | string | What to rank against. |
documentsrequired | array | The texts to rank. |
top_n | integer 1 or more | Return only the best N. |
Response
| Field | Type | Description |
|---|---|---|
results[].index | integer | Position in documents. |
results[].relevance_score | number | Higher is more relevant. |
Example response
{
"results": [
{
"index": 1,
"relevance_score": 0.92
},
{
"index": 0,
"relevance_score": 0.11
}
]
}
More examples and how errors and billing work: Embeddings and rerank.
Compared with similar models
Rerank models on OceanToken in the same price range as qwen/qwen3-reranker-8b. Compare their prices on oceantoken.ai.
| Model | Publisher | Context |
|---|---|---|
Qwen3 Reranker 8Bqwen/qwen3-reranker-8b | Qwen | — |
Rerank 2.5voyageai/rerank-2.5 | Voyage AI | — |
Rerank 2.5 Litevoyageai/rerank-2.5-lite | Voyage AI | — |
More from Qwen
- Qwen Audio 3.0 TTS Flash
qwen/qwen-audio-3.0-tts-flash - Qwen Audio 3.0 TTS Plus
qwen/qwen-audio-3.0-tts-plus - Qwen Image 3
qwen/qwen-image-3 - Qwen Image 3 Pro
qwen/qwen-image-3-pro - Qwen Plus
qwen/qwen-plus - Qwen3 235B A22B 2507
qwen/qwen3-235b-a22b-2507 - Qwen3 30B A3B Instruct 2507
qwen/qwen3-30b-a3b-instruct-2507 - Qwen3 32B
qwen/qwen3-32b
Use it
Create an account Price on oceantoken.ai
The facts on this page were read from the live OceanToken catalog on 2026-12-02 (UTC), when the documentation was built. Prices are published on oceantoken.ai.