Skip to main content
API Usage

Install the SDK

Model Studio provides official DashScope SDKs (Python, Java) and supports OpenAI SDKs (Python, Node.js, Java, Go) for OpenAI-compatible API calls.

Install the SDK

  • Python
  • Java
  • Node.js
  • Go
The SDK requires Python >= 3.8.You can call models on Model Studio using the DashScope Python SDK (recommended) or the OpenAI Python SDK.
  • Install the DashScope Python SDK
  • Install the OpenAI Python SDK
Install or upgrade the DashScope Python SDK:
# If this fails, replace pip with pip3
pip install -U dashscope
Look for Successfully installed ... dashscope-x.x.x to confirm installation.

What to do next

After installing the SDK: