> ## Documentation Index
> Fetch the complete documentation index at: https://docs.portkey.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ElevenLabs

> Use ElevenLabs' text-to-speech, speech-to-text, and voice cloning APIs through Prisma AIRS AI Gateway.

ElevenLabs provides industry-leading text-to-speech, speech-to-text, dubbing, and voice cloning capabilities. The AI Gateway allows you to use ElevenLabs' APIs with full observability and reliability features.

<Note>
  ElevenLabs currently uses a custom host setup. SDK support is available through the custom host pattern.
</Note>

## Quick Start

### Text to Speech

Generate speech from text using the ElevenLabs TTS API:

```bash cURL theme={"system"}
curl -X POST https://aigw.portkey.ai/v1/audio/speech \
  -H "xi-api-key: $ELEVENLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -H "x-portkey-custom-host: https://api.elevenlabs.io" \
  -H "x-portkey-provider: openai" \
  -H "Authorization: Bearer $PORTKEY_API_KEY" \
  -d '{
    "model_id": "eleven_multilingual_v2",
    "text": "Hello! Welcome to Portkey.",
    "voice_settings": {
      "stability": 0.5,
      "similarity_boost": 0.75
    }
  }' \
  --output speech.mp3
```

## Add Provider in Model Catalog

Before making requests, add ElevenLabs to your Model Catalog:

1. Go to [**Model Catalog → Add Provider**](https://stratacloudmanager.paloaltonetworks.com/)
2. Select **ElevenLabs**
3. Enter your [ElevenLabs API key](https://elevenlabs.io/app/settings/api-keys)
4. Set the custom host to `https://api.elevenlabs.io`
5. Name your provider (e.g., `elevenlabs`)

<Card title="Complete Setup Guide" icon="book" href="/docs/aigw/product/model-catalog">
  See all setup options and detailed configuration instructions
</Card>

***

## Using with the OpenAI SDK

You can also use ElevenLabs with the OpenAI SDK using custom host configuration:

***

## ElevenLabs Features

ElevenLabs offers advanced audio AI capabilities:

* **Text to Speech**: Convert text to natural-sounding speech in 29+ languages
* **Speech to Text**: Transcribe audio with high accuracy
* **Voice Cloning**: Clone voices from audio samples
* **Dubbing**: Automatically dub audio/video content across languages
* **Voice Design**: Generate unique AI voices

<Card icon="link" title="ElevenLabs API Documentation" href="https://elevenlabs.io/docs/api-reference">
  Explore the complete ElevenLabs API documentation
</Card>

***

## Next Steps

<CardGroup cols={2}>
  <Card title="Gateway Configs" icon="sliders" href="/docs/aigw/product/ai-gateway">
    Add retries and timeouts for audio processing
  </Card>

  <Card title="Observability" icon="chart-line" href="/docs/aigw/product/observability">
    Monitor and trace your ElevenLabs requests
  </Card>

  <Card title="Custom Host Setup" icon="server" href="/docs/aigw/product/ai-gateway/universal-api#integrating-local-or-private-models">
    Learn more about custom host configuration
  </Card>

  <Card title="Metadata" icon="tag" href="/docs/aigw/product/observability/metadata">
    Add custom metadata to track audio sources
  </Card>
</CardGroup>


## Related topics

- [Enterprise Gateway](/docs/aigw/changelog/enterprise.md)
- [Lambda Labs](/docs/aigw/integrations/llms/lambda.md)
- [Modal Labs](/docs/aigw/integrations/llms/modal.md)
- [Gitlab MCP server](/docs/aigw/integrations/mcp-servers/gitlab-mcp-server.md)
- [Prometheus Metrics](/docs/aigw/self-hosting/prometheus-metrics.md)
