Skip to main content

Install the SDK

You can use the official DashScope SDK of Alibaba Cloud Model Studio (which supports Python and Java), or call the OpenAI-compatible interface of Alibaba Cloud Model Studio through the multi-language SDKs officially provided by OpenAI (such as Python, Node.js, Java, and Go).

To call realtime voice or multimodal models supported by the Realtime API through AOQ, see AOQ SDK download. For supported models and protocols, see Models and protocol support.

Install the SDK

  • Python
  • Java
  • Node.js
  • Go
Requires python >= 3.9.You can call models on the Alibaba Cloud Model Studio platform using the OpenAI Python SDK or the DashScope Python SDK.
  • Install the OpenAI Python SDK
  • Install the DashScope Python SDK
Install or upgrade the OpenAI Python SDK by running the following command:
# If this fails, replace pip with pip3
pip install -U openai
When the terminal displays Successfully installed ... openai-x.x.x, the OpenAI Python SDK has been successfully installed.

Next steps

After successfully installing the SDK, you can: