An API key is an important identity credential for calling the AI service. You can create, view, rename, and delete API keys on the AI service page.
On the API Keys page, you can perform the following operations:
Create an API key: Generate a new access credential for an application or service.
View the API key list: View the name, ID, creation time, and last used time of existing API keys.
Edit the name: Change the name of an API key as needed for easier identification and management.
Delete an API key: Delete an API key that is no longer in use to reduce the risk of credential leakage.
Prerequisites
- You have enabled and accessed the AI service page.
Create an API key
Click Create API Key in the upper-right corner of the page.
In the dialog box that appears, enter a name of 2 to 64 characters in length, which can contain Chinese characters, digits, letters, underscores (_), and hyphens (-), and select I have agreed to the agreement and understand the associated risks.
Click OK. The generated API key is displayed.
Copy and save the generated API key.
Note
After an API key is created, the complete API key is displayed only once. Make sure to copy and save it. You cannot view the complete content of an API key after it is displayed.
View the API key list
The following fields are displayed in the list:
Name: The display name of the API key, which facilitates the identification of credentials for different purposes.
ID: The unique identifier generated by the system for distinguishing between different API keys.
API Key: Only the desensitized part of the API key is displayed on the page for the identification of the current credential.
Created At (UTC+8): The creation time of the API key.
Last Used (UTC+8): The time when the API key was last called. If the API key has not been used, it is displayed as
-.Actions: You can perform more operations on the target API key, such as modifying the name or deleting the API key.
You can view the basic information of all current API keys. Based on this information, you can quickly determine the following:
Whether an API key is still in use.
Which application or business scenario the API key corresponds to.
Whether there are long-term unused credentials that can be cleaned up.
Modify the name of an API key
In the API Keys list, find the target API key.
In the Actions column, click ....
Select Edit Name.
Enter a new name and save it.
We recommend that you use names with business significance, such as names that distinguish between applications, environments, or purposes, to facilitate maintenance.
Delete an API key
In the API Keys list, find the target API key.
In the Actions column, click ....
Select Delete.
Complete the deletion operation as prompted.
Notice
After an API key is deleted, applications or scripts that use the API key can no longer call AI services. Therefore, make sure that no business is using the API key before you delete it.
