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:Look for
Successfully installed ... dashscope-x.x.x to confirm installation.What to do next
After installing the SDK:
- Select a model that fits your scenario from the Model Studio console.
- 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.