查询图片生成任务的状态和结果。
task_id 查询任务状态。新接入请优先使用 /v1/tasks/{task_id}。
| 状态 | 含义 | 调用方建议 |
|---|---|---|
queued | 等待处理 | 继续轮询。 |
in_progress | 生成中 | 继续轮询。 |
succeeded | 已完成 | 展示 result.data[].url。 |
failed | 已失败 | 展示错误信息,并允许用户重试。 |
GET /v1/images/tasks/{task_id} 保留给旧客户端。新接入不要混用两个查询结构。
历史路径响应示例:
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.