{
"model": "Qubico/image-toolkit",
"task_type": "background-remove",
"input": {
"image": "https://img.theapi.app/ephemeral/4b0211eb-7788-4b30-bf15-4c5707b66d8e.jpg"
}
}
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": "background-remove",
"input": {
"image": "https://img.theapi.app/ephemeral/4b0211eb-7788-4b30-bf15-4c5707b66d8e.jpg"
}
}'
{
"code": 200,
"data": {
"task_id": "43154fd4-67fe-4xxxx",
"model": "Qubico/image-toolkit",
"task_type": "background-remove",
"status": "success",
"config": {
"service_mode": "",
"webhook_config": {
"endpoint": "",
"secret": ""
}
},
"input": {
"image": "https://xxx.jpg"
},
"output": {
"image_url": "https://xxx.png",
"image_base64": ""
},
"meta": {
"created_at": "",
"started_at": "",
"ended_at": ""
},
"detail": null,
"logs": [],
"error": {
"code": 0,
"raw_message": "",
"message": "",
"detail": null
}
},
"message": "success"
}