The Skill API uses a Model Studio API key for authentication and is accessed through a workspace endpoint.
The Skill API uses an Alibaba Cloud Model Studio API key for authentication. Each request carries the API key in an HTTP header.
Set the API key as an environment variable:
Each request carries the
Get an API key
- Log on to the Alibaba Cloud Model Studio console.
- Go to the API key page, and create and copy an API key.
Configure the endpoint
workspace_id: the workspace ID. Log on to the Model Studio console and copy it from the workspace menu in the upper-right corner.
Send a request
Set the API key as an environment variable:
Authorization header:
Permissions
- Alibaba Cloud primary accounts can call all APIs.
- RAM users must be granted the required permissions.
- The scope of an API key is determined by the console configuration.
If identity information is missing or invalid, the API returns
401 WORKSPACE_ID_ILLEGAL. For error handling, see Skill API error codes.