New User Onboarding Process
This guide helps you complete your first API call from scratch. As long as the Base URL, API Token, and model name are correct, most OpenAI-compatible clients and SDKs can connect successfully.
1. Sign Up and Log In
After registering an account, enter the console. After logging in, check your account status, user group, and available balance. If you do not have available credit, recharge first.
2. Create an API Token
In the console, go to the token or Token management page and create a new API Token. We recommend entering a clear name.
After creating the Token, save the complete Token only once in a secure location. When connecting an application, it is typically sent as an Authorization: Bearer <Token> request header. Do not write the Token into frontend code, commit it to a Git repository, or include it in screenshots.
We recommend creating separate development, testing, and production Tokens for each environment, and setting the minimum necessary permissions, quota, validity period, and IP restrictions for production Tokens, if the platform provides these options.
3. Obtain the Base URL
The Base URL is the platform's API address. OpenAI-compatible requests typically use:
https://api.cloudaikit.com/v1Some clients automatically append /v1 to the path. In this case, you only need to enter the root domain address. Read the client's field descriptions before entering it.
4. Select a Model
View the available models in the model list or pricing page in the console. Copy the model name displayed by the platform; the model name displayed by the platform may not be the same as the official model name.
If the model list is empty, first check whether the current account, user group, and Token have model permissions, and then confirm whether an available channel exists. Do not guess which models are available based directly on model names found online.
5. Make Your First Request
We recommend first using the cURL request in Quick Code Examples for testing. After the request succeeds, migrate to a client or SDK.
6. Check Logs and Usage
After the first call, go to the console to check the request logs, balance changes, Token consumption, model, channel, and Request ID. Logs are the primary basis for troubleshooting 401, 403, 429, nonexistent models, upstream errors, and abnormal charges.
We recommend adding the following information to your application logs: request time, model name, HTTP status code, latency, Request ID, and whether the request is streamed. Do not record the complete API Token or users' private content.
