# Voyage Rerank 3

A general-purpose reranker optimized for retrieval accuracy.

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

## Supported parameters

Detailed capability metadata has not been reported for this model.

## Example

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

const result = await rerank({
  model: 'voyage/rerank-3',
  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-3)
- [AI Gateway documentation](https://vercel.com/docs/ai-gateway)
- [Provider model documentation](https://docs.voyageai.com/docs/reranker)
- [Provider pricing](https://docs.voyageai.com/docs/pricing)
