Suggestion:
A 401 error with ElevenLabs TTS is often due to your API subscription not including TTS access, even if your key works for other endpoints. Please visit the [ElevenLabs pricing page](
https://elevenlabs.io/pricing) and ensure your account has an active API plan that includes TTS. Once upgraded, retry your integration—this usually resolves the 401 error for TTS requests.
Source:
- [ElevenLabs Custom Voice Integration Guide](
https://docs.vapi.ai/customization/custom-voices/elevenlabs)