From d17b0890bb7f3f083f4494ca95d117bb13adf7c1 Mon Sep 17 00:00:00 2001 From: daisyfaithauma Date: Tue, 4 Feb 2025 16:44:31 +0000 Subject: [PATCH 1/3] aig-elevenlabs-provider --- .../docs/ai-gateway/providers/elevenlabs.mdx | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/content/docs/ai-gateway/providers/elevenlabs.mdx diff --git a/src/content/docs/ai-gateway/providers/elevenlabs.mdx b/src/content/docs/ai-gateway/providers/elevenlabs.mdx new file mode 100644 index 00000000000000..b6c58cab939643 --- /dev/null +++ b/src/content/docs/ai-gateway/providers/elevenlabs.mdx @@ -0,0 +1,35 @@ +--- +title: ElevenLabs +pcx_content_type: get-started +--- + +[ElevenLabs](https://elevenlabs.io/) offers advanced text-to-speech services, enabling high-quality voice synthesis in multiple languages. + +## Endpoint + +```txt +https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/elevenlabs +``` + +## Prerequisites + +When making requests to ElevenLabs, ensure you have the following: + +- Your AI Gateway Account ID. +- Your AI Gateway gateway name. +- An active ElevenLabs API token. +- The model ID of the ElevenLabs voice model you want to use. + +## Example + +### cURL + +```bash title="Request" +curl -X POST https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/elevenlabs/v1/text-to-speech/JBFqnCBsd6RMkjVDRZzb?output_format=mp3_44100_128 \ + --header 'Content-Type: application/json' \ + --header 'xi-api-key: {elevenlabs_api_token}' \ + --data '{ + "text": "Welcome to Cloudflare - AI Gateway!", + "model_id": "eleven_multilingual_v2" +}' +``` From b6aa4584e64a15947eb9e78d94c580ef5deadabd Mon Sep 17 00:00:00 2001 From: daisyfaithauma Date: Wed, 5 Feb 2025 16:01:43 +0000 Subject: [PATCH 2/3] Update elevenlabs.mdx --- src/content/docs/ai-gateway/providers/elevenlabs.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/ai-gateway/providers/elevenlabs.mdx b/src/content/docs/ai-gateway/providers/elevenlabs.mdx index b6c58cab939643..5328f1970f70b5 100644 --- a/src/content/docs/ai-gateway/providers/elevenlabs.mdx +++ b/src/content/docs/ai-gateway/providers/elevenlabs.mdx @@ -25,7 +25,7 @@ When making requests to ElevenLabs, ensure you have the following: ### cURL ```bash title="Request" -curl -X POST https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/elevenlabs/v1/text-to-speech/JBFqnCBsd6RMkjVDRZzb?output_format=mp3_44100_128 \ +curl https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/elevenlabs/v1/text-to-speech/JBFqnCBsd6RMkjVDRZzb?output_format=mp3_44100_128 \ --header 'Content-Type: application/json' \ --header 'xi-api-key: {elevenlabs_api_token}' \ --data '{ From afa07ef968ff4365ba82a2d4b1c846cc56b6b1e7 Mon Sep 17 00:00:00 2001 From: daisyfaithauma Date: Wed, 5 Feb 2025 16:48:33 +0000 Subject: [PATCH 3/3] Update elevenlabs.mdx Beta label --- src/content/docs/ai-gateway/providers/elevenlabs.mdx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/content/docs/ai-gateway/providers/elevenlabs.mdx b/src/content/docs/ai-gateway/providers/elevenlabs.mdx index 5328f1970f70b5..30e022671ea675 100644 --- a/src/content/docs/ai-gateway/providers/elevenlabs.mdx +++ b/src/content/docs/ai-gateway/providers/elevenlabs.mdx @@ -1,6 +1,9 @@ --- title: ElevenLabs pcx_content_type: get-started +sidebar: + badge: + text: Beta --- [ElevenLabs](https://elevenlabs.io/) offers advanced text-to-speech services, enabling high-quality voice synthesis in multiple languages.