#i keep getting this 401 errorElevenLabsError: Status code: 401Body: { "readableStream": {},
1 messages · Page 1 of 1 (latest)
The error code 401 you're encountering is typically related to issues with the API key. This error can occur if you're not properly passing the API key or if you're exceeding the character input limit.
Here are the character input limits for each plan:
- Non signed in accounts: 333 characters
- Free accounts: 2,500 characters
- All paid plans: 5,000 characters
If you're sending more than the character limit for your account type, you might encounter this error. Also, if you've attempted to set your API key but still receive a 401 error, double-check that you've used "xi-api-key" exactly with no typos when setting your API key.
The API will still work normally with no API key temporarily to allow users to try out the API. However, this can cause confusion since users see it working at first but then start getting unexpected errors.
If you're still encountering issues, I recommend checking your API key and the amount of text you're trying to process.