获取任务结果
任务成功后获取结果文件的短时下载地址,地址过期后可再次调用获取新地址。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- response
expires_in?integer|nullid*Idresult_url?string|nullretained_until?|素材或结果文件的保留截止时间。下载地址过期后可重新获取。
status*JobStatus可选值
"queued""processing""succeeded""failed""cancelled"preview_url?stringpreview_status?string可选值
"pending""ready""expired"thumbnail_url?stringOptional signed, aspect-preserving image thumbnail for canvas display.