Frequently Asked Questions
Why do some API calls return a 404 Not Found error?
This is usually because your `base_url` is configured incorrectly. Many libraries (like LangChain) require the `base_url` to include the `/v1` suffix, not just the domain name.Please check your configuration and ensure it is set to `https://api.xaixapi.com/v1` (for OpenAI-compatible interfaces).
Why am I getting a "401: Incorrect API key provided..." error?
This error indicates that your request was sent to OpenAI's official servers instead of our proxy server. This typically happens when you have only configured the API Key but have not changed the API request address (`base_url`) to `https://api.xaixapi.com`.What should I do if the open-source project I'm using doesn't support configuring a `base_url`?
In this situation, you will need to find the project's source code and hardcode the API request address from `api.openai.com` to `api.xaixapi.com`.Why do I get a 401 Unauthorized error when calling user management APIs (e.g., /x-users)?
To prevent abuse, calling core management APIs (such as creating/managing child users) has a minimum balance requirement for the calling account. Typically, your account balance needs to be greater than `\$100` to gain the necessary permissions. Please ensure your account has sufficient funds.What are the requirements for creating a child user?
Creating a child user requires meeting two main conditions: 1. Your parent account balance must be greater than `\$100`. 2. The initial top-up amount for the newly created child user cannot be less than `\$2`.In the XAI XAPI system, every account is independent. As long as a child user's balance also meets the above conditions, it can also create its own child users.