Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Alibaba Cloud Model Studio SDKs - 10 languages recorded

Alibaba Cloud Model Studio SDKs by language

Alibaba Cloud Model Studio ships official SDKs for Python and Java. For TypeScript and Go, its docs point to the OpenAI SDK. Its docs list no SDK for C#, Ruby, PHP, Rust, Swift and Kotlin.

Verified against each provider's own SDK docs and package registry pages. Status labels are the provider's own; no version numbers are recorded.

Alibaba Cloud Model Studio's SDK docs: www.alibabacloud.com/help/en/model-studio/install-sdk. Compare every provider in the SDK grid.

Official
the provider's own SDK.
Beta
the provider's own SDK, which it labels beta (Fireworks AI says alpha).
OpenAI SDK
the provider's docs point to the OpenAI SDK for this language.
Community
a library the provider's docs link but do not ship. Not official.
None
the provider's SDK docs list no SDK for this language.
-
Not recorded: no entry in the data for this language.

Python

Official SDK
Package
dashscope
Install
Install
pip install -U dashscope
Docs
www.alibabacloud.com/help/en/model-studio/install-sdk
Notes
No repo linked; PyPI lists homepage https://dashscope.aliyun.com/ and author Alibaba Cloud. The OpenAI Python SDK is the documented alternative (pip install -U openai).

From the docs

Model Studio provides official DashScope SDKs (Python, Java) and supports OpenAI SDKs (Python, Node.js, Java, Go) for OpenAI-compatible API calls. ... You can call models on Model Studio using the DashScope Python SDK (recommended) or the OpenAI Python SDK.
www.alibabacloud.com/help/en/model-studio/install-sdkpypi.org/project/dashscope
Python SDKs from every provider

TypeScript and JavaScript

Points to the OpenAI SDK

Not a Alibaba Cloud Model Studio SDK. For TypeScript, Alibaba Cloud Model Studio's docs point you to the OpenAI SDK. Base URL and limits.

Package
openai
Install
Install
npm install --save openai
Repo
github.com/openai/openai-node
Docs
www.alibabacloud.com/help/en/model-studio/install-sdk
Notes
The npm package named 'dashscope' is published by an individual (linkwisdom), not Alibaba; it is not official.

From the docs

Model Studio provides official DashScope SDKs (Python, Java) and supports OpenAI SDKs (Python, Node.js, Java, Go) for OpenAI-compatible API calls.
www.alibabacloud.com/help/en/model-studio/install-sdk
TypeScript SDKs from every provider

Go

Points to the OpenAI SDK

Not a Alibaba Cloud Model Studio SDK. For Go, Alibaba Cloud Model Studio's docs point you to the OpenAI SDK. Base URL and limits.

Package
github.com/openai/openai-go/v3
Install
Install
go get 'github.com/openai/openai-go/v3'
Repo
github.com/openai/openai-go
Docs
www.alibabacloud.com/help/en/model-studio/install-sdk

From the docs

Model Studio provides official DashScope SDKs (Python, Java) and supports OpenAI SDKs (Python, Node.js, Java, Go) for OpenAI-compatible API calls.
www.alibabacloud.com/help/en/model-studio/install-sdk
Go SDKs from every provider

Java

Official SDK
Package
com.alibaba:dashscope-sdk-java
Install
Install
dependencies {
    implementation group: 'com.alibaba', name: 'dashscope-sdk-java', version: 'the-latest-version'
}
Docs
www.alibabacloud.com/help/en/model-studio/install-sdk
Notes
No repo linked; the docs link the Maven repository page. The OpenAI Java SDK is the documented alternative.

From the docs

Model Studio provides official DashScope SDKs (Python, Java) and supports OpenAI SDKs (Python, Node.js, Java, Go) for OpenAI-compatible API calls.
www.alibabacloud.com/help/en/model-studio/install-sdk
Java SDKs from every provider

No SDK in the docs

Alibaba Cloud Model Studio's SDK docs list no SDK for these languages. The quote shows what they do list.

More on Alibaba Cloud Model Studio

Newsletter

Know when a provider ships a new SDK

One email per week. New models, new SDKs and the API changes that break your client, and what they mean for your stack.