# Cohere Rerank 5 Pro

Cohere Rerank 5 Pro is a multilingual text reranking model for complex queries and long or domain-specific documents. It ranks documents and semi-structured data across more than 100 languages, with calibrated relevance scores and a 32,768-token context window per query-document pair.

- **Model ID:** `cohere/rerank-v5-pro`
- **Type:** reranking
- **Providers:** cohere
- **Context window:** 32,768
- **Maximum output tokens:** 32,768
- **Pricing:** $0.05/1M input tokens
- **Canonical page:** https://vercel.com/ai-gateway/models/rerank-v5-pro

## Supported parameters

Detailed capability metadata has not been reported for this model.

## Example

```ts
import { rerank } from 'ai';

const result = await rerank({
  model: 'cohere/rerank-v5-pro',
  query: 'What is the capital of France?',
  documents: [
    'Paris is the capital of France.',
    'Berlin is the capital of Germany.',
    'Madrid is the capital of Spain.',
  ],
})
```

## Links

- [Model page](https://vercel.com/ai-gateway/models/rerank-v5-pro)
- [AI Gateway documentation](https://vercel.com/docs/ai-gateway)
- [Provider model documentation](https://docs.cohere.com/docs/rerank)
- [Provider pricing](https://cohere.com/blog/rerank-5)
