All Products
Search
Document Center

Alibaba Cloud Model Studio:What is Alibaba Cloud Model Studio

Last Updated:Dec 16, 2024

Alibaba Cloud Model Studio is an all-in-one platform for foundation model development and application building. Model Studio allows both developers and business professionals to actively engage in the development and deployment of foundation model applications. With its user-friendly interface, you can develop an application in just 5 minutes, focusing more on innovation.

Alibaba Cloud Model Studio enables you to:

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

通义new Qwen-Plus

通义new Qwen-Turbo

Model name for API calls

qwen-max

qwen-plus

qwen-turbo

Maximum context

(Tokens)

8,000

131,072

8,000

Input unit price

(1,000 tokens)

$0.0100

$0.0030

$0.0004

Output unit price

(1,000 tokens)

$0.0300

$0.0090

$0.0012

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.
  • Qwen-Max provides the best inference performance among Qwen models, especially for complex tasks.

  • Qwen-Plus provides a balanced combination of performance, speed, and cost.

  • Qwen-Turbo provides fast speed and low cost, suitable for simple tasks.

Apart from the models mentioned above, Model Studio supports more models. For a list of all models supported in Model Studio, see Model overview.

Why choose Model Studio

  • Qwen models: Model Studio provides official API interfaces for the commercial Qwen models.

  • Development tools: Model Studio provides features such as prompt optimization, knowledge index management, and function calling, facilitating the development of production-level model applications.

  • Lower costs: Model Studio eliminates the need for hardware investment and maintenance costs. You are charged only for what you use, significantly reducing overall expenses.

  • Data protection: Alibaba Cloud ensures rigorous data privacy protection and does not use customer data for model training. Data is encrypted during transmission for application building, safeguarding data security.

Getting started with Model Studio

Note

Model Studio offers a free quota for new users to trial and use the models.