Managing API Keys in ModelArts Studio (MaaS)
Operation Scenarios
When using MaaS, you often need to call model services via APIs for tasks such as data requests and model inference. However, improper management of API keys (loss or leakage) can lead to unauthorized access risks, thereby compromising service security and stability. To ensure the secure management of API keys and prevent unauthorized access, the MaaS platform offers API key management, enabling you to create, edit, and manage permissions for API keys. This ensures that only users with valid API keys can successfully call model services, and only those with appropriate permissions can manage API Keys, while also reducing the risk of prolonged key exposure. This section explains how to create, edit, and delete API keys.
Constraints
- Each account can have up to 30 API keys. If you exceed this limit, delete old keys before adding new ones.
- After you create an API key, you must save it right away. The system does not store the key as plain text.
- After you delete an API key, it becomes invalid right away.
Creating an API Key
You can create up to 30 keys. Each key is displayed only once after creation. Keep it secure. If the key is lost, it cannot be retrieved. In this case, create a new API key.
- Log in to the ModelArts Studio (MaaS) console and select the target region on the top navigation bar.
- In the navigation pane, choose API Key Management.
- On the API Key Management page, click Create API Key, enter the tag and description, and click OK.
The tag and description cannot be modified after the key is created.
- In the displayed dialog box, copy the key and save it to a secure location, and click Saved. Confirm and Close.
Figure 1 Saving an API key
After you close the dialog box, the key cannot be viewed again. Once you create the API key, it appears on the API Key Management page. The system shows only the first and last four characters by default.
Figure 2 API key
Editing an API Key
After an API key is created, you can only modify the description and permissions.
- Log in to the ModelArts Studio (MaaS) console and select the target region on the top navigation bar.
- In the navigation pane, choose API Key Management.
- In the Operation column of the target API key, click Edit.
- In the displayed dialog box, modify the description and permissions as required, and click OK.
For details, see Table 1.
Deleting an API Key
If you reach the API key limit or if a key is leaked or lost, delete unused API keys. Deleting the API key will permanently remove it and prevent its use or retrieval.
- Log in to the ModelArts Studio (MaaS) console and select the target region on the top navigation bar.
- In the navigation pane, choose API Key Management.
- Click Delete on the right of the target API key.
- In the Delete API Key dialog box, click OK.
FAQs
Helpful Links
- You can use your API key to authenticate requests to models on MaaS. For details, see Calling a Model Service in ModelArts Studio (MaaS).
- MaaS offers best practices for building AI applications using its DeepSeek APIs and tools like Cherry Studio, enabling fast deployment of AI applications. For details, see Using ModelArts Studio (MaaS) DeepSeek API to Build AI Applications.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot