queued — 已入队retrying — 重试中processing / completed — 完成,读取 result_url 下载failed — 失败,查看 error 字段图片任务提交接口返回的 poll_url即本接口地址,可直接轮询。
curl --location '/images/tasks/task_abc123def456' \
--header 'Authorization: Bearer sk-xxxxxxxxxxxx'{
"id": "task_abc123def456",
"task_id": "task_abc123def456",
"status": "completed",
"result_url": "https://ivd.bjstlx.com/image_cache/abc123.png",
"requested_size": "1024x1024",
"attempts": 1,
"max_attempts": 5,
"error": null,
"poll_url": "https://api.bjhuiqu.net/v1/images/tasks/task_abc123def456"
}