Skip to main content
POST
/
v1
/
images
/
infobytaskid
Query Image Info by TaskID
curl --request POST \
  --url https://api.tensorslab.com/v1/images/infobytaskid \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "taskid": "<string>"
}
'
{ "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 } }

Authorizations

Authorization
string
header
required

API Key authentication, please include the Authorization field in the request header

Body

application/json
taskid
string
required

Task ID

Response

Request successful

Image info response

code
integer
required

Response status code: 1000=Success, 9999=Failure, 9000=Insufficient Credits

msg
string
required

Response message

data
object
required

Image information data