Creates a Voyage AI provider instance with optional configuration settings. You can customize the API key, base URL, headers, and fetch implementation.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/patelvivekdev/voyageai-ai-provider/llms.txt
Use this file to discover all available pages before exploring further.
Import
Parameters
Configuration options for the Voyage provider
API key for authenticating with the Voyage AI API. Defaults to the
VOYAGE_API_KEY environment variable.Base URL for API calls. Use this to configure proxy servers or custom endpoints. Defaults to
https://api.voyageai.com/v1.Custom headers to include in all requests.
Custom fetch implementation. Use this as middleware to intercept requests or provide a custom fetch for testing.
Returns
A Voyage provider instance that implements the Vercel AI SDK provider interface. The provider can be called as a function or you can use its methods to create specific model types.