Model selection in theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/phpaisdk/voyageai/llms.txt
Use this file to discover all available pages before exploring further.
aisdk/voyageai package is intentionally open-ended. VoyageAI::model(string $modelId) accepts any string, sends it to Voyage’s API unchanged, and lets the API report an error if the model doesn’t exist. There is no internal allowlist to update when Voyage releases new models — if Voyage’s API accepts it, this package accepts it.
Basic Usage
Notable Models
The examples in the README and test suite reference the following model. This is not an exhaustive list — it reflects what is used in this package’s own documentation and tests.voyage-4-large
Voyage AI’s flagship large embedding model. Supports custom output
dimensions via
->dimensions(int), which maps to Voyage’s
output_dimension request field. Well suited for high-accuracy retrieval
tasks where vector quality matters more than latency or storage cost.The list above is illustrative, not exhaustive. Visit
Voyage AI’s official model documentation
for the current catalogue of available models, their context lengths, default
dimensions, and supported
output_dimension ranges.Model ID Pass-Through
The package does not validate model IDs at construction time. This means that models released after this package was published work without any code change on your end:Dimensions Support
Not every Voyage model accepts a customoutput_dimension. For models that do, you can request a smaller vector to reduce storage and compute costs:
->dimensions() is omitted, no output_dimension field is sent and Voyage returns the model’s default vector length.
