Get API Key
To use this platform's API in a client or code, you first need to create an Access Token (API Key).
📝 Steps
- Login to Console: Open the Console Homepage.
- Enter Token Management: Click 「API Key」 in the left navigation bar.
- Create New API Key:
- Click the 「Create API Key」 button in the upper right corner.
- Name: Enter an easily identifiable name.
- Expiration: Select the validity period of the Key. You can leave it blank or choose “Never Expire”.
- Quota Limit: You can set the maximum available quota for this Key (in USD or points) to prevent excessive charges if the key is leaked. Set to “Unlimited” to use the account’s global balance.
- Bind Group: Select the group to use (e.g.
defaultorvip). Different groups may have different upstream channels and rate discounts.
- Submit and Copy: Click 「Submit」. The newly created Key will appear in the list. Click the 「Copy」 button next to the list item to get a key in the form of
sk-xxxxxxxxxxxxxxxxxxxxxxxx.
🔒 Key Security Recommendations
- Do not publish publicly: Never hardcode the API Key in frontend public code or upload it to public GitHub repositories.
- Isolate tokens by application: It is recommended to create independent API Keys for different applications or team members, so that you can accurately track consumption in the logs and disable a single Key at any time when anomalies occur.