aisdk/revai

Official RevAi provider for the PHP AI SDK.

Maintainers

Package info

github.com/phpaisdk/revai

pkg:composer/aisdk/revai

Transparency log

Fund package maintenance!

Open Collective

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.8.1 2026-07-22 07:08 UTC

This package is auto-updated.

Last update: 2026-07-22 07:09:03 UTC


README

GitHub Workflow Status Latest Version License

Official Rev AI provider for the PHP AI SDK. Uses Rev AI's native asynchronous speech-to-text API.

Installation

composer require aisdk/revai

Basic Usage

use AiSdk\Content;
use AiSdk\Generate;
use AiSdk\RevAi;

RevAi::create(['apiKey' => $_ENV['REVAI_ACCESS_TOKEN']]);

$result = Generate::transcription()
    ->model(RevAi::model('machine'))
    ->audio(Content::audio('https://example.com/audio.mp3'))
    ->run();

Configuration

Variable Description Default
REVAI_ACCESS_TOKEN Access token for authentication Required
REVAI_BASE_URL Base URL for API requests https://api.rev.ai/speechtotext/v1

Supported Capabilities

Capability Support
Asynchronous transcription Native /jobs API
Public audio URLs Native
Local files Not exposed by the package

The package submits a job, polls its status, and retrieves the transcript. Use providerOptions('revai', [...]) for native job fields. Supply a public audio URL; local uploads are not currently exposed by this package.

Documentation