All Products
Search
Document Center

Alibaba Cloud Model Studio:Obtain the API key, application ID, and workspace ID

Last Updated:Nov 27, 2024

This topic describes how to obtain the API key, application ID, and workspace ID that are required for application calling.

Obtain an API key

  1. Log on to Alibaba Cloud Model Studio

  2. Hover your cursor over image in the upper-right corner of the page and select API-KEY.

    image

  3. 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

  1. Go to the My Applications page.

  2. Click Call on the desired application card.

    The app_id and workspace fields are automatically filled in the API sample. image

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

  1. Go to the My Applications page.

  2. Find the desired application card and view the application ID.image

Obtain the workspace ID

View the current workspace

  1. In the left-side navigation pane, click the image icon.

  2. View the workspace ID on the Workspace Details. image

View all workspaces

  1. Hover over the image icon in the upper-right corner of the page and select Manage Alibaba Cloud Account from the drop-down list. image

  2. On the Workspace Management page, view the workspace IDs of all workspaces.image