查询生图任务
curl --request GET \
--url https://api.ch88.cn/v1/open/tasks/{task_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ch88.cn/v1/open/tasks/{task_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ch88.cn/v1/open/tasks/{task_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"data": {
"task_id": "task_01K4Y8R6Z1J2X3M4N5P6Q7R8S9",
"status": "succeeded",
"created_at": "2026-09-12T08:30:00.000Z",
"completed_at": "2026-09-12T08:31:42.000Z",
"result": {
"images": [
{
"asset_id": "generated/open-result/task_01K4Y8R6Z1J2X3M4N5P6Q7R8S9-0.png",
"url": "https://api.ch88.cn/v1/open/assets/generated%2Fopen-result%2Ftask_01K4Y8R6Z1J2X3M4N5P6Q7R8S9-0.png",
"expires_at": "2026-09-15T08:31:42.000Z"
}
]
},
"error": null
},
"request_id": "req_550e8400-e29b-41d4-a716-446655440000"
}
{
"error": {
"code": 401,
"type": "authentication_error",
"message": "缺少 Public API Key"
},
"request_id": "req_xxx"
}
{
"error": {
"code": 403,
"type": "permission_error",
"message": "成员或组织已停用"
},
"request_id": "req_xxx"
}
{
"error": {
"code": 404,
"type": "not_found_error",
"message": "任务不存在或不属于当前成员",
"details": {
"upstream_code": "TASK_NOT_FOUND"
}
},
"request_id": "req_xxx"
}
{
"error": {
"code": 429,
"type": "rate_limit_error",
"message": "请求过于频繁,请稍后重试",
"retryable": true
},
"request_id": "req_xxx"
}
{
"error": {
"code": 502,
"type": "upstream_error",
"message": "上游服务暂时不可用,请稍后重试",
"retryable": true
},
"request_id": "req_xxx"
}
{
"error": {
"code": 503,
"type": "service_unavailable_error",
"message": "服务暂时不可用,请稍后重试",
"retryable": true
},
"request_id": "req_550e8400-e29b-41d4-a716-446655440000"
}
全部接口
查询生图任务
查询生图任务的当前状态。只有任务所属成员的 Public API Key 可以查询该任务。
GET
https://api.ch88.cn
/
v1
/
open
/
tasks
/
{task_id}
查询生图任务
curl --request GET \
--url https://api.ch88.cn/v1/open/tasks/{task_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ch88.cn/v1/open/tasks/{task_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ch88.cn/v1/open/tasks/{task_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"data": {
"task_id": "task_01K4Y8R6Z1J2X3M4N5P6Q7R8S9",
"status": "succeeded",
"created_at": "2026-09-12T08:30:00.000Z",
"completed_at": "2026-09-12T08:31:42.000Z",
"result": {
"images": [
{
"asset_id": "generated/open-result/task_01K4Y8R6Z1J2X3M4N5P6Q7R8S9-0.png",
"url": "https://api.ch88.cn/v1/open/assets/generated%2Fopen-result%2Ftask_01K4Y8R6Z1J2X3M4N5P6Q7R8S9-0.png",
"expires_at": "2026-09-15T08:31:42.000Z"
}
]
},
"error": null
},
"request_id": "req_550e8400-e29b-41d4-a716-446655440000"
}
{
"error": {
"code": 401,
"type": "authentication_error",
"message": "缺少 Public API Key"
},
"request_id": "req_xxx"
}
{
"error": {
"code": 403,
"type": "permission_error",
"message": "成员或组织已停用"
},
"request_id": "req_xxx"
}
{
"error": {
"code": 404,
"type": "not_found_error",
"message": "任务不存在或不属于当前成员",
"details": {
"upstream_code": "TASK_NOT_FOUND"
}
},
"request_id": "req_xxx"
}
{
"error": {
"code": 429,
"type": "rate_limit_error",
"message": "请求过于频繁,请稍后重试",
"retryable": true
},
"request_id": "req_xxx"
}
{
"error": {
"code": 502,
"type": "upstream_error",
"message": "上游服务暂时不可用,请稍后重试",
"retryable": true
},
"request_id": "req_xxx"
}
{
"error": {
"code": 503,
"type": "service_unavailable_error",
"message": "服务暂时不可用,请稍后重试",
"retryable": true
},
"request_id": "req_550e8400-e29b-41d4-a716-446655440000"
}
{
"code": 200,
"data": {
"task_id": "task_01K4Y8R6Z1J2X3M4N5P6Q7R8S9",
"status": "succeeded",
"created_at": "2026-09-12T08:30:00.000Z",
"completed_at": "2026-09-12T08:31:42.000Z",
"result": {
"images": [
{
"asset_id": "generated/open-result/task_01K4Y8R6Z1J2X3M4N5P6Q7R8S9-0.png",
"url": "https://api.ch88.cn/v1/open/assets/generated%2Fopen-result%2Ftask_01K4Y8R6Z1J2X3M4N5P6Q7R8S9-0.png",
"expires_at": "2026-09-15T08:31:42.000Z"
}
]
},
"error": null
},
"request_id": "req_550e8400-e29b-41d4-a716-446655440000"
}
{
"error": {
"code": 401,
"type": "authentication_error",
"message": "缺少 Public API Key"
},
"request_id": "req_xxx"
}
{
"error": {
"code": 403,
"type": "permission_error",
"message": "成员或组织已停用"
},
"request_id": "req_xxx"
}
{
"error": {
"code": 404,
"type": "not_found_error",
"message": "任务不存在或不属于当前成员",
"details": {
"upstream_code": "TASK_NOT_FOUND"
}
},
"request_id": "req_xxx"
}
{
"error": {
"code": 429,
"type": "rate_limit_error",
"message": "请求过于频繁,请稍后重试",
"retryable": true
},
"request_id": "req_xxx"
}
{
"error": {
"code": 502,
"type": "upstream_error",
"message": "上游服务暂时不可用,请稍后重试",
"retryable": true
},
"request_id": "req_xxx"
}
{
"error": {
"code": 503,
"type": "service_unavailable_error",
"message": "服务暂时不可用,请稍后重试",
"retryable": true
},
"request_id": "req_550e8400-e29b-41d4-a716-446655440000"
}
授权
成员级 Public API Key。请填写完整密钥,Mintlify Playground 会自动以 Authorization: Bearer <PUBLIC_API_KEY> 发送。完整明文只在管理后台创建成功时显示一次。
路径参数
生图提交响应 data.task_id 中的任务编号。
响应
当前任务状态。任务成功时 result.images 包含生成素材。
HTTP 状态码。
Hide child attributes
Hide child attributes
异步任务编号。
任务状态。queued 排队中;processing 处理中;其余三个值为终态。
可用选项:
queued, processing, succeeded, failed, cancelled 任务创建时间,ISO 8601 UTC 格式。
任务完成时间。未进入终态时为 null。
任务成功后的生成结果;尚未完成或失败时通常为 null。
Hide child attributes
Hide child attributes
本次请求的诊断编号。联系平台排查问题时请提供,不要记录 Public API Key。
示例:
"req_550e8400-e29b-41d4-a716-446655440000"

