Skip to content
Docs

Create an Alibaba Cloud Model Studio API key

This guide is part of the Publicus connection catalog. Once you have the credentials, connect the service and Publicus stores them for you.

Distilled from Alibaba Cloud Model Studio’s Obtain an API key, Make your first API call to Qwen, Regions and OpenAI compatible pages, retrieved 2026-10-16.

Model Studio is Alibaba Cloud’s API for the Qwen models, open-source and commercial, and for some third-party models, through an OpenAI-compatible interface. Each region has its own endpoint, API keys and model list, and they cannot be used across regions, so decide on the region first: it is where your requests and data are stored. Germany (Frankfurt) offers an EU service deployment scope.

  1. Activate Model Studio. Sign in with your Alibaba Cloud account (create one if needed), go to Alibaba Cloud Model Studio, and read and accept the Terms of Service. If no Terms of Service dialog appears, the service is already active.

  2. For Germany (Frankfurt), Japan (Tokyo), China (Hong Kong) or US (Virginia): create a workspace. These regions separate service deployment scopes by workspace. On the Workspace Management page, create a workspace and select its service deployment scope (Frankfurt: Global or EU). In China (Beijing) and Singapore you can use the default workspace.

  3. Open the API Key page of your region, for example Singapore, and select the region in the upper-right corner. For US (Virginia), switch the console’s region to US (Virginia) and choose API Key in the left-side navigation pane. Creating a key takes an Alibaba Cloud account or a RAM user with administrator or API-Key page permissions.

  4. Click Create API Key and fill in the dialog:

    • Workspace: the workspace from step 2, or the default workspace;
    • Description (optional, up to 200 characters): where the key will be used;
    • Permissions: All, or Custom to set an IP address whitelist (up to 20 addresses or CIDR blocks) and, with the Access Scope toggle, the models the key may call.

    Click OK.

  5. Copy the API key and the API Host now. The dialog shows the complete key and the API Host (the service endpoint, {WorkspaceId}.{region}.maas.aliyuncs.com). Keys created after Model Studio’s key security upgrade start with sk-ws and cannot be viewed again once the dialog is closed; if the key is lost, reset it or create a new one. The API Host is also listed later in the API Host column of the Workspace Management page.

  6. Paste the API key and the API Host into the connection.

A key used against another region’s endpoint is refused with HTTP 401 invalid_api_key (“Incorrect API key provided”). That means the key and the API Host come from different regions, not that the key is wrong. The pages above document no model-listing endpoint, so the key is first exercised by a real request.

Open Connections under Credentials, choose Alibaba Cloud, and pick Alibaba Cloud Model Studio API key. Publicus asks for exactly the fields listed above and keeps them in your workspace’s secret storage.

See also: Alibaba Cloud in the catalog.

This guide is maintained by Publicus and published under CC BY 4.0.