Skip to content

Commit d17b089

Browse files
aig-elevenlabs-provider
1 parent 97a9871 commit d17b089

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: ElevenLabs
3+
pcx_content_type: get-started
4+
---
5+
6+
[ElevenLabs](https://elevenlabs.io/) offers advanced text-to-speech services, enabling high-quality voice synthesis in multiple languages.
7+
8+
## Endpoint
9+
10+
```txt
11+
https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/elevenlabs
12+
```
13+
14+
## Prerequisites
15+
16+
When making requests to ElevenLabs, ensure you have the following:
17+
18+
- Your AI Gateway Account ID.
19+
- Your AI Gateway gateway name.
20+
- An active ElevenLabs API token.
21+
- The model ID of the ElevenLabs voice model you want to use.
22+
23+
## Example
24+
25+
### cURL
26+
27+
```bash title="Request"
28+
curl -X POST https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/elevenlabs/v1/text-to-speech/JBFqnCBsd6RMkjVDRZzb?output_format=mp3_44100_128 \
29+
--header 'Content-Type: application/json' \
30+
--header 'xi-api-key: {elevenlabs_api_token}' \
31+
--data '{
32+
"text": "Welcome to Cloudflare - AI Gateway!",
33+
"model_id": "eleven_multilingual_v2"
34+
}'
35+
```

0 commit comments

Comments
 (0)