You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue:
The code uses the environment variable ELEVENLABS_API_KEY, which is incorrect and causes authentication failure when calling the ElevenLabs API.
Line in question:
os.environ["ELEVENLABS_API_KEY"]
Fix:
It should be:
os.environ["ELEVEN_LABS_API_KEY"]
Impact:
Using the incorrect environment variable name results in a 401 Unauthorized error when making requests to the ElevenLabs API.