Hello, when I try using my elevenlabs API key for “sound effects” in the “Synthetic data” tab, it shows up as the below error:
Job scheduled at 27 Jun 2025 01:24:19 Container image pulled at 27 Jun 2025 01:24:37 Job started at 27 Jun 2025 01:24:37
Prompt: hi
Number of samples: 10
Frequency: 16000
Creating audio sample 1 of 10 for gunshots…2025-06-27 01:24:41,923 - ERROR - Failed to generate sound: 401 Client Error: Unauthorized for url: https://api.elevenlabs.io/v1/sound-generation
Application exited with code 1
Job failed (see above)
I made sure I have enabled the “sound effects” API, but nothing I do is authenticating it. I have even ran python script and it shows that it is unauthenticated, and I don’t know how to fix it. Any thoughts and assistance on this matter would be greatly appreciated.
For more context, I am on the free 10000 credit plan for elevenlabs, and I am in the developer (free) plan on edge impulse. Thank you.
Let me try to reproduce here on a test account, be careful with this use case if it is for a product or use outside of our responsible AI license, please make sure to review the following and engage with our sales team early: https://edgeimpulse.com/legal/responsible-ai-license
I will update shortly on the elevenLabs api key usage.
OK I have reproduced your error by first creating a key with the appropriate access:
Create an API key, enable sound generation:
Same error:
I also validated this is also an issue when using the API key in a notebook, which leads me to believe this is on the elevenLabs side that the problem lies:
My suggestion is that you also log this with elevenLabs, I will try to do the same and see if anyone in our team can figure out what has changed in their API.
As I mentioned on Discord, I suspect ElevenLabs is blocking the requests for Free Plans.
Here is what I get when I call the API from their API playground (with a Free Plan):
status: 401:
{
"detail": {
"status": "detected_unusual_activity",
"message": "Unusual activity detected. Free Tier usage disabled. If you are using a proxy/VPN you might need to purchase a Paid Plan to not trigger our abuse detectors. Free Tier only works if users do not abuse it, for example by creating multiple free accounts. If we notice that many people try to abuse it, we will need to reconsider Free Tier altogether. \nPlease play fair and purchase any Paid Subscription to continue."
}
}
It works correctly with my Creator Plan. Let us know if you want to try with a Starter Plan too.