通用能力接口参考任务获取任务结果

获取任务结果

任务成功后获取结果文件的短时下载地址,地址过期后可再次调用获取新地址。retained_until 为结果文件的保留截止时间。

认证

API Key:X-API-Key: <API Key> 或 Authorization: Bearer <API Key>。

示例中的凭证为占位值,请替换后在服务器端运行。

代码示例

curl -X GET 'https://shixux.com/api/v1/jobs/job_id_example/result' \  -H 'X-API-Key: yb_xxx_yyy'
{  "id": "job_xxx",  "status": "queued"}

路径参数

job_id*Job Id

响应体

请求成功

application/json
  1. response
expires_in?integer|null
id*Id
result_url?string|null
retained_until?|

素材或结果文件的保留截止时间。下载地址过期后可重新获取。

status*JobStatus
可选值"queued""processing""succeeded""failed""cancelled"
preview_url?string
preview_status?string
可选值"pending""ready""expired"
thumbnail_url?string

Optional signed, aspect-preserving image thumbnail for canvas display.

本页目录