> ## Documentation Index
> Fetch the complete documentation index at: https://vlyai-1c28d863.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ElevenLabs

> Best-in-class text-to-speech and voice cloning. Natural-sounding voices in 30+ languages.

[ElevenLabs](https://elevenlabs.io) generates strikingly natural-sounding speech. Use for accessibility, audio versions of content, voice AI apps.

<Note>
  Full walkthrough being written.
</Note>

## Common uses

* Voice AI apps (TTS for AI responses)
* Audio versions of articles / posts
* Voice messages in chat
* Voice cloning for personalized brand voices

## Setup

`ELEVENLABS_API_KEY` in vly secrets. Pick a voice ID from the dashboard or use a default.

```typescript theme={null}
const audio = await fetch(`https://api.elevenlabs.io/v1/text-to-speech/${voiceId}`, {
  method: "POST",
  headers: { "xi-api-key": process.env.ELEVENLABS_API_KEY!, "Content-Type": "application/json" },
  body: JSON.stringify({ text, model_id: "eleven_turbo_v2_5" }),
});
```

## Related

<CardGroup cols={3}>
  <Card title="Voice AI app recipe" icon="mic" href="/recipes/voice-ai-app">
    Worked example.
  </Card>

  <Card title="OpenAI TTS" icon="sparkles" href="/integrations/openai">
    Cheaper alternative.
  </Card>

  <Card title="OpenAI Whisper" icon="sparkles" href="/integrations/openai">
    The STT counterpart.
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.