VPN/Proxy Error using elevenlabs api key

Hey, I have created an application for text to speech using elevenlabs

It works perfectly on my local device, but after deployment I am facing API Key issue. As it is a Demo app and I don’t want to add my paid key, I used a free tier key that can’t be used using a vpn or proxy. I don’t know why but my streamlit app is using vpn/proxy.

Here’s the link to my app: https://demottsapp.streamlit.app/
Here’s the link to my repo: PythonDevelopment/TTSDemoAPP/DemoTTSAPP.py at main · AteebHussain2/PythonDevelopment · GitHub

How can I avoid streamlit community cloud from using vpn or proxy on my app?

Here’s is the error caused by streamlit cloud:

Error: 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. 
Please play fair and purchase any Paid Subscription to continue."}}

Versions I am using:

  1. Python: 3.10
  2. Streamlit: 1.38.0

Hey @Ateeb, I am not sure whether what you are asking for is possible as it sounds to be a defense mechanism on the elevenlabs’ side. I don’t think Community Cloud has a dedicated proxy for outbound requests (I might be wrong), and rather assume that elevenlabs detects that the request is coming from a shared server. Unfortunately, you cannot change anything about the way Community Cloud apps are hosted. Maybe the elevenlabs team is able to support you and can make it possible to let requests from the Community Cloud servers through.
Unless someone else here has a more clever idea :slightly_smiling_face:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.