Installation
Install the Voyage AI Provider package to use Voyage AI models with the Vercel AI SDK.Install the packages
You need both the Voyage AI Provider and the Vercel AI SDK:The
ai package provides the core Vercel AI SDK functions like embed(), embedMany(), and rerank() that work with the Voyage AI Provider.Get your API key
You need a Voyage AI API key to use the provider:- Sign up at Voyage AI
- Navigate to your dashboard to create an API key
- Copy your API key for the next step
Configure your environment
Add your API key to your environment variables:Verify installation
Create a simple test file to verify your installation:test.ts
Next steps
Quickstart
Generate your first embeddings
Text embeddings
Learn about text embedding models