#I am getting a 400 error sending:{ "text": "The Alaska Railroad Denali Star Train, offers daily

1 messages · Page 1 of 1 (latest)

thick knotBOT
#
AI-generated Answer for .razgar

The error code 400 you're encountering is most likely due to exceeding the character input limit. The text you're sending has more than 333 characters, which is the limit for non-signed in accounts.

If you have a free account, you can send up to 2,500 characters, and if you have a paid subscription, you can send up to 5,000 characters.

Here's an example of a 400 response detail:

"detail": {     
  "status": "max_character_limit_exceeded",     
  "message": "This request's text has 627 characters and exceeds the character limit of 333 characters for non signed in accounts."
} 

If you're sending more than 333 characters but less than 2,500 with a free account or less than 5,000 with a paid subscription, and you're still getting a 400 error, it might be because you have not sent your API key properly.

Make sure you have 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, but this can cause confusion since users see it working at first but then start getting unexpected errors.

worldly mural
#

This is not a free account; it is a paid "creator" subscription.

thick knotBOT
#
AI-generated Answer for .razgar

Once you sign up, you will be automatically assigned to the free tier. However, you mentioned that you have a "Creator" subscription, which is a paid plan.

On the subscription page, each plan details its offerings. This includes information about the total monthly character allotment, the number of custom voices simultaneously, and the quality of audio provided.

You can upgrade your subscription at any time, and any unused quota from your last subscription will roll over to the new plan. However, please remember that unused quota does not roll over from month to month; it is an allocated amount for that month only.

From the subscription page, you can also downgrade your subscription at any point in time if you would like. When downgrading, it won’t take effect until the current cycle ends, ensuring that you won’t lose any of the monthly quota before your month is up.

When generating content on our paid plans, you get commercial rights to use that content. If you use a cloned voice, it is necessary to obtain the appropriate permission to use them commercially, even on a paid plan.

For more information on payment methods, please refer to the Help Center.

cerulean orchid
# worldly mural This is not a free account; it is a paid "creator" subscription.

Hello, whenever API requests are unsuccessful (response code is not 200) you should log the response body to troubleshoot. When its not successful the response body will be error detail in JSON format.

A lot of the time API issues are related to not passing the API key correctly. The API will function in sort of a trial mode for awhile if no key is provided or it isn't pass correctly.

There is a fair chance that could be relevant here although impossible to know without seeing the error detail in the response body or the code for how you are trying to pass the api key.