Query Tasks Result

Retrieve the results of a previously submitted task.

GET
https://gptimage15.ai/api/status?task_id={task_id}

Retrieve the status of a previously submitted task.

Headers

Content-Type
application/json
Response

Successful response with the image URLs.

Response Schema

JSON
1
{
2
"code": 200,
3
"message": "success",
4
"data": {
5
"task_id": "nano333b71e549f645122eb8db5f75af2c11ban",
6
"request": "{\"prompt\":\"A beautiful landscape with mountains and a river\"}",
7
"response": "[\"https://example.com/image.png\"]",
8
"type": 1,
9
"status": 1,
10
"consumed_credit": 20,
11
"created_at": "2025-01-01 16:02:32",
12
"updated_at": "2025-01-01 16:02:46"
13
}
14
}

Important: JSON String Fields

Note: The request and response fields are JSON strings, not objects or arrays.

You need to parse them to access the data:

// Parse request parameters
const requestParams = JSON.parse(data.request);
console.log(requestParams.prompt);

// Parse response URLs
const imageUrls = JSON.parse(data.response);
console.log(imageUrls[0]);