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

# Voyage AI

> Use Voyage AI's embeddings and reranking models through Prisma AIRS AI Gateway.

## Quick Start

Get started with Voyage AI in under 2 minutes:

```bash cURL icon="square-terminal" theme={"system"}
# 1. Add @voyage provider in model catalog
# 2. Use it:

curl https://aigw.portkey.ai/v1/embeddings \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $PORTKEY_API_KEY" \
  -d '{
    "model": "@voyage/voyage-3",
    "input": "Name the tallest buildings in Hawaii"
  }'
```

```python OpenAI Py icon="python" theme={"system"}
from openai import OpenAI

# 1. Install: pip install openai
# 2. Add @voyage provider in model catalog
# 3. Use it:

client = OpenAI(
    api_key="PORTKEY_API_KEY",  # AI Gateway API key
    base_url="https://aigw.portkey.ai/v1"
)

embedding = client.embeddings.create(
    model="@voyage/voyage-3",
    input="Name the tallest buildings in Hawaii"
)

print(embedding.data[0].embedding)
```

```js OpenAI JS icon="square-js" theme={"system"}
import OpenAI from "openai"

// 1. Install: npm install openai
// 2. Add @voyage provider in model catalog
// 3. Use it:

const client = new OpenAI({
    apiKey: "PORTKEY_API_KEY",  // AI Gateway API key
    baseURL: "https://aigw.portkey.ai/v1"
})

const embedding = await client.embeddings.create({
    model: "@voyage/voyage-3",
    input: "Name the tallest buildings in Hawaii"
})

console.log(embedding.data[0].embedding)
```

> [!NOTE]
>
> **Tip:** You can also send `x-portkey-provider: @voyage` as a header and use just `model="voyage-3"` in the request.

## Add Provider in Model Catalog

Before making requests, add Voyage AI to your Model Catalog:

1. Go to [**Model Catalog → Add Provider**](https://stratacloudmanager.paloaltonetworks.com/)
2. Select **Voyage AI**
3. Enter your [Voyage API key](https://dash.voyageai.com/)
4. Name your provider (e.g., `voyage`)

> **[Complete Setup Guide](https://docs.portkey.ai/docs/aigw/product/model-catalog.md)**
>
> See all setup options and detailed configuration instructions

***

## Voyage AI Capabilities

### Embeddings

Generate high-quality embeddings:

### Reranking

Rerank documents for better search results:

***

## Supported Models

Voyage AI offers specialized embedding and reranking models:

| Model | Type | Description |
| - | - | - |
| voyage-3 | Embedding | Latest general-purpose embedding model |
| voyage-3-lite | Embedding | Faster, lighter version |
| voyage-code-3 | Embedding | Optimized for code |
| rerank-2 | Reranking | High-quality reranking |
| rerank-2-lite | Reranking | Faster reranking |

Check [Voyage AI's documentation](https://docs.voyageai.com/) for the complete model list.

***

## Next Steps

> **[Gateway Configs](https://docs.portkey.ai/docs/aigw/product/ai-gateway.md)**
>
> Add fallbacks, load balancing, and more

> **[Observability](https://docs.portkey.ai/docs/aigw/product/observability.md)**
>
> Monitor and trace your Voyage requests

> **[Caching](https://docs.portkey.ai/docs/aigw/product/ai-gateway/cache-simple-and-semantic.md)**
>
> Cache embeddings for faster responses

> **[Metadata](https://docs.portkey.ai/docs/aigw/product/observability/metadata.md)**
>
> Add custom metadata to requests


## Related topics

- [Overview](https://docs.portkey.ai/docs/aigw/integrations/llms.md)
- [Supported Providers](https://docs.portkey.ai/docs/aigw/api-reference/inference-api/supported-providers.md)
- [Enterprise Gateway](https://docs.portkey.ai/docs/changelog/enterprise.md)
- [Langchain (JS/TS)](https://docs.portkey.ai/docs/aigw/integrations/libraries/langchain-js.md)
- [Langchain (Python)](https://docs.portkey.ai/docs/aigw/integrations/libraries/langchain-python.md)


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