Retrieves the details of a specified model import job.
Get import job details
Retrieves the current status and details of a specified import job.
Endpoint
GET https://dashscope-intl.aliyuncs.com/api/v1/custom_models/import/{job_id}
Request example
curl "https://dashscope-intl.aliyuncs.com/api/v1/custom_models/import/937b****-2a4f-****-8abe-c2fa********" \
--header "Authorization: Bearer $DASHSCOPE_API_KEY" \
--header "Content-Type: application/json"
Request parameters
|
Parameter |
Type |
Location |
Required |
Description |
|
job_id |
String |
path |
Yes |
The job ID. You can get this ID from the Create an import job or List import jobs API. |
Response example
{
"request_id": "ca21****-b91b-****-bd35-c41c********",
"output": {
"job_id": "937b****-2a4f-****-8abe-c2fa********",
"model_name": "qwen3-32b-offline-20240101-abc1",
"display_name": "My LoRA fine-tuned model",
"source": "OSS",
"storage_info": {
"bucket_name": "my-model-bucket",
"object_key": "models/qwen3-32b-lora/"
},
"status": "RUNNING",
"gmt_create": "2024-01-01T12:00:00.000+00:00"
}
}
Response parameters
The response parameters are almost identical to those for Create an import job, but do not include the weight_type field. When a task fails, the response also includes the error_code field, which indicates the reason for the failure.
Error response
Failed requests return 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 |
The request parameters are invalid. For example, a required parameter is missing, formatted incorrectly, or has an invalid value. |
|
NotFound |
The specified resource could not be found. For example, the specified job ID does not exist, you lack the required permissions, or the base model does not support this import. |
|
OperationDenied |
The operation was denied. For example, you cannot delete an import job with a RUNNING status. |
|
InvalidApiKey |
The provided API key is invalid or missing. |
|
InternalError |
An internal system error occurred. Please try again later. |