models

Cohere: Rerank 4 Fast

Markdown · JSON

Cohere: Rerank 4 Fast

Cohere Rerank 4 Fast orders candidate documents by relevance to a query, with a focus on low-latency, high-throughput retrieval. It supports a 32K context, more than 100 languages and semi-structured text for search and retrieval-augmented workflows.

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 Fast is the lighter Rerank 4 edition positioned for lower-latency and higher-throughput retrieval tasks. It takes a query and candidate documents, then returns their relevance ordering and scores. It is useful for interactive search, repeated evidence selection and applications that need to reorder an existing result list. Fast remains a distinct edition from Rerank 4 Pro, which is positioned for more complex cases where retrieval quality takes priority.

The producer code is rerank-v4.0-fast. Like Pro, it has a 32,768-token context and multilingual coverage across more than 100 languages. The query and one document share the context; it is not a vector dimension or a budget for an entire indexed corpus. Supply the candidate texts that should be compared rather than expecting the model to retrieve documents from a source it has not been given.

The documented result includes the original document index and a relevance_score. top_n selects how many results are returned, while omitting it returns the full ranked list. Keep source identifiers beside the inputs so the new ordering can be joined to the actual passages. For a product search, describe the required product attributes in the query and rerank the candidate descriptions; a higher rank should remain connected to the product record that produced it.

The model can work with English and non-English documents and semi-structured records. In the V2 workflow, document inputs are strings, and Cohere recommends representing structured data as YAML. Put important fields first and preserve their order so a truncation does not discard the content needed to judge relevance. A support record can carry title, product and procedure text; a message can carry its subject and body. These explicit relationships give the ranker information beyond a list of matching keywords.

The model-specific query limit in Cohere’s preparation guide is 16,384 tokens, with the query and document consuming the shared context. The guide describes longer-document chunk processing, while the V2 reference separately defaults document truncation to 4096 tokens through max_tokens_per_doc. Check that effective document setting rather than assuming the whole 32K model window is always used. Prepare relevant passages or a suitable document budget for the actual retrieval task.

For recommended performance, Cohere advises against more than 1,000 documents in one request. Split larger candidate sets into manageable groups while retaining their identifiers. The output scores are normalised from 0 to 1 and depend on the query and passages. Their ordering is the key result; a score is not a linear multiple of relevance or proof that a passage is correct. Establish any filtering threshold with representative queries and borderline relevant passages from the domain.

A useful Fast result is a ranked list that can immediately drive a search display or select evidence for an answer-writing stage. Preserve the source text with the score and review whether the top results actually address the requested conditions. Fast’s role is retrieval ranking rather than generating a new explanation or an embedding vector. Keep the named edition and input preparation consistent when refining the relevance behaviour.

Ailoot Ultra · Rerank POST /v1/rerank cohere/rerank-4-fast

cohere/rerank-4-fast

Cohere /cohere/rerank-4-fast

Overview

Cohere Rerank 4 Fast orders candidate documents by relevance to a query, with a focus on low-latency, high-throughput retrieval. It supports a 32K context, more than 100 languages and semi-structured text for search and retrieval-augmented workflows.

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
FieldTypeRequirementValues & limitsDefault
FielddocumentsTypearrayRequirementRequiredValues & limitsDefault—
FieldmodelTypestringRequirementRequiredValues & limits
cohere/rerank-4-fast
Default—
FieldproviderTypeschemaRequirementOptionalValues & limitsDefault—
FieldqueryTypestringRequirementRequiredValues & limitsDefault—
Fieldsession_idTypestringRequirementOptionalValues & limitsDefault—
Fieldtop_nTypeintegerRequirementOptionalValues & limits
Minimum: 1
Default—
FieldtraceTypeschemaRequirementOptionalValues & limitsDefault—
FielduserTypestringRequirementOptionalValues & limitsDefault—
Fielddocuments[].textTypestringRequirementOptionalValues & limitsDefault—
Fielddocuments[].imageTypestringRequirementOptionalValues & limitsDefault—
Input material combinations

text_rerank · Required: query, documents array with minItems1

Method parameters and lifecycle
ParameterContract
Parametercontent_typeContractapplication/json
ParameterrequiredContractmodel, query, documents
Parametermaterial_typesContracttext
Parameteroptional_controlsContractprovider, session_id, top_n, trace, user
Parametermultimodal_input_bindingContractnull

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.

ConfigurationRate scheduleBilling unitCharge
ConfigurationBase token ratesRate scheduleBase rateBilling 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
ConfigurationUltraRate schedule—Billing unitper search unitCharge
total · search unit $0.004 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 →

Example requests

Ailoot Ultra · Rerank

Retained official request structure; documentary exampleUse your actual request material and retain the complete result
{
  "documents": [
    "Paris is the capital of France.",
    "Berlin is the capital of Germany."
  ],
  "model": "cohere/rerank-4-fast",
  "query": "What is the capital of France?",
  "top_n": 3
}
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-fast'
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
FieldType
FieldmodelTypestring
FieldidTypestring
FieldproviderTypestring
Fieldresults[].indexTypeinteger
Fieldresults[].relevance_scoreTypenumber
Fieldresults[].document.textTypestring
Fieldresults[].document.imageTypestring
Fieldusage.search_unitsTypeinteger
Fieldusage.total_tokensTypeinteger
Fieldusage.costTypenumber
Errors and next steps
ResponseConditionNext step
Response400 · invalid_request_errorConditionInvalid required field, representation or valueNext stepCorrect the indicated request field.

Aliases

Model aliases

Ailoot Ultra cohere/rerank-4-fast

Method path aliases

Use the method paths shown above.

Related caller IDs

cohere/rerank-4-fast

FAQ · Cohere: Rerank 4 Fast
What inputs and results are available?

POST /v1/rerank · cohere/rerank-4-fast: text → rerank

Which fields does the request use?

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

What limits apply?

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

More details

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 · View model prices

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 · Service offer and licence agreement