Skip to main content

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 IDcohere/rerank-4-fast
TypeRerank
PublisherCohere
PriceOn oceantoken.ai
Endpoint/v1/rerank
API shapeCohere rerank
In the catalog since2026-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 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."
]
}'

Request parameters

Only what this model takes. Anything else in the request is left out before it reaches the model.

ParameterTypeDescription
model
required
stringThis model's ID.
query
required
stringWhat to rank against.
documents
required
arrayThe texts to rank.
top_ninteger
1 or more
Return only the best N.

Response

FieldTypeDescription
results[].indexintegerPosition in documents.
results[].relevance_scorenumberHigher 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.

ModelPublisherContext
Rerank 4 Fast
cohere/rerank-4-fast
Cohere—
Rerank V3.5
cohere/rerank-v3.5
Cohere—
Rerank 4 Pro
cohere/rerank-4-pro
Cohere—

More from Cohere

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.