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 Alibaba Cloud Model Studio 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:When the message
Successfully installed ... openai-x.x.x appears in the terminal, the OpenAI Python SDK has been installed successfully.What to do next
After successfully installing the SDK, you can:
- Browse the Model Studio console to choose a model that fits your business scenario.
- Start building your application using models for text generation, image generation, video generation, speech synthesis, speech recognition, embedding, or reranking.
- Learn about the compatibility details with the OpenAI API.