# Alibaba Cloud

The `alibaba` provider access the [Alibaba Cloud](https://www.alibabacloud.com/) models.

```js
script({
  model: "alibaba:qwen-max",
});
```

1. Sign up for a [Alibaba Cloud account](https://www.alibabacloud.com/help/en/model-studio/developer-reference/get-api-key) and obtain an API key from their [console](https://bailian.console.alibabacloud.com/).

2. Add your Alibaba API key to the `.env` file:

   .env

   ```txt
   ALIBABA_API_KEY=sk_...
   ```

3. Find the model that best suits your needs by visiting the [Alibaba models](https://www.alibabacloud.com/help/en/model-studio/developer-reference/use-qwen-by-calling-api).

4. Update your script to use the `model` you choose.

   ```js
   script({
       ...
       model: "alibaba:qwen-max",
   })
   ```

### Aliases

The following model aliases are attempted by default in GenAIScript.

| Alias      | Model identifier  |
| ---------- | ----------------- |
| large      | qwen-max          |
| small      | qwen-turbo        |
| long       | qwen-plus         |
| embeddings | text-embedding-v3 |

### Limitations

* Uses [OpenAI compatibility layer](https://www.alibabacloud.com/help/en/model-studio/developer-reference/compatibility-of-openai-with-dashscope)
* listModels
* Ignore prediction of output tokens
* Tools implemented as fallback tools automatically.