cURL
curl --request POST \ --url https://test.tensorai.tensorslab.com/v1/images/infobytaskid \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "taskid": "<string>" } '
200
completed
{ "code": 1000, "msg": "OK", "data": { "taskid": "abcd_1234567890abcdef", "starttime": "2026-01-30 12:00:00", "url": [ "https://example.com/image.jpg" ], "image_status": 3, "width": 2048, "height": 2048 }}
查询图片生成任务的状态和结果
API密钥认证,请在请求头中包含Authorization字段
任务ID
请求成功
图片信息响应
响应状态码:1000=成功,9999=失败,9000=积分不足
响应消息
图片信息数据
显示 子属性