{
"model": "Qubico/image-toolkit",
"task_type": "upscale",
"input": {
"image": "https://img.theapi.app/ephemeral/4b0211eb-7788-4b30-bf15-4c5707b66d8e.jpg",
"scale": 2,
"face_enhance": true
}
}
curl --location --request POST 'https://api.piapi.ai/api/v1/task' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "Qubico/image-toolkit",
"task_type": "upscale",
"input": {
"image": "https://img.theapi.app/ephemeral/4b0211eb-7788-4b30-bf15-4c5707b66d8e.jpg",
"scale": 2,
"face_enhance": true
}
}'
{
"code": 200,
"data": {
"task_id": "a62ba0d0-184f-4a0e-9f9e-2e38c7fec79f",
"model": "Qubico/image-toolkit",
"task_type": "upscale",
"status": "",
"config": {
"service_mode": "",
"webhook_config": {
"endpoint": "",
"secret": ""
}
},
"input": {
"image": "https://img.theapi.app/ephemeral/4b0211eb-7788-4b30-bf15-4c5707b66d8e.jpg",
"scale": 2,
"face_enhance": false
},
"output": null,
"meta": {
"created_at": "2024-10-23T10:35:31.039487176Z",
"started_at": "0001-01-01T00:00:00Z",
"ended_at": "0001-01-01T00:00:00Z"
},
"detail": null,
"logs": [],
"error": {
"code": 0,
"raw_message": "",
"message": "",
"detail": null
}
},
"message": "success"
}