Skip to content

Commit 4024120

Browse files
aig-elevenlabs-provider (#19727)
* aig-elevenlabs-provider * Update elevenlabs.mdx * Update elevenlabs.mdx Beta label
1 parent 3346c87 commit 4024120

File tree

1 file changed

+38
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)