任务状态
模型转换任务会经历以下状态:
pending -> queued -> running -> succeeded
\-> failed
可以通过模型结果接口查询任务状态:
const response = await fetch(
`https://api.example.com/api/app/models/${modelId}/result`,
{ headers: { Authorization: `Bearer ${accessToken}` } },
);
const result = await response.json();
失败任务不会消耗证书次数。处理超时的预占额度由后端定时任务释放。