## Overview

**Alibaba Cloud Model Studio** is Alibaba's model service (the **Qwen** family, the Qwen-Audio voices and **Wan**
video). A robot can use it as its main or fallback model, and also for knowledge-base embeddings, audio
transcription, voice notes, image and video generation and live call answering.

A Model Studio key **only works in the region and the workspace it was created in**. That is why, besides the key,
the platform asks for the **region** and, when needed, the **WorkspaceId**. The region decides where data stays and
where inference runs.

## Prerequisites

- An Alibaba Cloud account with Model Studio enabled and an API key created in the Model Studio console.
- Knowing the region the key was created in. **Singapore (`ap-southeast-1`)** is the default and the only region
  with a free quota; some capabilities do not exist in the other regions.
- In **Frankfurt** and **Tokyo**, the **WorkspaceId** is required (those regions have no shared domain).

## Step by step

### Connect the account key

1. Go to **Settings → Integrations → Alibaba Cloud Model Studio (Qwen)**.
2. Paste the **API key**.
3. Choose the **region** where the key was created.
4. If the region is Frankfurt or Tokyo, fill in the **WorkspaceId** (letters, digits and hyphens only).
5. Save. The key, the region and the WorkspaceId reach the Maestro together.

### Use it in a robot

1. Open the robot in **Settings → Bots**.
2. In **Explore live models**, choose **Alibaba Cloud Model Studio** and the capability (chat, embeddings,
   transcription, voice, image, video or calls).
3. The list comes from Alibaba itself, in your key's region. Click **Use** (or **Set as default** for chat).

### Installation key (operator)

The installation operator can register a key in **Super Admin → AI providers**, with the region and the WorkspaceId
in the fields next to it. The **Test** button lists the models the key reaches and **spends no tokens**.

## Settings & options

| Field | Default | What it does |
|---|---|---|
| Region | Singapore (`ap-southeast-1`) | Where the key is valid and where data stays. Options: Singapore, Virginia (US), Frankfurt, Tokyo, Hong Kong. |
| WorkspaceId | empty | The key's workspace. Required in Frankfurt and Tokyo; empty uses the region's shared domain. |
| Alibaba voice (robot) | the Maestro default voice (`longanhuan_v3.1`, multilingual with Portuguese) | Voice of voice notes and of live calls through Alibaba. |

## Use cases

- Use the Qwen models as an alternative to the providers you already have, with your own Alibaba account key.
- Keep inference in a specific region for data-residency requirements.
- Generate images (Qwen-Image) and short videos (Wan) with the generative copilot.

## Tips, limits & best practices

- **Previews**: **Wan 3.0** video and **Alibaba Realtime** call answering carry the preview badge. A preview never
  becomes a default by itself.
- **Live calls**: they only work with a **Singapore or Beijing** key, and Alibaba **does not report the usage** of
  these calls — they are recorded, but without a price.
- **Embeddings**: changing the embedding model requires re-indexing the knowledge base.
- `qwen4-max-preview` does not appear for regular keys: Alibaba offers it only on its coding-tools plan, not for
  services.
- Prices shown in the explorer are the reference prices the Maestro publishes; billing is your Alibaba account's.
- **You decide what happens when Alibaba transcription fails.** In **Transcription fallbacks** (on the robot, in its
  transcription section, or on the account, in **Settings → Bots → Audio transcription**), **Automatic (Groq →
  OpenAI)** keeps the behavior of before: the contact's voice note goes to Groq and then OpenAI. **Choose the
  fallbacks** uses only the list you build, in order; with no fallback, the audio goes only to Alibaba and to no
  other provider — the way to keep the audio on Alibaba (for data residency, for example). See
  [Transcription order](/hc/ajuda/articles/inboxes-channels-ordem-da-transcricao-en).
- **When the Alibaba voice fails, another provider takes over.** If the chosen voice fails, the audio reply goes to
  OpenAI, ElevenLabs and Google, on the installation's keys. If the account needs the voice to stay on Alibaba only,
  do not make keys of those providers available to it.

## Troubleshooting

- **"key rejected" with the region and the workspace in the message** — the key was created in another region or
  workspace. Check the region in the Model Studio console and the WorkspaceId.
- **Frankfurt or Tokyo without a WorkspaceId** — fill in the WorkspaceId; without it there is no address for those
  regions.
- **The robot does not answer calls through Alibaba** — check that the key is from Singapore or Beijing; the call
  history shows the reason.

## See also

- [AI tokens and provider keys](/hc/ajuda/articles/administration-tokens-ia-en)
- [Mistral AI as an AI provider](/hc/ajuda/articles/maestro-brain-provedor-mistral-en)