All Products
Search
Document Center

Alibaba Cloud Model Studio:What is Alibaba Cloud Model Studio

Last Updated:Apr 23, 2025

Alibaba Cloud Model Studio provides official APIs for Qwen models. With cost-efficient and high-performance model services, it helps you focus on business innovation without the burden of technical maintenance.

api Call models

You can call a model with just a few lines of code.

Model Studio is compatible with the OpenAI interface protocol. The base_url is https://dashscope-intl.aliyuncs.com/compatible-mode/v1
import os
from openai import OpenAI
client = OpenAI(
    api_key=os.getenv("DASHSCOPE_API_KEY"), # To obtain an API key, see https://www.alibabacloud.com/help/en/model-studio/developer-reference/get-api-key
    base_url="https://dashscope-intl.aliyuncs.com/compatible-mode/v1"
)
completion = client.chat.completions.create(
    model="qwen-plus", # For a list of models, see https://www.alibabacloud.com/help/en/model-studio/getting-started/models
    messages=[{"role": "user", "content": "Who are you?"}]
)
print(completion.choices[0].message.content)

Supported models

Flagship models

通义new Qwen-Max

Best inference performance

通义new Qwen-Plus

Balanced performance, speed and cost

通义new Qwen-Turbo

Fast speed and low cost

Maximum context

(Tokens)

32,768

131,072

1,008,192

Minimum input price

(Million tokens)

$1.6

$0.4

$0.05

Minimum output price

(Million tokens)

$6.4

$1.2

$0.2

Token is the basic unit that models use to process and generate text. A token typically represents a word, subword, or phrase in English, and a character or a word in Chinese.

Apart from the models mentioned above, Model Studio supports more models, see Models.

Get started with Model Studio

Note

We offer a free quota for new users. You can use the quota to try and test the models freely.

FAQ

How is Model Studio charged?

OSZAR »