Retrieve image task
最近更新:2026年9月7日
以阿里云百炼(DashScope)原生格式查询 qwen/qwen-image-3.0-pro 异步任务状态与生成结果。
查询 qwen/qwen-image-3.0-pro 异步图像任务状态与结果,响应采用阿里云百炼(DashScope)原生结构。DashScope 客户端会默认请求该路径,修改 base_url 后无需调整查询代码即可兼容。
GET
https://gateway.amux.ai/api/v1/tasks/{id}鉴权
headerAuthorizationstring必填Bearer <你的 Amux AI 密钥> Amux AI API 密钥。
请求
idstring必填提交任务时返回的任务 ID。
响应
200response查询成功(无论任务是否完成均返回 200),请读取 output.task_status 判断当前状态。
404response任务不存在,或不属于当前工作区。
与统一任务查询端点的关系
本端点与 GET /v1/tasks/{id} 查询同一任务记录,仅响应格式不同。新接入建议使用 GET /v1/tasks/{id},以获取百炼原生结构未包含的 usage 与 cost 账单信息。
任务状态保留说明
阿里云百炼原生接口的任务记录在 24 小时后过期并返回 UNKNOWN;平台持久保留任务记录并始终返回真实终态。
输出文件时效
output.choices[].message.content[].image 返回图像文件访问地址。链接具有时效性,如需长期保存请及时下载。
错误处理
错误响应结构与阿里云百炼原生格式一致,错误类型 type 与重试策略请参见错误与重试。
cURL
curl https://gateway.amux.ai/api/v1/tasks/{id} \
-H "Authorization: Bearer $AMUX_API_KEY"{
"output": {
"task_id": "task_01M1CG35C16CJ790D00BV1RBVM",
"task_status": "PENDING",
"choices": [
{
"finish_reason": "stop",
"message": {
"role": "assistant",
"content": [
{
"type": "image",
"image": "https://cdn.amux.ai/gen/20260907/task_01M1CG35C16CJ790D00BV1RBVM-0.png"
}
]
}
}
],
"code": "<string>",
"message": "<string>"
},
"request_id": "task_01M1CG35C16CJ790D00BV1RBVM"
}