Source: https://ailoot.ai/models/en/cohere-rerank-4-pro/
Canonical: https://ailoot.ai/models/en/cohere-rerank-4-pro/
Language: en

# Cohere: Rerank 4 Pro

[Markdown](https://ailoot.ai/models/en/cohere-rerank-4-pro/index.md) · [JSON](https://ailoot.ai/models/en/cohere-rerank-4-pro/facts.json)

## [Cohere: Rerank 4 Pro](https://ailoot.ai/models/en/cohere-rerank-4-pro/)

Cohere Rerank 4 Pro orders candidate documents by relevance to a query for search and retrieval-augmented workflows. It is the quality-focused Rerank 4 edition, with a 32K context, multilingual coverage and support for semi-structured text.

- [**Ailoot Ultra · Rerank** `POST /v1/rerank` `cohere/rerank-4-pro`](https://ailoot.ai/models/en/cohere-rerank-4-pro/#method-0)

About the model

This description covers the model’s capabilities. Available in Ailoot inputs, outputs and options are listed for the selected method below.

Cohere Rerank 4 Pro is the quality-focused model in Cohere’s Rerank 4 family. It evaluates candidate documents against a query and returns their relevance ordering and scores. The model is intended for complex retrieval tasks, including multilingual documents and semi-structured information. It fits a search or retrieval-augmented workflow after an existing system has collected candidates: the result helps choose which passages should be shown or supplied as evidence to the next stage.

The producer identifier is rerank-v4.0-pro, separate from rerank-v4.0-fast and rerank-v3.5. Pro is positioned for complex cases where retrieval quality is the priority, while Fast targets lower latency and higher throughput. Both Rerank 4 editions use a 32,768-token context. The query and one candidate document share that budget; it is not a separate full window for every input field or a limit on the entire stored search corpus.

Supply a clear query and the list of candidate text strings. Each returned result includes the original document index and a relevance score, and top\_n can select how many ranked results are returned; without it, the producer returns all results. Preserve a source identifier beside each input so ranking can be connected back to the exact passage. For a support question, ask about the required conditions and supply the candidate policy sections rather than expecting the reranker to locate policies that were not in the list.

The model supports more than 100 languages and can rerank English and non-English material. For a query with several requirements, state the conditions that make a passage useful, such as the product, situation and needed procedure. For semi-structured records, Cohere recommends YAML strings rather than passing raw objects in the V2 document list. Keep meaningful fields such as title and content in a deliberate order, because truncation can remove later fields. This preparation is useful for product records, messages and document metadata as well as ordinary prose.

The model-specific preparation guide limits the Rerank 4 query to the first 16,384 tokens. It describes longer-document processing through chunks that share the 32,768-token context with the query and reserved tokens. The current V2 reference separately defaults max\_tokens\_per\_doc to 4096 and says longer document strings are truncated to that setting. Treat the model window and the producer request’s document truncation as different controls. Prepare concise relevant passages or choose an appropriate document budget instead of assuming every long source is always read in full.

For recommended request performance, Cohere advises against sending more than 1,000 documents at once. Preserve candidate identifiers when splitting a larger list into manageable groups. Relevance scores are normalised between 0 and 1, but they depend on the query and candidates; they are not a linear measure of factual correctness. Use the ordering as the primary retrieval result. If filtering by a score threshold, establish it with representative queries and borderline relevant passages from the actual domain rather than assuming a universal cutoff.

A useful final artifact is a ranked candidate list carrying source identifiers and scores, ready for a search result or an evidence-selection step. A document with a high relevance score can still contain outdated or incorrect information, so retain its source and content for the stage that uses it. Pro’s purpose is relevance judgement, not writing a free-form answer or generating embeddings. Keep the exact Pro edition attached to the result when comparing or refining a retrieval workflow.

**Ailoot Ultra · Rerank** `POST /v1/rerank` `cohere/rerank-4-pro`

[`cohere/rerank-4-pro`](https://ailoot.ai/models/en/#m=cohere%2Frerank-4-pro&route=Ultra&caller=cohere%2Frerank-4-pro&fmt=rerank)

Cohere /`cohere/rerank-4-pro`

### Overview

Cohere Rerank 4 Pro orders candidate documents by relevance to a query for search and retrieval-augmented workflows. It is the quality-focused Rerank 4 edition, with a 32K context, multilingual coverage and support for semi-structured text.

Accepted inputs

Text

Results

Ranked results

### Available in Ailoot · inputs & methods

**Ailoot Ultra · Rerank** `POST /v1/rerank`

Input types

`text`

Output types

`rerank`

Output format

json

| Field | Type | Requirement | Values & limits | Default |
| --- | --- | --- | --- | --- |
| Field`documents` | Type`array` | RequirementRequired | Values & limits | Default— |
| Field`model` | Type`string` | RequirementRequired | Values & limits cohere/rerank-4-pro | Default— |
| Field`provider` | Type`schema` | RequirementOptional | Values & limits | Default— |
| Field`query` | Type`string` | RequirementRequired | Values & limits | Default— |
| Field`session_id` | Type`string` | RequirementOptional | Values & limits | Default— |
| Field`top_n` | Type`integer` | RequirementOptional | Values & limits Minimum: 1 | Default— |
| Field`trace` | Type`schema` | RequirementOptional | Values & limits | Default— |
| Field`user` | Type`string` | RequirementOptional | Values & limits | Default— |
| Field`documents[].text` | Type`string` | RequirementOptional | Values & limits | Default— |
| Field`documents[].image` | Type`string` | RequirementOptional | Values & limits | Default— |

Input material combinations

**text\_rerank** · Required: query, documents array with minItems1

Method parameters and lifecycle

| Parameter | Contract |
| --- | --- |
| Parameter`content_type` | Contractapplication/json |
| Parameter`required` | Contractmodel, query, documents |
| Parameter`material_types` | Contracttext |
| Parameter`optional_controls` | Contractprovider, session\_id, top\_n, trace, user |
| Parameter`multimodal_input_binding` | Contractnull |

Lifecycle: `synchronous`

Send the exact model ID and retain the complete native response.

### Pricing

Tariff references do not add request options. Supported parameters are listed for the selected method.

Fast mode

Not specified When fast mode is selected

Flex mode

Not specified When flex mode is selected

Maximum reasoning effort

Not specified When maximum reasoning effort uses the default adjustment

#### Ailoot rates

#### Prices by configuration

Match each charge to the conditions shown. Use one rate for each set of alternative configurations.

| Configuration | Rate schedule | Billing unit | Charge |
| --- | --- | --- | --- |
| ConfigurationBase token rates | Rate scheduleBase rate | Billing unit— | Charge Input · Input tokens **—** / 1K tokens Output · Output tokens **—** / 1K tokens Input · Cache read **—** / 1K tokens Input · Cache write **—** / 1K tokens Input · Cache write, 1 hour **—** / 1K tokens |
| ConfigurationUltra | Rate schedule— | Billing unitper search unit | Charge total · search unit **$0.005** per search unit |

Ailoot reserves an estimated amount before a request. After the result, it settles the final charge from measured usage. Streaming settlement uses the final usage record. [How reservation and settlement work →](https://ailoot.ai/docs/en/billing/reserve/)

### Example requests

#### Ailoot Ultra · Rerank

Retained official request structure; documentary exampleUse your actual request material and retain the complete result

```json
{
  "documents": [
    "Paris is the capital of France.",
    "Berlin is the capital of Germany."
  ],
  "model": "cohere/rerank-4-pro",
  "query": "What is the capital of France?",
  "top_n": 3
}
```

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
: "${AILOOT_REQUEST_FILE:?Set your actual JSON request file}"
export AILOOT_REQUEST_FILE
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p=json.loads(Path(os.environ['AILOOT_REQUEST_FILE']).read_text(encoding='utf-8'))
if not isinstance(p,dict): raise SystemExit('Request must be a JSON object')
p['model']='cohere/rerank-4-pro'
Path('request.json').write_text(json.dumps(p,ensure_ascii=False),encoding='utf-8')
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/rerank \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
python3 - <<'PY_RESULT'
import json
from pathlib import Path
print(json.dumps(json.loads(Path('result.json').read_text()),ensure_ascii=False,indent=2))
PY_RESULT
```

### Receive and save results

#### Ailoot Ultra · Rerank

json

##### Keep all completed results

Keep every complete returned response, file and content part.

Every actual result index, finite relevance\_score and original document object is retained. Indices bind the original document array. Entire original JSON is stored and returned only after settlement.

##### If the original response needs checking

Preserve original operation and full/partial reply; do not replay POST.

Response fields

| Field | Type |
| --- | --- |
| Field`model` | Typestring |
| Field`id` | Typestring |
| Field`provider` | Typestring |
| Field`results[].index` | Typeinteger |
| Field`results[].relevance_score` | Typenumber |
| Field`results[].document.text` | Typestring |
| Field`results[].document.image` | Typestring |
| Field`usage.search_units` | Typeinteger |
| Field`usage.total_tokens` | Typeinteger |
| Field`usage.cost` | Typenumber |

Errors and next steps

| Response | Condition | Next step |
| --- | --- | --- |
| Response400 · `invalid_request_error` | ConditionInvalid required field, representation or value | Next stepCorrect the indicated request field. |

### Aliases

#### Model aliases

**Ailoot Ultra** [`cohere/rerank-4-pro`](https://ailoot.ai/models/en/#m=cohere%2Frerank-4-pro&route=Ultra&caller=cohere%2Frerank-4-pro&fmt=rerank)

#### Method path aliases

Use the method paths shown above.

#### Related caller IDs

[`cohere/rerank-4-pro`](https://ailoot.ai/models/en/#m=cohere%2Frerank-4-pro&route=Ultra&caller=cohere%2Frerank-4-pro&fmt=rerank)

FAQ · Cohere: Rerank 4 Pro

What inputs and results are available?

`POST /v1/rerank` · `cohere/rerank-4-pro`: `text` → `rerank`

Which fields does the request use?

`POST /v1/rerank` · `cohere/rerank-4-pro`: `documents`, `model`, `provider`, `query`, `session_id`, `top_n`, `trace`, `user`

What limits apply?

`POST /v1/rerank` · `cohere/rerank-4-pro`: `top_n.minimum`: `1`

Connect Ailoot to Claude Code, OpenCode, Hermes or your own app.

## The company and its project portfolio

The company and its project portfolio: millions of customers; monthly sales in the billions.

## Buy tokens at a discount.

Subscription discounts for regular use. Promo codes offer up to 50% off token purchases.

Subscription

Choose a discounted plan for your regular requests.

Promo code: up to 50% off

Enter your code at checkout. The price updates to reflect the current promotion.

Spending in your history

The model, tokens and amount are recorded for each request.

[Choose a subscription](https://ailoot.ai/docs/en/billing/subscriptions/) · [View model prices](https://ailoot.ai/models/en/)

## Connect the API to a product you sell.

Use Ailoot in SaaS, apps and bots under its official service offer and licence agreement. Request a reseller licence for resale.

Commercial application

Add text, image, video and audio generation to paid features in your service.

Reseller licence

Send a description of your project and how you provide access. Request written terms for use and resale.

Documents on the website

The service offer, licence agreement and data processing policy are available before you connect.

[Request a reseller licence](mailto:support@ailoot.ai) · [Service offer and licence agreement](https://ailoot.ai/legal/offer?lang=en)

## Ailoot · The company and its project portfolio





Ailoot combines established operating experience, a large client base, stable service and ongoing KPI control.





The company and its project portfolio: millions of customers; monthly sales in the billions.





Ailoot brings that operating experience to API access for AI features in customer products, agents, applications and automations.
