Rerank model
Rerank 4 Fast
cohere/rerank-4-fast
cohere/rerank-4-fast is a reranking model from Cohere you can call on the OceanToken API.
Price card, similar models and questions answered: Rerank 4 Fast on oceantoken.ai.
At a glance
| Model ID | cohere/rerank-4-fast |
|---|---|
| Type | Rerank |
| Publisher | Cohere |
| Price | On oceantoken.ai |
| Endpoint | /v1/rerank |
| API shape | Cohere rerank |
| In the catalog since | 2026-04-06 |
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": "cohere/rerank-4-fast",
"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": "cohere/rerank-4-fast",
"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": "cohere/rerank-4-fast",
"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 cohere/rerank-4-fast. Compare their prices on oceantoken.ai.
| Model | Publisher | Context |
|---|---|---|
Rerank 4 Fastcohere/rerank-4-fast | Cohere | — |
Rerank V3.5cohere/rerank-v3.5 | Cohere | — |
Rerank 4 Procohere/rerank-4-pro | Cohere | — |
More from Cohere
- Command A
cohere/command-a - Command A Plus
cohere/command-a-plus - Rerank 4 Pro
cohere/rerank-4-pro - Rerank V3.5
cohere/rerank-v3.5
All Cohere models on OceanToken
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.