Eleven v3
Emotionally rich text-to-speech with inline audio tags for delivery and expression, supporting more than 70 languages. Accepts up to 5,000 characters per request and is billed per input character, including audio tags. Your use is subject to ElevenLabs's Terms & Privacy Policies.
- Input price
- Input $40, Per 1M characters
import { experimental_generateSpeech as generateSpeech } from 'ai';import { gateway } from '@ai-sdk/gateway';import { writeFile } from 'node:fs/promises';
const result = await generateSpeech({ model: gateway.speechModel('elevenlabs/eleven-v3'), text: 'Hello from the Vercel AI Gateway!', voice: 'hpp4J3VqNfWAUOO0d1Us',});
await writeFile('speech.mp3', result.audio.uint8Array);Copy link to headingPlayground
Try out Eleven v3 by ElevenLabs. Usage is billed to your team at API rates. Free users (those who haven't made a payment) get $5 of credits every 30 days.
Text
The text the model will read aloud.Voice
Your generated audio will appear here
Copy link to headingProviders
Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.
Checking availability for your team
| Provider |
|---|