This document uses the Qwen model deployment as an example to demonstrate how to use the model deployment feature of Alibaba Cloud Model Studio through HTTP API calls.
Prerequisites
- You have read Dedicated Deployment Overview and Deploy Models Using APIs to understand how to use model deployment APIs and the basic steps for deploying models on Alibaba Cloud Model Studio.
- You have configured your Model Studio API key. For more information, see Obtain an API Key.
Get a List of Deployable Models
Request Example
Run the following command to list deployable models. Use version=v1.0 to retrieve a full response that includes deployment plans and templates.
Request Parameters
Parameter | Type | Passing Parameters | Required | Description |
|---|---|---|---|---|
page_no | Number | query | No | Page number. Default is 1. |
page_size | Number | query | No | Page size. Default is 50. Maximum is 100. Minimum is 1. |
model_source | String | query | No | Model source. |
version | String | query | No | API version. Use |
Response Example and Parameters
Click to view the details.
Click to view the details.
Response Parameters
Parameter | Type | Description |
|---|---|---|
models | Array | List of deployable models. |
models[].model_name | String | Model name. |
models[].plans | Array | List of supported deployment plans for this model. Returned when using |
models[].plans[].plan | String | Deployment plan type: |
models[].plans[].templates | Array | List of deployment templates. Returned when |
page_no | Number | Page number of the query. |
page_size | Number | Page size of the query. |
total | Long | Total number of models that match the query criteria. |
Template field description (templates)
Parameter | Type | Description |
|---|---|---|
template_id | String | Template ID. Pass it as the |
template_name | String | Template display name. |
template_type | String | Template type: |
template_version | String | Template version. |
template_desc | String | Template description. |
roles | Object | Node role configuration. COUPLED mode has a |
Roles Node Fields
Parameter | Type | Description |
|---|---|---|
model_unit_spec | String | Model unit specification. |
capacity_unit_per_instance | Number | Capacity units per instance, also called base_capacity. When you create a deployment, |
Create a Model Deployment Task
Request Example
Example 1: Model Unit Deployment (COUPLED Mode)
Use template_id to specify MU1 and set capacity to the number of capacity units:
Example 2: Model Unit Deployment (PD-Separated Mode)
Use the MU1-PD template. Set prefill_capacity and decode_capacity:
Example 3: PTU v2 Deployment
Billed by token usage:
Example 4: LoRA Shared Deployment
Billed by token usage:
Request Parameters
Parameter | Type | Parameter passing | Required | Description |
|---|---|---|---|---|
model_name | String | body | Yes | Name of the model to deploy. |
plan | String | body | Yes | Deployment plan: |
template_id | String | body | This parameter is required. | Template ID. Must match the |
deploy_spec (deprecated) | String | body | No | Model unit spec. Deprecated. |
capacity | Number | body | This parameter is required. | Target number of capacity units. Required for COUPLED mode (non-PD-separated). Must be a multiple of |
prefill_capacity | Number | body | This parameter is required. | Prefill capacity. Required for PD-separated mode ( |
decode_capacity | Number | body | This parameter is required. | Decode capacity. Required for PD-separated mode ( |
name | String | body | No | Service display name. |
suffix | String | body | No | When you deploy a model, a new model name is generated. The suffix sets the suffix for the new model name. Max length is 8 characters. Must be globally unique. You can omit the suffix for the first deployment of a model. You must set it for later deployments of the same model. |
charge_type | String | body | No | Billing method: |
pre_paid_info | Object | body | This parameter is required. | Subscription info. Required when |
pre_paid_info.auto_renewal | Boolean | body | Yes | Enable auto-renewal. |
pre_paid_info.duration | Integer | body | Yes | Subscription duration in months. |
pre_paid_info.auto_renewal_duration | Integer | body | Conditionally required | Auto-renewal duration in months. Required when autoRenewal=true. |
enable_thinking | Boolean | body | No | Enable thinking mode. Supported by some models. |
max_context_length | Number | body | No | Maximum context length. Supported by some models. |
quantization_precision | String | body | No | Quantization precision. |
qpm_limit | Number | body | No | QPM rate limit. Requests per minute. Supported only by some models with |
tpm_limit | Number | body | No | TPM rate limit. Tokens per minute. Supported only by some models with |
Supported Models
Model Unit deployment supports features such as rate limiting and inference acceleration. This table shows which features are supported.
Model Unit deployment supports features such as rate limiting and inference acceleration. This table shows which features are supported.
- Text generation
- Multimodal
- Speech synthesis
- Qwen
- GLM
- DeepSeek
- More models
Model name | Model code | Model unit specification | Hourly unit price (CNY) Minimum billing: minute | Monthly unit price (CNY) Minimum billing: day |
|---|---|---|---|---|
Qwen3.6-35B-A3B | qwen3.6-35b-a3b | MU1 x 8 | ¥432 | ¥208,944 |
MU2 x 8 | ¥504 | ¥240,288 | ||
MU3 x 8 | ¥1,096 | ¥527,752 | ||
MU8 x 1 | ¥47 | ¥22,400 | ||
MU9 x 1 | ¥51 | ¥24,600 | ||
Qwen3.6-27B | qwen3.6-27b | MU9 x 1 | ¥51 | ¥24,600 |
Qwen3.6-Flash-2026-04-16 | qwen3.6-flash-2026-04-16 | MU1 x 2 | ¥108 | ¥52,236 |
MU3 x 8 | ¥1,096 | ¥527,752 | ||
Qwen3.6-Plus-2026-04-02 | qwen3.6-plus-2026-04-02 | MU1 x 8 MU1 x 16 (PD separation mode) | ¥432 PD separation mode: ¥864 | ¥208,944 PD separation mode: ¥417,888 |
Qwen3.5-397B-A17B | qwen3.5-397b-a17b | MU3 x 8 MU3 x 16 (PD separation mode) | ¥1,096 PD separation mode: ¥2,192 | ¥527,752 PD separation mode: ¥1,055,504 |
MU6 x 16 | ¥400 | ¥193,424 | ||
Qwen3.5-122B-A10B | qwen3.5-122b-a10b | MU1 x 4 | ¥216 | ¥104,472 |
MU6 x 16 | ¥400 | ¥193,424 | ||
Qwen3.5-35B-A3B | qwen3.5-35b-a3b | MU1 x 2 | ¥108 | ¥52,236 |
MU2 x 8 | ¥504 | ¥240,288 | ||
MU3 x 8 | ¥1,096 | ¥527,752 | ||
MU9 x 1 | ¥51 | ¥24,600 | ||
Qwen3.5-27B | qwen3.5-27b | MU2 x 8 | ¥504 | ¥240,288 |
MU3 x 8 | ¥1,096 | ¥527,752 | ||
MU8 x 1 | ¥47 | ¥22,400 | ||
MU9 x 1 | ¥51 | ¥24,600 | ||
Qwen3.5-9B | qwen3.5-9b | MU1 x 2 | ¥108 | ¥52,236 |
MU2 x 8 | ¥504 | ¥240,288 | ||
Qwen3.5-Flash-2026-02-23 | qwen3.5-flash-2026-02-23 | MU1 x 2 | ¥108 | ¥52,236 |
Qwen3.5-Plus-2026-02-15 | qwen3.5-plus-2026-02-15 | MU1 x 8 MU1 x 16 (PD separation mode) | ¥432 PD separation mode: ¥864 | ¥208,944 PD separation mode: ¥417,888 |
MU2 x 8 | ¥504 | ¥240,288 | ||
MU3 x 8 MU3 x 16 (PD separation mode) | ¥1,096 PD separation mode: ¥2,192 | ¥527,752 PD separation mode: ¥1,055,504 | ||
Qwen3-235B-A22B-Instruct-2507 | qwen3-235b-a22b-instruct-2507 | MU1 x 4 | ¥216 | ¥104,472 |
MU2 x 8 | ¥504 | ¥240,288 | ||
MU3 x 8 | ¥1,096 | ¥527,752 | ||
Qwen3-32B | qwen3-32b | MU6 x 16 | ¥400 | ¥193,424 |
Qwen3-30B-A3B-Thinking-2507 | qwen3-30b-a3b-thinking-2507 | MU1 x 2 | ¥108 | ¥52,236 |
Qwen3-8B | qwen3-8b | MU1 x 2 | ¥108 | ¥52,236 |
MU2 x 2 | ¥126 | ¥60,072 | ||
Qwen3-4B | qwen3-4b | MU1 x 2 | ¥108 | ¥52,236 |
MU5 x 1 | ¥21 | ¥10,139 | ||
Qwen3-Embedding-0.6B | qwen3-embedding-0.6b | MU5 x 1 | ¥21 | ¥10,139 |
MU6 x 1 | ¥25 | ¥12,089 | ||
Qwen3-MoE-Rerank-0.6B | qwen3-moe-rerank-0.6b | MU5 x 1 | ¥21 | ¥10,139 |
Qwen3-Rerank-0.6B | qwen3-rerank-0.6b | MU5 x 1 | ¥21 | ¥10,139 |
MU6 x 1 | ¥25 | ¥12,089 | ||
Qwen3-Max-2025-09-23 | qwen3-max-2025-09-23 | MU2 x 8 | ¥504 | ¥240,288 |
MU3 x 8 | ¥1,096 | ¥527,752 | ||
Qwen3-Rerank | qwen3-rerank | MU5 x 1 | ¥21 | ¥10,139 |
Qwen2.5-72B (Open Source) | qwen2.5-72b-instruct | MU1 x 8 | ¥432 | ¥208,944 |
Qwen2.5-14B (Open Source) | qwen2.5-14b-instruct | MU1 x 2 | ¥108 | ¥52,236 |
Qwen2.5-7B (Open Source) | qwen2.5-7b-instruct | MU1 x 2 | ¥108 | ¥52,236 |
MU5 x 1 | ¥21 | ¥10,139 | ||
Qwen-Plus-2025-07-28 | qwen-plus-2025-07-28 | MU1 x 4 MU1 x 16 (PD separation mode) | ¥216 PD separation mode: ¥864 | ¥104,472 PD separation mode: ¥417,888 |
Qwen-Plus-2025-12-01 | qwen-plus-2025-12-01 | MU1 x 4 | ¥216 | ¥104,472 |
Qwen-Plus-Character-2025-11-06 | qwen-plus-character-2025-11-06 | MU1 x 4 | ¥216 | ¥104,472 |
- Instruct - After deployment, the model performs inference in non-thinking mode.
- Thinking - After deployment, the model performs inference in thinking mode.
- PD separation mode - Reduces first-token latency and increases throughput. For models deployed in this mode, during inference the first-token computation (Prefill) and subsequent-token computation (Decode) — two computation phases — are split onto different compute nodes.
Response Example and Parameters
Click to view the details.
Click to view the details.
Parameter | Type | Description |
|---|---|---|
request_id | String | ID of this request. |
output | Object | Detailed information about this deployment task. |
deployed_model | String | Unique identifier for the new model. Pass it in SDK parameters when you call the model. |
name | String | Service display name. |
model_name | String | Model name used for this deployment task. |
base_model | String | Base model ID for the model used in this deployment task. |
status | String | Status of the deployment task.
|
capacity | Number | Target number of capacity units for this deployment task. |
ready_capacity | Number | Number of capacity units that are ready and can immediately process requests. |
base_capacity | Number | Base capacity per instance. |
workspace_id | String | ID of the workspace where this deployment task belongs. |
charge_type | String |
|
plan | String | Billing mode for this deployment task. |
model_unit_spec | String | Model unit specification. |
gmt_create | String | Time when the deployment task was created. |
gmt_modified | String | You can modify the deployment task time. |
creator | String | UID of the user who created this deployment task. |
modifier | String | UID of the account that last performed an operation on this deployment task. |
fail_reason | String | Failure reason. Returned only when status is FAILED. |
enable_thinking | Boolean | Enable thinking mode. Supported by some models. |
max_context_length | Number | Maximum context length limit. |
qpm_limit | Number | QPM rate limit. Requests per minute. |
tpm_limit | Number | TPM rate limit. Tokens per minute. |
quantization_precision | String | Quantization precision. |
Returned only for model unit (mu) deployments. | ||
mu_capacity | Object | MU capacity details. COUPLED mode has a |
pre_paid_info | Object | Subscription information. |
pre_paid_info.auto_renewal | Boolean | Enable auto-renewal. |
pre_paid_info.duration | Integer | Subscription duration in months. |
pre_paid_info.auto_renewal_duration | Integer | Auto-renewal duration in months. |
pre_paid_instance_id | String | Subscription instance ID. |
pre_paid_gmt_expired | String | Subscription expiration time. |
Returned only for pre-provisioned throughput v2 (ptu_v2) deployments. | ||
ptu_capacity | Object | PTU v2 capacity info. Includes:
|
pre_paid_info | Object | Subscription information. |
pre_paid_info.auto_renewal | Boolean | Enable auto-renewal. |
pre_paid_info.duration | Integer | Subscription duration in months. |
pre_paid_info.auto_renewal_duration | Integer | Auto-renewal duration in months. |
pre_paid_instance_id | String | Subscription instance ID. |
pre_paid_gmt_expired | String | Subscription expiration time. |
Query a Model Deployment Task
Request Example
Request Parameters
Parameter | Type | Passing Parameters | Required | Description |
|---|---|---|---|---|
deployed_model | String | path | Yes | Unique identifier for the deployed model. Get it from Create a Model Deployment Task or List Model Deployment Tasks. |
Response Example and Parameters
Click to view the details.
Click to view the details.
Response Parameters
The response parameters are the same as those for creating a model deployment task. For more information, see Response Parameters for Create a Model Deployment Task.List Model Deployment Tasks
Request Example
Request Parameters
Parameter | Type | Parameter passing | Required | Description |
|---|---|---|---|---|
Age | Number | query | No | Page number. Default is 1. |
page_size | Number | query | No | Page size. Default is 10. Maximum is 100. |
Response Example and Parameters
Click to view the details.
Click to view the details.
Response Parameters
Parameter | Type | Description |
|---|---|---|
page_no | Number | Page number of the query. |
page_size | Number | Page size of the query. |
total | Long | Total number of deployment tasks that match the query criteria. |
deployments | Array | List of deployment tasks. The fields for each element match the response parameters for Create a Model Deployment Task. For details, see the response parameters for Create a Model Deployment Task. |
Update a Model Deployment Task
Request Example
Scale in COUPLED mode:
Request Parameters
Parameter | Type | Passing parameters | Required | Description |
|---|---|---|---|---|
deployed_model | String | path | Yes | Unique identifier for the deployed model. |
capacity | Number | body | Conditionally required | Target number of capacity units for scaling. Required for COUPLED mode (non-PD-separated). Must be a multiple of |
prefill_capacity | Number | body | Conditionally required | Target prefill capacity. Required for PD-separated mode. |
decode_capacity | Number | body | A condition is required. | Target decode capacity. Required for PD-separated mode. |
ptu_capacity | Object | body | Conditionally required | PTU v2 capacity info. Includes:
|
Response Example and Parameters
Click to view the details.
Click to view the details.
Response Parameters
The response parameters are the same as those for creating a model deployment task. For more information, see the response parameters for Create a Model Deployment Task.Stop a Deployed Model
Request Example
Request Parameters
Parameter | Type | Passing parameters | Required | Description |
|---|---|---|---|---|
deployed_model | String | path | Yes | Unique identifier for the deployed model. |
Response Example and Parameters
Click to view the details.
Click to view the details.
Response Parameters
The response parameters are the same as those for creating a model deployment task. For more information, see the response parameters for Create a Model Deployment Task.Restart a Deployed Model
Request Example
Request Parameters
Parameter | Type | Passing parameters | Required | Description |
|---|---|---|---|---|
deployed_model | String | path | Yes | Unique identifier for the deployed model. Get it from Create a Model Deployment Task or List Model Deployment Tasks. |
Response Example and Parameters
Click to view the details.
Click to view the details.
After the service starts, the status isSTARTINGand then changes toRUNNING
Response Parameters
The response parameters are the same as those for creating a model deployment task. For more information, see the response parameters for Create a Model Deployment Task.Delete a Model Deployment Task
Request Example
Request Parameters
Parameter | Type | Parameter passing | Required | Description |
|---|---|---|---|---|
deployed_model | String | path | Yes | Unique identifier for the deployed model. |
Response Example and Parameters
Click to view the details.
Click to view the details.
Response Parameters
The response parameters are the same as those for creating a model deployment task. For more information, see the response parameters for Create a Model Deployment Task.Abnormal Response
Response Parameters
Parameter | Type | Description |
|---|---|---|
request_id | String | System-generated ID for this request. |
code | String | Error code that identifies the error type. |
message | String | Error details for troubleshooting. |
Common Errors
Error Reason | Description |
|---|---|
| Parameter error. For example, a required parameter is missing, a parameter value is invalid, or template_id and deploy_spec are passed at the same time. |
| Insufficient permissions or resource does not exist. |
| The operation is not allowed in the current state. For example, scaling a service that is not in the RUNNING state, or deleting a service that is not in the STOPPED or FAILED state. |
| The current deployment plan does not support this operation. For example, cu deployments do not support stopping the service. |
| Insufficient resource stock. Cannot complete scaling or deployment. |
| Internal error. |
| The specified deployment task does not exist. |
| Operation conflict. For example, the service is performing another operation. |