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..30e022671ea675 --- /dev/null +++ b/src/content/docs/ai-gateway/providers/elevenlabs.mdx @@ -0,0 +1,38 @@ +--- +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. + +## 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 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" +}' +```