This topic describes how to obtain the API key, application ID, and workspace ID that are required for application calling.
Obtain an API key
Log on to Alibaba Cloud Model Studio
Hover your cursor over in the upper-right corner of the page and select API-KEY.
On the My API Key page, view the API keys.
For more information about the scope of API keys, see Obtain an API key.
Obtain the application ID and workspace ID
Method 1: Obtain the IDs from the API sample
Go to the My Applications page.
Click Call on the desired application card.
The
app_id
andworkspace
fields are automatically filled in the API sample.
workspace
is required when calling an application in a sub-workspace.workspace
is optional when calling an application in the default workspace. If your application is in the default workspace,workspace
is not included in the API sample.
Method 2: Obtain the IDs separately
Obtain the application ID
Go to the My Applications page.
Find the desired application card and view the application ID.
Obtain the workspace ID
View the current workspace
In the left-side navigation pane, click the icon.
View the workspace ID on the Workspace Details.
View all workspaces
Hover over the icon in the upper-right corner of the page and select Manage Alibaba Cloud Account from the drop-down list.
On the Workspace Management page, view the workspace IDs of all workspaces.