File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
src/content/docs/ai-gateway/providers Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 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+ ```
You can’t perform that action at this time.
0 commit comments