> For the complete documentation index, see [llms.txt](https://docs.umbraco.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.umbraco.com/ai-in-umbraco/providers/alibaba.md).

# Alibaba Cloud Model Studio

Configure Alibaba Cloud Model Studio as an AI provider for Qwen chat and embedding models.

Alibaba Cloud Model Studio provides access to Qwen models, supporting the Chat and Embedding capabilities.

## Installation

{% code title="Package Manager Console" %}

```powershell
Install-Package Umbraco.AI.Alibaba
```

{% endcode %}

Or via .NET CLI:

{% code title="Terminal" %}

```bash
dotnet add package Umbraco.AI.Alibaba
```

{% endcode %}

## Connection Settings

| Setting  | Required | Description                                                                                                                |
| -------- | -------- | -------------------------------------------------------------------------------------------------------------------------- |
| API Key  | Yes      | Your Alibaba Cloud Model Studio API key from [bailian.console.alibabacloud.com](https://bailian.console.alibabacloud.com/) |
| Endpoint | No       | Custom endpoint URL (defaults to `https://dashscope-intl.aliyuncs.com/compatible-mode/v1`, the international region)       |

![Alibaba Cloud Model Studio connection detail showing API Key and Endpoint fields](https://583970477-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCHKT9bQhbR3swAdBvil4%2Fuploads%2Fgit-blob-fd998cab03d408a1529363c82645a11f96a0b3ec%2Falibaba-create-connection.png?alt=media)

### Getting an API Key

1. Sign up at [bailian.console.alibabacloud.com](https://bailian.console.alibabacloud.com/).
2. Navigate to **API Key Management**.
3. Create a new API key.
4. Copy the key (it won't be shown again).

{% hint style="warning" %}
Keep your API key secure. Never commit it to source control or expose it in client-side code.
{% endhint %}

### China Region

Model Studio also serves a China (Beijing) region. To use it, set **Endpoint** to `https://dashscope.aliyuncs.com/compatible-mode/v1`.

{% hint style="info" %}
The default model is `qwen-plus` for chat and `text-embedding-v4` for embeddings. Model Studio's catalog also includes other vendors' models behind the same endpoint; this provider only surfaces Qwen models.
{% endhint %}

## Related

* [Providers Overview](https://github.com/umbraco/UmbracoDocs/tree/main/18/ai-in-umbraco/providers/README.md).
* [Managing Connections](/ai-in-umbraco/backoffice/managing-connections.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.umbraco.com/ai-in-umbraco/providers/alibaba.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
