Queries the training status of a personalized text-to-image model.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
aicontent:Personalizedtxt2imgQueryModelTrainStatus |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/personalizedtxt2img/queryModelTrainStatus HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| modelId |
string |
Yes |
The model ID. |
modelId-xxxx-xxxx-xxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| requestId |
string |
The request ID. |
xxxx-xxxx-xxxx-xxxxxxxx |
| success |
boolean |
Indicates whether the request was successful. |
true |
| errCode |
string |
The error code returned if the request fails. |
UNKNOWN_ERROR |
| errMessage |
string |
The error message returned if the request fails. |
未知错误 |
| httpStatusCode |
integer |
The HTTP status code. |
200 |
| data |
object |
The returned data object. |
[] |
| modelTrainStatus |
string |
The model training status. |
FINISHED |
Examples
Success response
JSON format
{
"requestId": "xxxx-xxxx-xxxx-xxxxxxxx",
"success": true,
"errCode": "UNKNOWN_ERROR",
"errMessage": "未知错误",
"httpStatusCode": 200,
"data": {
"modelTrainStatus": "FINISHED"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | B_PARAMETER_NOT_FOUND_EXCEPTION | 必要参数没有找到 | |
| 500 | UNKNOWN_ERROR | The request processing has failed due to some unknown error. | |
| 403 | B_PERMISSION_DENIED_EXCEPTION | 鉴权失败或权限不足 | |
| 404 | B_MODEL_TRAIN_JOB_NOT_EXIST | 模型训练任务不存在 |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.