All Products
Search
Document Center

Alibaba Cloud Model Studio:Install Alibaba Cloud Model Studio SDK

Last Updated:Aug 14, 2024

Alibaba Cloud Model Studio supports SDKs in the following programming languages:

Python

Prerequisites

Python 3.8 or later is installed. You may need to replace pip with pip3.

Procedure

Run the following command to install Alibaba Cloud Model Studio SDK for Python:

pip install dashscope

To update the SDK, run the following command:

pip install dashscope --upgrade

Java

Prerequisites

Java 8 or later is installed. For more information, see Maven Repository.

Procedure

Run the following commands to add Java dependencies. Replace the-latest-version with the latest version number of the SDK.

<!-- https://mvnrepository.com/artifact/com.alibaba/dashscope-sdk-java -->
<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>dashscope-sdk-java</artifactId>
    <version>the-latest-version</version>
</dependency>
// https://mvnrepository.com/artifact/com.alibaba/dashscope-sdk-java
implementation group: 'com.alibaba', name: 'dashscope-sdk-java', version: 'the-latest-version'