Search by

aisdk / voyageai

aisdk

Official Voyage AI provider for the PHP AI SDK.

Package info

github.com/phpaisdk/voyageai

pkg:composer/aisdk/voyageai

Fund package maintenance!

Open Collective

Statistics

Installs: 9

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

v0.11.0 2026-10-31 02:59 UTC

This package is auto-updated.

Last update: 2026-11-03 18:58:54 UTC


README

Text embeddings with Voyage AI for the framework-agnostic PHP AI SDK.

Installation

composer require aisdk/voyageai

Set VOYAGE_API_KEY in your environment.

Usage

use AiSdk\Generate;
use AiSdk\VoyageAI;

$result = Generate::embedding('A guide to building PHP applications.')
    ->model(VoyageAI::model('voyage-4-large'))
    ->providerOptions('voyageai', ['input_type' => 'document'])
    ->run();

$vector = $result->output->vector;

Documentation

Read the documentation for configuration, supported features, and more examples.

Contributing ยท Support

License

The MIT License (MIT). See LICENSE for details.