> ## Documentation Index
> Fetch the complete documentation index at: https://mixroute.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Rerank v4.0 Pro

> Cohere quality-focused multilingual relevance ranking model.

<link rel="alternate" hrefLang="en" href="https://mixroute.ai/docs/model-api/cohere/rerank-v4.0-pro" />

<link rel="alternate" hrefLang="zh-Hans" href="https://mixroute.ai/docs/zh-hans/model-api/cohere/rerank-v4.0-pro" />

<link rel="alternate" hrefLang="zh-Hant" href="https://mixroute.ai/docs/zh-hant/model-api/cohere/rerank-v4.0-pro" />

<link rel="alternate" hrefLang="ja" href="https://mixroute.ai/docs/ja/model-api/cohere/rerank-v4.0-pro" />

<link rel="alternate" hrefLang="x-default" href="https://mixroute.ai/docs/model-api/cohere/rerank-v4.0-pro" />

Cohere quality-focused multilingual relevance ranking model.

## Model Information

| Field | Description |
| - | - |
| `model` | rerank-v4.0-pro |
| `context` | 32,768 tokens |
| `endpoint` | POST /v1/rerank |

Context and output sizes describe the model specification. Effective request limits, availability, and billing depend on the MixRoute route.

## Capabilities and Usage

* Reranks supplied documents against a query; it does not generate answers or embeddings.
* The context limit applies to a query/document pair. Retrieve candidates first, then use top\_n to select the most relevant results.
* results\[].index maps back to the original documents array. Use that index instead of assuming document text is returned.

## Request Example

Set `MIXROUTE_API_KEY` before making the request.

```bash theme={null}
curl --request POST "https://api.mixroute.ai/v1/rerank" \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "rerank-v4.0-pro",
  "query": "API documentation",
  "documents": [
    "An API reference for developers.",
    "A recipe for soup."
  ],
  "top_n": 1
}'
```

## Request Fields

| Field | Description |
| - | - |
| `model` | Required. Use the exact model ID above. |
| `query` | Required query text. |
| `documents` | Required array of document strings. |
| `top_n` | Optional number of results to return; no more than the number of candidates. |

Complete request format: [rerank](/docs/api-reference/endpoint/rerank).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.