@ai-sdk/elevenlabs
v3.0.38
Published
Downloads
1,036,295
Keywords
Readme
AI SDK - ElevenLabs Provider
The ElevenLabs provider for the AI SDK contains speech generation plus batch and realtime transcription support for the ElevenLabs APIs.
Deploying to Vercel? With Vercel's AI Gateway you can access ElevenLabs (and hundreds of models from other providers) — no additional packages, API keys, or extra cost. Get started with AI Gateway.
Setup
The ElevenLabs provider is available in the @ai-sdk/elevenlabs module. You can install it with
npm i @ai-sdk/elevenlabsSkill for Coding Agents
If you use coding agents such as Claude Code or Cursor, we highly recommend adding the AI SDK skill to your repository:
npx skills add vercel/aiProvider Instance
You can import the default provider instance elevenlabs from @ai-sdk/elevenlabs:
import { elevenlabs } from '@ai-sdk/elevenlabs';Example
import { elevenlabs } from '@ai-sdk/elevenlabs';
import { transcribe } from 'ai';
const { text } = await transcribe({
model: elevenlabs.transcription('scribe_v1'),
audio: new URL(
'https://github.com/vercel/ai/raw/refs/heads/main/examples/ai-functions/data/galileo.mp3',
),
});Documentation
Please check out the ElevenLabs provider documentation for more information.
