All Products
Search
Document Center

Alibaba Cloud Model Studio:List import jobs

Last Updated:Jun 06, 2026

Lists all model import jobs for the current account.

List import jobs

Retrieves a paginated list of import jobs in the current workspace.

URL

GET https://dashscope-intl.aliyuncs.com/api/v1/custom_models/import

Request example

curl "https://dashscope-intl.aliyuncs.com/api/v1/custom_models/import?page_no=1&page_size=10" \
    --header "Authorization: Bearer $DASHSCOPE_API_KEY" \
    --header "Content-Type: application/json"

Filter by status:

curl "https://dashscope-intl.aliyuncs.com/api/v1/custom_models/import?page_no=1&page_size=10&status=SUCCESSED" \
    --header "Authorization: Bearer $DASHSCOPE_API_KEY" \
    --header "Content-Type: application/json"

Request parameters

Parameter

Type

Location

Required

Description

page_no

Integer

query

No

The page number. Default value: 1.

page_size

Integer

query

No

The page size. Default value: 10. Maximum value: 100.

status

String

query

No

Filters the results by task status. See Task status.

model_name

String

query

No

Filters by model name, requiring an exact match for the system-generated name returned by the API.

Response example

{
    "request_id": "ca21****-b91b-****-bd35-c41c********",
    "output": {
        "total": 2,
        "page_no": 1,
        "page_size": 10,
        "list": [
            {
                "job_id": "937b****-2a4f-****-8abe-c2fa********",
                "model_name": "qwen3-32b-offline-20240101-abc1",
                "display_name": "My LoRA fine-tuned model",
                "status": "SUCCESSED",
                "source": "OSS",
                "storage_info": {
                    "bucket_name": "my-model-bucket",
                    "object_key": "models/qwen3-32b-lora/"
                },
                "gmt_create": "2024-01-01T12:00:00.000+00:00"
            },
            {
                "job_id": "edb0****-39ac-****-9859-8b1e********",
                "model_name": "qwen3-32b-offline-20240102-xyz4",
                "display_name": "My full-parameter fine-tuned model",
                "status": "FAILED",
                "source": "OSS",
                "storage_info": {
                    "bucket_name": "my-model-bucket",
                    "object_key": "models/qwen3-32b-full/"
                },
                "error_code": "Failed to get files from OSS. Check the files in OSS.",
                "gmt_create": "2024-01-02T09:00:00.000+00:00"
            }
        ]
    }
}

Response parameters

Parameter

Type

Description

request_id

String

The request ID.

output.total

Integer

The total number of jobs that match the query criteria.

output.page_no

Integer

The current page number.

output.page_size

Integer

The page size.

output.list

Array

A list of import jobs. The fields for each job are mostly consistent with the response parameters for Create an import job, but the weight_type field is not included. If a job fails, the response also includes an error_code field.

Error responses

If an error occurs, the API returns an error response in the following format:

{
    "request_id": "ca21****-b91b-****-bd35-c41c********",
    "code": "OperationDenied",
    "message": "The import job is currently running and cannot be deleted."
}

Error codes

Error code

Description

InvalidParameter

A required parameter is missing, or a parameter has an incorrect format or value.

NotFound

The specified resource does not exist. This can occur if the job_id is invalid, you lack the required permissions, or the specified base model does not support import.

OperationDenied

The operation was denied. For example, attempting to delete a job that is in the RUNNING state.

InvalidApiKey

The API key is invalid or not provided.

InternalError

An internal error occurred. Try again later.