Skip to main content

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.

To call real-time speech or multimodal models supported by Realtime API over AOQ, see AOQ SDK downloads. For supported models and protocols, see Model and protocol support.

Install the SDK

  • Python
  • Java
  • Node.js
  • Go
The SDK requires Python >= 3.9.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:
Text Generation
Image Generation
Video Generation
World models
Audio
  • Audio generation
Realtime API
Text Embedding
Decision Model
TokenPlan
Model Production