Получить статус и результат генерации
{
"id": "65589df803761c00010775ae",
"parentId": null,
"object": "task",
"type": "imagine",
"actions": [
"upsamle_1",
"upsamle_2",
"upsamle_3",
"upsamle_4",
"reroll",
"variation_1",
"variation_2",
"variation_4",
"variation_4"
],
"percent": 100,
"status": "done",
"result": "https://gptunnel.ru/task/image/65589df803761c00010775ae?cache=100",
"error": null,
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0,
"prompt_cost": 0,
"completion_cost": 0,
"total_cost": 0
}
}
{
"error": {
"message": "'id' is a required property",
"type": "invalid_request_error",
"param": null,
"code": null
}
}
{
"error": {
"message": "Organization balance is too low to use API",
"type": "insufficient_balance_error",
"param": null,
"code": null
}
}
{
"error": {
"message": "Unauthorized",
"type": "unauthorized_request_error",
"param": null,
"code": null,
}
}
{
"id": "65589df803761c00010775ae",
"parentId": null,
"object": "task",
"type": "imagine",
"actions": [
"upsamle_1",
"upsamle_2",
"upsamle_3",
"upsamle_4",
"reroll",
"variation_1",
"variation_2",
"variation_4",
"variation_4"
],
"percent": 100,
"status": "done",
"result": "https://gptunnel.ru/task/image/65589df803761c00010775ae?cache=100",
"error": null,
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0,
"prompt_cost": 0,
"completion_cost": 0,
"total_cost": 0
}
}