Provider Slug: voyage
Portkey SDK Integration with Voyage
Portkey provides a consistent API to interact with models from Voyage. To integrate Voyage with Portkey:1. Install the Portkey SDK
Add the Portkey SDK to your application to interact with Voyage AI’s models through Portkey’s gateway.- NodeJS
- Python
2. Initialize Portkey with the API Key
To use Voyage with Portkey, get your API key from here, then add it to Portkey to create the virtual key.- NodeJS SDK
- Python SDK
Embeddings
Embedding endpoints are natively supported within Portkey like this:- NodeJS
- Python SDK
Re-ranking
Portkey supports Voyage AI’s reranking models through a unified/v1/rerank endpoint.
Voyage-Specific Parameters
| Parameter | Type | Description |
|---|---|---|
truncation | boolean | Whether to truncate documents that exceed the model’s context length |
Next Steps
The complete list of features supported in the SDK is available on the link below.SDK
Explore the SDK documentation

